Advertisement
illpastethat

Defset

Mar 23rd, 2011
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.15 KB | None | 0 0
  1. on $*:text:/^[!@](defset|setdef)/Si:#:{
  2.   if ($($+(%,botflood.,$nick),2)) {
  3.     if ($($+(%,botflood.,$nick),2) >= 50) { ignore -u60 $address($nick,0) | msg $chan $+($nick,$chr(44)) You Have Been Put On Ignore For 60secs For Abusing The Bot. | halt }
  4.     elseif ($($+(%,botflood.,$nick),2) >= 40) { msg $chan $+($nick,$chr(44)) Please Do Not Abuse The Bot. | inc -z $+(%,botflood.,$nick) 20 | halt }
  5.     else { inc -z $+(%,botflood.,$nick) 25 }
  6.   }
  7.   else { inc -z $+(%,botflood.,$nick) 25 }
  8.   set %_def.msgtype $iif($left($strip($1),1) == @,msg $chan,notice $nick)
  9.   set %_def.num 0
  10.   if ($3) {
  11.     if (!$($+(%,def,.,%_def.word,.,%_def.num),2)) {
  12.       set %_def.word $2
  13.       set $+(%,def,.,%_def.word,.,%_def.num) $+(12[4,%_def.word,12]10) $qt($3-)
  14.       %_def.msgtype $($+(%,def,.,%_def.word,.,%_def.num),2)
  15.       unset %_def.*
  16.     }
  17.     elseif ($($+(%,def,.,%_def.word,.,%_def.num),2)) {
  18.       %_def.msgtype That defintion already exists! -- $($+(%,def,.,%_def.word,.,%_def.num),2)
  19.       unset %_def.*
  20.     }
  21.   }
  22.   elseif (!$3) {
  23.     %_def.msgtype Incorrect Syntax 4[ Set a definition with !defset <word> <definition> ]
  24.     unset %_def.*
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement