Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. on $*:text:/^[!@.]ctop10/Si:#: {
  2. $topten
  3. $iif($left($1,1) == @,msg $chan,notice $nick) 14(10TopTen14): The top 10 players are: %top*
  4. }
  5.  
  6. alias topten {
  7. var %xx = 1
  8. while (%xx <= 10) {
  9. set %top $+ %xx $remove($gettok($rank(%xx),1,32),$chr(37) $+ cookies))
  10. inc %xx
  11. }
  12. }
  13.  
  14.  
  15. ;================ My ranking alias
  16.  
  17. alias rank {
  18. window -h @list1
  19. window -h @list2
  20. var %aa 1
  21. while ($var(%cookies*,%aa)) {
  22. aline -a @list1 $($v1,2) $right($v1,100)
  23. inc %aa
  24. }
  25. filter -wwteuc 1 1 @list1 @list2
  26. var %bb $iif($1 isnum,$1,$fline(@list2,*%cookies $+ $1)), %rr = $token($line(@list2,%bb),2,32) $token($line(@list2,%bb),1,32) %bb
  27. close -@ @list*
  28. return %rr
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement