Advertisement
westor

Top10 Stats for kelzerd v1.0

Feb 10th, 2015
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.55 KB | None | 0 0
  1. on *:TEXT:!top10:#:{ run_top10 # }
  2. alias run_top10 {
  3.   var %t = $lines(points.ini)
  4.   if (!%t) { return }
  5.   window -nj $+ %t @.
  6.   loadbuf @. points.ini
  7.   var %l = $line(@.,0)
  8.   var %i = 1
  9.   while (%i <= %l) {
  10.     var %line = $line(@.,%i)
  11.     rline @. %i $replace(%line,=,$chr(32))
  12.     if (%i == %l) { dline @. 1 }
  13.     inc %i
  14.   }
  15.   filter -cetuww 2 32 @. @.
  16.   var %z 1
  17.   while (%z <= 10) {
  18.     var %list = $addtok(%list,$line(@.,%z),44)
  19.     inc %z
  20.   }
  21.   msg $1 Top 10 point are: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
  22.   window -c @.
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement