Advertisement
westor

Top10 Stats for kelzerd v2.0

Feb 10th, 2015
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.57 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,%z $+ . $line(@.,%z),44) $iif(%z !== 10,-)
  19.     inc %z
  20.   }
  21.   echo msg $1 Top 10 point are: $replace(%list,$chr(44),$+($chr(32)))
  22.   window -c @.
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement