Advertisement
Guest User

Untitled

a guest
May 24th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. on *:text:!top*:#fly: {
  2. var %i = 1, %n = $var(loliscore $+ *,0)
  3. var %top $calc($2 + 1)
  4. if (%top == $null) {
  5. notice $nick Please enter a value. Example: !top 5
  6. halt
  7. }
  8. if (%top > 11) {
  9. notice $nick Pleast enter a value or 10 or lower.
  10. halt
  11. }
  12. while (%i <= %n) {
  13. var %fullName = $var(loliscore $+ *,%i)
  14. var %name = $replace(%fullName, %, )
  15. var %msgname = $mid(%fullName, 11)
  16. var %value = % [ $+ [ %name ] ]
  17. hadd -m Scores %msgname %value
  18. inc %i
  19. }
  20. hsave -i Scores scores.ini
  21. filter -tffceu 2 61 scores.ini scores.ini
  22. var %c = 1, %t = $var(loliscore $+ *,0)
  23. while (%c <= %t) {
  24. var %output %output $+ $chr(32) 06 $+ %c $+ .13 $+ $gettok($read(scores.ini,%c),1,61)) $+ : 06 $+ $gettok($read(scores.ini,%c),2,61)) 13|
  25. inc %c
  26. if (%c == %top) {
  27. msg # %output
  28. hdel -w Scores *
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement