Majeye

mIRC - LineCount / prevents your bot from getting banned

Feb 12th, 2015
464
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias LineCount {
  2.   if (!%LineCount) { set %LineCount 0 }
  3.   if (!%LineTimer) { set %LineTimer $uptime }
  4.   inc %LineCount
  5.   echo -a %LineCount lines in $calc($uptime - %LineTimer) seconds
  6.  
  7.   if ($calc($uptime - %LineTimer) < 20 ) && (%LineCount >= 15) {
  8.     echo -a Limit reached
  9.     unset %Line*
  10.     set %LineLimit On
  11.     .timer 1 8 set %LineLimit Off
  12.   }
  13.  
  14.   elseif ($calc($uptime - %LineTimer) > 20 ) && (%LineCount < 15) {
  15.     echo -a Limit not reached, resetting counter
  16.     set %LineCount 1
  17.     set %LineTimer $uptime
  18.  
  19.   }
  20.  
  21.   elseif ($calc($uptime - %LineTimer) > 20 ) && (%LineCount >= 15) {
  22.     echo -a Limit not reached, resetting counter
  23.     set %LineCount 1
  24.     set %LineTimer $uptime
  25.  
  26.   }
  27. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×