Advertisement
westor

/scangflist for OrFeAsGr v1.0

Mar 3rd, 2015
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.38 KB | None | 0 0
  1. alias scangflist {
  2.   var %scannedplayers, %scannednets, %delscangf
  3.   var %t = $numtok(%networksnames,126)
  4.   var %g = 1
  5.   while (%g <= %t) {
  6.     var %net = $gettok(%networksnames,%g,126)
  7.     var %tot = $numtok(%gfplayers~ [ $+ [ %net ] ],126)
  8.     inc %scannednets 1
  9.     var %u = 1
  10.     while (%u <= %tot) {
  11.       :again
  12.       inc %scannedplayers 1
  13.       var %nick = $gettok(%gfplayers~ [ $+ [ %net ] ],%u,126)
  14.       if (!%nick) { goto next_net }
  15.       var %last = %lastplay~ [ $+ [ %net ] $+ ] ~ [ $+ [ %nick ] ]
  16.       var %last_calc = $calc(%last + 864000)
  17.       var %10_day = $calc($ctime + 864000)
  18.       if (%last_calc < %10_day) {
  19.         unset %lastplay~ [ $+ [ %net ] $+ ] ~ [ $+ [ %nick ] ]
  20.         unset %w~ [ $+ [ %net ] $+ ] ~ [ $+ [ %nick ] ]
  21.         unset %l~ [ $+ [ %net ] $+ ] ~ [ $+ [ %nick ] ]
  22.         var %fn = $findtok(%gfplayers~ [ $+ [ %net ] ],%nick,1,126)
  23.         if (%fn) {
  24.           set %gfplayers~ [ $+ [ %net ] ] $deltok(%gfplayers~ [ $+ [ %net ] ],%fn,126)
  25.           if (!%gfplayers~ [ $+ [ %net ] ]) { unset %gfplayers~ [ $+ [ %net ] ] }
  26.           inc %delscangf 1
  27.           goto again
  28.         }
  29.       }
  30.       inc %u
  31.     }
  32.     :next_net
  33.     inc %g
  34.   }
  35.   echo -at 14[7Timed GunFight-Score & Game Points14] 6Scan 3Completed14: 7Scanned3 %scannednets 7NetWorks And 4Deleted14: $iif(%delscangf,$v1,0) 7From:3 %scannedplayers 7Total Players
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement