SHARE
TWEET

Untitled

a guest Dec 11th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2.     {rank.title} = らんきんぐ「ぺ」
  3.     {rank.count} = 10
  4.  
  5. every seconds:
  6.     if {level::*} is set:
  7.         loop all players:
  8.             delete loop-player's sidebar
  9.             wipe loop-player's sidebar
  10.             set name of sidebar of loop-player to "%{rank.title}%"
  11.         set {_high} to 0
  12.         loop {level::*}:
  13.             set {_list::%loop-index%} to loop-value
  14.         loop {rank.count} times:
  15.             loop {_list::*}:
  16.                 loop all players:
  17.                     delete score "%loop-index%" in sidebar of loop-player
  18.                 loop-value-2 > {_high}
  19.                 set {_high} to loop-value-2
  20.                 set {_highplayer} to loop-index
  21.             loop all players:
  22.                 set score "%{_highplayer}%" in sidebar of loop-player to {_high}
  23.             set {_high} to 0
  24.             delete {_list::%{_highplayer}%}
  25.  
  26. every tick:
  27.     loop all players:
  28.         set {level::%loop-player%} to level of loop-player
  29.  
  30. command /ranking option [<text>] [<text>]:
  31.     trigger:
  32.         if arg 2 is set:
  33.             if arg 1 is "count":
  34.                 set {rank.count} to arg 2 parsed as number
  35.             if arg 1 is "title":
  36.                 set {rank.title} to "%coloured arg 2%"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top