Guest User

Untitled

a guest
Nov 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.19 KB | None | 0 0
  1. ON ^*:TEXT:*:?: {
  2.   if (($nick == %ursnick) && (%aidles == On)) {
  3.     haltdef | halt
  4.   }
  5. }
  6.  
  7. ON *:CONNECT: {
  8.   if (%aidles == On) {
  9.     set %usrnick $me
  10.     .timeraidles 0 $rand(10,60) __chnick
  11.     echo -s 13,1 $+ $timestamp [Anti-Idle] >> has been Activated | halt
  12.   }
  13. }
  14.  
  15.  
  16.  
  17. ON *:LOAD: {
  18.   set %aidles Off
  19.   set %usrnick $me
  20.   echo -s 4,1 $+ $timestamp [Anti-Idle] >> has been Loaded & DeActivated | halt
  21. }
  22.  
  23. menu channel,status,query {
  24.   $chr(171) $+ $chr(187) Anti Idle Addon is ( $+ %aidles $+ ): {
  25.     if (%aidles == Off) {
  26.       set %aidles On
  27.       .timeraidles 0 $rand(10,60) __chnick
  28.       echo -a 13,1 $+ $timestamp [Anti-Idle] >> has been Activated | halt
  29.     }
  30.     if (%aidles == On) {
  31.       set %aidles Off
  32.       .timeraidles Off
  33.       echo -a 4,1 $+ $timestamp [Anti-Idle] >> has been DeActivated | halt
  34.     }
  35.     if (!%aidles) {
  36.       set %aidles Off
  37.       .timeraidles Off
  38.       echo -a 4,1 $+ $timestamp [Anti-Idle] >> has been DeActivated | halt
  39.     }
  40.   }
  41. }
  42.  
  43. on *:NICK: {
  44.   if ($nick == $me) {
  45.     set %usrnick $newnick
  46.   }
  47. }
  48.  
  49.  
  50.  
  51. Alias __chnick {
  52.   if ($me != %usrnick) {
  53.     set %usrnick $me
  54.   }
  55.   //.msg %usrnick anti
  56. }
Add Comment
Please, Sign In to add comment