Advertisement
glacier_rat

Untitled

Mar 14th, 2011
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. ON $*:TEXT:/^[@.!]((con)?grat(ulation)?(s|z)?)(.*)/Si:#:{
  2. if ($istok($chan,#xbnc #irc #tezz,32)) || ($me != Bryant) { HALT }
  3. if ($skills($3) == Total-Level && $2 isnum 32-2496) || ($skills($3) == Combat && $2 isnum 4-138) || ($skills($3) && $2 isnum 2-99) { msg $chan $randc($chr(40) $+ ¯`·._.») $randc(Congratulations) $randc($nick) $randc(on $2) $randc($skills($3) $+ $chr(33), $iif($2 == 99, Now go get that cape!,$Null)) $randc(«._.·`¯` $+ $chr(41)) }
  4. elseif ($2 isin $chan) || ($skills($4) == Total-Level && $3 isnum 32-2496) || ($skills($4) == Combat && $3 isnum 4-138) || ($skills($4) && $3 isnum 2-127) { msg # $randc($chr(40) $+ ¯`·._.») $randc(Congratulations) $randc($2) $randc(on $3) $randc($skills($4) $+ $chr(33), $iif($3 == 99, Now go get that cape!,$Null)) $randc(«._.·`¯` $+ $chr(41)) }
  5. else { notice $nick Param: !Grats (Level) (Skill) }
  6. }
  7.  
  8. alias randc { return $+($chr(3),$r(2,15),$1-) }
  9.  
  10. alias -l skills {
  11. if ($regex($1,/^at(t|t?k|tack)$/Si)) { return Attack }
  12. elseif ($regex($1,/^def(en[cs]e)?$/Si)) { return Defence }
  13. elseif ($regex($1,/^str(eng[th][th])?$/Si)) { return Strength }
  14. elseif ($regex($1,/^hp|hit(s|points?)?$/Si)) { return Hitpoints }
  15. elseif ($regex($1,/^range?(r|d|ing)?$/Si)) { return Ranged }
  16. elseif ($regex($1,/^Pray(er)?$/Si)) { return Prayer }
  17. elseif ($regex($1,/^mag(e|ic|ician|icien)$/Si)) { return Magic }
  18. elseif ($regex($1,/^cook(ing)?$/Si)) { return Cooking }
  19. elseif ($regex($1,/^wc|wood(cut(ting)?)?$/Si)) { return Woodcutting }
  20. elseif ($regex($1,/^fletch(ing)?$/Si)) { return Fletching }
  21. elseif ($regex($1,/^fish(ing)?$/Si)) { return Fishing }
  22. elseif ($regex($1,/^(fire|fm)(make?(ing)?|ing)?$/Si)) { return Firemaking }
  23. elseif ($regex($1,/^craft(ing)?$/Si)) { return Crafting }
  24. elseif ($regex($1,/^(smith|smelt)(ing)?$/Si)) { return Smithing }
  25. elseif ($regex($1,/^mine?(ing)?$/Si)) { return Mining }
  26. elseif ($regex($1,/^herb(law|lore)?$/Si)) { return Herblore }
  27. elseif ($regex($1,/^agil?(ity)?$/Si)) { return Agility }
  28. elseif ($regex($1,/^(th(ei|ie)[fv](e|ing)?)$/Si)) { return Thieving }
  29. elseif ($regex($1,/^slay(er|ing)?$/Si)) { return Slayer }
  30. elseif ($regex($1,/^farm(er|ing)?$/Si)) { return Farming }
  31. elseif ($regex($1,/^(rc|runecraft)(er|ing)?$/Si)) { return Runecraft }
  32. elseif ($regex($1,/^(poh|cons?(truct)?(ion|ing)?|carp(entry)?)$/si)) { return Construction }
  33. elseif ($regex($1,/^hunt(er|ing)?$/Si)) { return Hunter }
  34. elseif ($regex($1,/^sum(mon(ing)?)?$/Si)) { return Summoning }
  35. elseif ($regex($1,/^(dg|dun)?(g|ge|geon|geoneering)?$/Si)) { return Dungeoneering }
  36. elseif ($regex($1,/^(com|cmb)?(bt|t|bat)?$/Si)) { return Combat }
  37. elseif ($regex($1,/^(total|overall)?(level|lvl)?$/Si)) { return Total-Level }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement