MCrafter969 Posted October 5, 2020 Share Posted October 5, 2020 every second: set {money::%player%} to placeholder "vault_eco_balance" parsed as a number command /NPCbalTOP: trigger: loop {money::*}: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size} times: set {_n} to {_n}+1 if {_low.to.high.list::%loop-value-1%.%{_n}%} is not set: set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 wait 1 tick set {_i} to 0 set {_npc} to 3 loop {_high.to.low.list::*}: #if {%{_player}%.staff} isn't set: add 1 to {_topnumber} set {_player} to "%loop-value%" parsed as offlineplayer add 1 to {_npc} make console execute command "/npc sel %{_npc}%" make console execute command "/npc skin %loop-value%" send "/npc sel %{_npc}%" send "/npc skin %loop-value%" set {baltopnpc.%{_npc}%.p} to "%loop-value%" set {_player} to "%{%loop-value%.p}%" add 1 to {_i} if {_topnumber} > 10: stop stop This code sometime exclude player's in the code, can someone help me? Link to comment Share on other sites More sharing options...
camy Posted October 5, 2020 Share Posted October 5, 2020 Is this supposed to have a #? #if {%{_player}%.staff} isn't set: im the one that made the poop server. Link to comment Share on other sites More sharing options...
WickedJordan Posted October 5, 2020 Share Posted October 5, 2020 51 minutes ago, SmellyBurger said: Is this supposed to have a #? #if {%{_player}%.staff} isn't set: The "#" will make that line so called "unreadable" meaning in your skript if you can but #aohwdawdhawhd and it will ignore that part of the line. Link to comment Share on other sites More sharing options...
camy Posted October 5, 2020 Share Posted October 5, 2020 1 hour ago, WickedJordan said: The "#" will make that line so called "unreadable" meaning in your skript if you can but #aohwdawdhawhd and it will ignore that part of the line. I know, thats why i asked. im the one that made the poop server. Link to comment Share on other sites More sharing options...
MCrafter969 Posted October 6, 2020 Author Share Posted October 6, 2020 I've market in with # to temporarily delete the condition and try to fix the error Link to comment Share on other sites More sharing options...
quick007 Posted October 6, 2020 Share Posted October 6, 2020 I know this probably sounds cheesy, but I would recommend posting this on the discord so you can receive instant feedback from others. Link to comment Share on other sites More sharing options...
MCrafter969 Posted October 6, 2020 Author Share Posted October 6, 2020 I've done changeing: every second: set {money::%player%} to placeholder "vault_eco_balance" parsed as a number with every second: set {money::%player%} to player's balance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now