Jump to content

Balance Top


MCrafter969

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...