yazdmich

Untitled

Sep 7th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.71 KB | None | 0 0
  1. ; To set an alert word or phrase use: /alert
  2.  
  3. on *:OPEN:?:alert $1-
  4. on *:TEXT:*:*:alert $1-
  5. on *:ACTION:*:*:alert $1-
  6. on *:NOTICE:*:*:alert $1-
  7. alias alert {
  8.   var %msg $strip($1-)
  9.   if !$chan || $nick = $me || $count(%msg,$me,%alert) {
  10.     if !$tip($nick) && !$istok(NickServChanServ,$nick,7) && (!$appactive || $activewid != $window($iif(#,#,$iif($nick,$v1,$active))).wid) {
  11.       flash -b1r2
  12.       %msg = $iif($len(%msg) < 333,%msg,$left(%msg,330) $+ ...)
  13.       noop $tip($nick,$iif(#,#,Private Message), $nick  %msg,17,,,window -ax # $iif($window($nick),$nick,$iif($comchan($nick,1),$v1,"status window")))
  14.     }
  15.   }
  16.   if (!$nick) $iif($input(Enter Alert Text,toe,Alert!,%alert),set %alert $!,unset %alert)
  17. }
Advertisement
Add Comment
Please, Sign In to add comment