makimaki

raws

Jul 23rd, 2010
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.47 KB | None | 0 0
  1. ;RAWS
  2. ;Thanks err0r, extremity, Exploiter, and p0d for all the help
  3. raw *:*: {
  4.   if (%raw == on) {
  5.     if (!$window(raws)) { window @raws }
  6.     echo -t @raws =========================
  7.     echo -t @raws   Number: $numeric
  8.     echo -t @raws   RawMsg: $rawmsg
  9.     echo -t @raws   Params: $1-
  10.     echo -t @raws  
  11.   }
  12.   if ($gettok($rawmsg,2,32) isin 002 003 004 005 251 265 329 353 366 422 914) { halt }
  13.   elseif ($numeric == 403) {
  14.     CREATE $2
  15.     halt
  16.   }
  17.   elseif ($numeric == 801) {
  18.     echo -t $2 5Added $3 to access for $4
  19.     halt
  20.   }
  21.   if ($numeric == 803) { halt }
  22.   if ($numeric == 804) { halt }
  23.   if ($numeric == 805) { halt }
  24.   if ($numeric == 332) {
  25.     echo $chan 3* Topic : $bcnstrip($1-)
  26.     haltdef
  27.   }
  28.   elseif ($numeric == 821) {
  29.     var %n $mid($gettok($rawmsg,1,33),2-)
  30.     echo -t $1 7 %n has returned.
  31.     cline -m 2 $1 %n
  32.     halt
  33.   }
  34.   elseif ($numeric == 822) {
  35.     var %n $mid($gettok($rawmsg,1,33),2-)
  36.     echo -t $1 7 %n is away: $2-
  37.     cline -m 12 $1 %n
  38.     halt
  39.   }
  40.   if ($numeric == 818) {
  41.     if ($3 == OWNERKEY) { hadd qKey $2 $4 }
  42.     elseif ($3 == HOSTKEY) { hadd oKey $2 $4 }
  43.     elseif ($3 == PUID) {  profiles $2 $4 }
  44.   }
  45.   elseif ($2 == PID) { profiles $3 $4 }
  46.   if ($numeric == 999) {
  47.     var %i $scon(0)
  48.     while (%i) {
  49.       scon %i
  50.       if ($chan(0) < 11) {
  51.         join %lastjoin
  52.         halt
  53.       }
  54.       dec %i
  55.     }
  56.     server -m %s -j %lastjoin
  57.     halt
  58.   }
  59. }
Add Comment
Please, Sign In to add comment