Advertisement
Guest User

asdasdasd

a guest
Aug 6th, 2014
1,476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. command /toplist:
  2. trigger:
  3. set {Kills::Mirre} to 12
  4. set {Kills::Bla} to 10
  5. set {Kills::What} to 5
  6.  
  7. #Toplist code
  8. #@index will be replaced with the loop-indexes of {Kills::*}
  9. #@value will be replaced with the score/number
  10.  
  11. set {_Toplist::*} to sorted {Kills::*} from highest to lowest with output "@index has killed a total of @value"
  12. message "Top Kills:"
  13. loop {_Toplist::*}:
  14. message "%loop-index%: %loop-value%"
  15.  
  16. #The Chat will look like:
  17. #Top Kills:
  18. #1: Mirre has killed a total of 12
  19. #2: Bla has killed a total of 10
  20. #3: What has killed a total of 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement