baltop

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

chimchambi

Member
Dec 4, 2019
30
0
0
29
So... as the titel say can someone plz make me a /baltop skript that gives a top 10 text message with essentials balance plz

i have tried and tried and gave up... and yes i have search so plz someone finally for god and my sake... help !!!! <33333

i just want a simple /baltop skript that doesn't give lag !!!! -.-
 
I didnt tested it, but try:

code_language.skript:
#the status update.
on join:
    remove player from {baltop::%player%}
    wait a tick
    set {baltop::%player%} to amount of player's balance
on quit:
    remove player from {baltop::%player%}
    wait a tick
    set {baltop::%player%} to amount of player's balance
every a minute:
    loop all players:
        remove loop-player from {baltop::%loop-player%}
        wait a tick
        set {baltop::%loop-player%} to amount of loop-player's balance
     

#//



command /baltop:
    trigger:
        loop {baltop::*}:
                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
                        {_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
        
                message "&8&m----&2&lBalance Top&8&m----" to player
               loop {_high.to.low.list::*}:
                   add 1 to {_topnumber}
                   set {_player} to "%loop-value%" parsed as offlineplayer
                   add 1 to {_i}
                   message "&7%{_topnumber}%.- &2%{_player}% &8» &2%{baltop::%loop-value%}%$"
                    if {_topnumber} > 9:
                       stop loop
                message "&8&m------------------------" to player

As i said, i dont know if this will work, but you can try.
 
Status
Not open for further replies.