Advertisement
Sqmmer

bare รฆndr command osv.

Jun 29th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. command /topprestige:
  2. aliases: prestigetop
  3. trigger:
  4. loop {prestige::*}:
  5. add 1 to {_size}
  6. if {_low.to.high.list::%loop-value%} is not set:
  7. set {_low.to.high.list::%loop-value%} to loop-index
  8. else:
  9. set {_n} to 0
  10. loop {_size} times:
  11. set {_n} to {_n}+1
  12. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  13. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  14. stop loop
  15. wait 1 tick
  16. set {_n} to size of {_low.to.high.list::*}
  17. loop {_low.to.high.list::*}:
  18. set {_high.to.low.list::%{_n}%} to loop-value
  19. set {_n} to {_n}-1
  20. wait 3 tick
  21. send "{@prestige1}"
  22. send ""
  23. loop {_high.to.low.list::*}:
  24. add 1 to {_result}
  25. set {_player} to "%loop-value%" parsed as an offline player
  26. send " &8&l[ &c%{_result}% &8&l] &f%loop-value parsed as an offline player% &8&l- &8[&c%{prestige::%{_player}%}%&8]" to player
  27. if {_result} is 10:
  28. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement