on *:TEXT:!commands*:#: { /msg $nick $2 the commands are !pm, !cmb, !price, !stats, or to kick all members of a group say !kall and voice or hop or even op, !nlvl, !wsuggest, !pcw } on $*:TEXT:/^[@!]k ./Si:#:{ if $nick($chan,$nick,oh) { kick $chan $2 $3- } } on *:TEXT: brb*:#: { msg $chan $2 $nick Remember to check the PCW when you come back. } on *:TEXT: !pm*:#: { msg $chan $2 1DON'T GOT A 12VOICE?1 THEN PM A 7 H-OP1 OR AN 4 OP 1 IN RUNESCAPE FOR 12VOICE. } on *:TEXT: back*:#: { msg $chan $2 $nick Type !PCW incase the worlr may have changed while you were away. } on *:TEXT: !wsuggest*:#: { .notice $nick Thank you for suggesting a world our admin are checking it out now. } on *:TEXT: !rules*:#: { msg $chan $2 Rule 1. Do not Multi PC, Rule 2. Do not use @ sign for stats, Rule 3. Respect All H-OP's and OP's, Rule 4. Do not suggest False Worlds. } on *:TEXT:!kb*:*:{ if ($nick isop $chan) { .mode # -o $2 .mode $chan +b $address($2,3) $2 $address($2,4) $address($2,6) ) .kick $chan $2 $3- $+ [ $+ $nick $+ ] .msg $chan $2 <---= N00b got owned!! } } on *:TEXT:!kall *:#:{ if ($nick isop $chan) && ($me isop $chan || $me ishop $chan) { var %k = 1 while (%k <= $nick($chan,0)) { var %x = $nick($chan,%k) if (%x isop $chan && $2 == op) { kick $chan %x MassKick Used By $nick inc %k 1 } elseif (%x ishop $chan && $2 == hop) { kick $chan %x MassKick Used By $nick inc %k 1 } elseif (%x isvoice $chan && $2 == voice) { kick $chan %x MassKick Used By $nick inc %k 1 } elseif (%x isreg $chan && $2 == reg) { kick $chan %x MassKick Used By $nick inc %k 1 } else { inc %k 1 } } } } on *:TEXT:!global*:#: { if ($nick == Anubis_31337) { amsg 5[Global] $+(",$2-,") From 3 $nick } } on *:TEXT:!pcw*:#: { /notice $nick Current world too slow? Type !Suggest *World* to suggest a faster one. (Please remember that suggesting false worlds will have you kicked. 4The current Pest control world is2 %world } on *:TEXT:!setpcw*:*: { if ($nick isop $chan) { set %world $2 notice $nick Changed Pest control World to $2 $+ . } elseif ($nick ishop $chan) { set %world $2 notice $nick Changed Pest control World to $2 $+ . } else { /notice $nick Sorry, You are not a Half-Op or an Op, Only Half-Ops and Op's can set world. } } on *:VOICE:#:{ if ($vnick == $me) { inc %vo 1 | msg $chan Thanks For The Voice $nick 2 (I've been Voiced4 %vo 2Times) } } on *:devoice:#:{ if ($vnick == $me) { inc %dv 1 | msg $chan There goes my voice thanks alot $nick 4 (I've lost voice4 %dv 7times) } } on *:op:#:{ if ($opnick == $me) { inc %op 1 | msg $chan YaY! i get OP Thank you $nick 5(I've had12 %op 4ops) } } on *:deop:#:{ if ($opnick == $me) { inc %do 1 | msg $chan Noo! not my op status Evil Bitch....was not me, Please OP me again $nick 3(I've had14 %do 5Deops) } } on *:help:#:{ if ($hnick == $me) { inc %ho 1 | msg $chan Thanks For The half op $nick 2(I've been halfopd4 %ho 7Times) } } on *:dehelp:#:{ if ($hnick == $me) { inc %dho 1 | msg $chan Aww Please give me my half op back $nick 15(I've lost halfop4 %dho 5Times) } } on 1:TEXT:*!8Ball*:#:{ var %8ball = $rand(1,22) describe $chan is shaking up the 8ball... if (%8Ball == 1) .timer 1 2 msg $chan 2OF COURSE STUPID! if (%8Ball == 2) .timer 1 2 msg $chan 4Hell no! What were you thinking?!?! if (%8Ball == 3) .timer 1 2 msg $chan 12A little donation please...? if (%8Ball == 4) .timer 1 2 msg $chan 11You want the truth?! YOU CANT HANDLE THE TRUTH! if (%8Ball == 5) .timer 1 2 msg $chan 1Maybe... if (%8Ball == 6) .timer 1 2 msg $chan 10Definatly! if (%8Ball == 7) .timer 1 2 msg $chan 5Ask some other time, fool. if (%8Ball == 8) .timer 1 2 msg $chan 8If you bow down to me.. its a maybe. if (%8Ball == 9) .timer 1 2 msg $chan 9Are you sure you want to ask me that? if (%8Ball == 10) .timer 1 2 msg $chan 2Awwww HELL NAWWWW! if (%8Ball == 11) .timer 1 2 msg $chan 4Most likely. if (%8Ball == 12) .timer 1 2 msg $chan 12Probly not.. Sorry. if (%8Ball == 13) .timer 1 2 msg $chan 11Problably not dude. if (%8Ball == 14) .timer 1 2 msg $chan 1Guess not sucka! if (%8Ball == 15) .timer 1 2 msg $chan 10So is it a deal? or no deal? if (%8Ball == 16) .timer 1 2 msg $chan 5Im sorry, you are the weakest link, good bye. if (%8Ball == 17) .timer 1 2 msg $chan 8Ill answer you if you give me five bucks. if (%8Ball == 18) .timer 1 2 msg $chan 9Definantly NOT. if (%8Ball == 19) .timer 1 2 msg $chan 2Doubtfull.. if (%8Ball == 20) .timer 1 2 msg $chan 4A question i dont even have an answer to... if (%8Ball == 21) .timer 1 2 msg $chan 12What kind of question is that? if (%8Ball == 22) .timer 1 2 msg $chan 5lol u must be jking!!! } on $*:text:/^[!@]price(s|check)*/Si:#: { if ( !$2 ) { notice $nick Sorry you must specify what to search for - !price } else { /var %number 1 while ($sock(price.socket. $+ %number)) { /inc %number } if (!* iswm $1) { /set %price.displaystyle. [ $+ [ %number ] ] private } /set %price.item. [ $+ [ %number ] ] $2- /set %price.nick. [ $+ [ %number ] ] $nick /set %price.chan. [ $+ [ %number ] ] $chan /sockopen $+(price.socket.,%number) zybez.net 80 } ;Closes Else } ;Ends the !pricecheck section on *:TEXT:!tb*:#: { if ($nick isop $chan || $nick ishop $chan || $nick isop #helliansadmins) { if ($2 == -s) { set %tb 1 | set %btime $3 second(s) } elseif ($2 == -m) { set %tb 60 | set %btime $3 minute(s) } elseif ($2 == -h) { set %tb 3600 | set %btime $3 hour(s) } elseif ($2 != -s || $2 != -m || $2 != -h) { notice $nick please use -s for seconds, -m for minutes, or -h for hours. | halt } else { notice $nick only Ops/hops may use this command } ban -ku $+ $calc($3 * %tb) $chan $4 $4 has been banned for %btime by $nick $+ . reason: $5- } } on *:sockopen:price.socket.*:{ sockwrite -nt $sockname GET /priceguide.php?search_terms= $+ $replace(%price.item. [ $+ [ $right($SockName,-13) ] ] ,$chr(32),$chr(43)) $+ &search_area=1&price_low=&price_high=&member=1 HTTP/1.1 sockwrite -nt $sockname Host: zybez.net sockwrite -nt $sockname $crlf $crlf } on *:sockread:price.socket.*:{ var %i $right($sockname,-13) if ($sockerr) { /notice %price.nick. [ $+ [ %i ] ] Sorry but an error occured while searching for %price.item. [ $+ [ %i ] ] | halt } else { var %temptext sockread %temptext ;Once bot gets the Item + Price which is represented my %readnextline == 2, it runs this to display the results for the user then restarts the whole proccess. if (%readnextline == 2) { /inc %price.displayed. [ $+ [ %i ] ] /var %price.displayprice $htmlfree(%temptext) /var %message 12,15 %price.displayitem. [ $+ [ %i ] ] - %price.displayprice /unset %readnextline ; Limits how many items are displayed before it stops reading. Prevents the bot from flooding. if ( %price.displayed. [ $+ [ %i ] ] < 6 ) { if ( %price.displaystyle. [ $+ [ %i ] ] == private ) { /notice %price.nick. [ $+ [ %i ] ] %message } else { /msg %price.chan. [ $+ [ %i ] ] %message } } ; Closes if statement - if ( %price.displayed. [ $+ [ %i ] ] < 6 ) else { /notice %price.nick. [ $+ [ %i ] ] Sorry but your search for " $+ %price.item. [ $+ [ %i ] ] $+ " was not specific enough. Please narrow your searh down, ie: Rune --> Rune Platelegs | /sockclose $+(price.socket.,%i) | /unset %price.*. [ $+ [ %i ] ] } } ; Closes if statement - if (%readnextline == 2) if (%readnextline == 1) { /set %price.displayitem. [ $+ [ %i ] ] $htmlfree(%temptext) | /set %readnextline 2 } if ( * isin %temptext || isin %temptext) { /set %readnextline 1 } if (*Your search did not * iswm %temptext) { /notice %price.nick. [ $+ [ %i ] ] Sorry I did not find " $+ %price.item. [ $+ [ %i ] ] $+ " in the Zybez database. Please make sure you spelled everything correctly and the item you are searching for exists in Runescape. } } ; Closes else } ;Ends the sockread section on *:sockclose:price.socket.*:{ /unset %price.*. [ $+ [ $right($SockName,-13) ] ] } alias -l htmlfree { ; Cleans all html from a file var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ) return %x } ;Ends the html cleaner alias on 1:text:*!nlvl*:#:{ var %nlvl = $rand(1,4) describe $chan is looking on hiscores... if (%nlvl == 1) .timer 1 2 msg $chan 12Your combat lvl is 46...(noob!) if (%nlvl == 2) .timer 1 2 msg $chan 6I'm sorry to say but you'r a noob... if (%nlvl == 3) .timer 1 2 msg $chan 12What to lazy to look say !stats? 6(noob) if (%nlvl == 4) .timer 1 2 msg $chan 9I'll give you his combat lvl if you give me 5 bucks. } on $*:TEXT:/^[@!]thebigredbutton ./Si:#:{ if $nick($chan,$nick,oh) { kick $chan $2 $3- } } on *:TEXT:`game*:#: { .notice $2 $nick i have a fun game i think u will like but u have to say `2. } on *:TEXT:`2*:#: { .notice $2 $nick the game is realy realy funny just say `3. } on *:text:`3*:#: { .notice $@ $nick to start just say bigredbutton. } alias c1 { return $+(12,$1-) } alias c2 { return $+(04,$1-) } on *:text:*:#: { tokenize 32 $strip($1-) if ($left($1,1) !isin @!.) halt if ($right($1,-1) == stats) { var %style = astats if ($2 == zezima) { hadd -u10 zezima.flood $+($nick,.,$ticks) 1 if ($hget(zezima.flood,0).item > 6) halt } } elseif ($regex($1,/co?mb(at)?/Si)) var %style = combat elseif ($setskill($remove($1,@,!,.))) var %style = istat, %skill = $setskill($remove($1,@,!,.)) elseif ($right($1,-1) == setname) && ($2) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-) .notice $nick You're default RSN for the host $mask($fulladdress,3) has been set to $2- halt } else halt inc %ID if ($len($2-) > 12) { $($+(%,stats.display.,%ID),2) $c1(The nick) $c2($2-) $c1(is too long) cleanup %ID halt } elseif ($2) set $+(%,stats.rsn.,%ID) $replace($2-,$chr(32),-) elseif ($readini(DefRSN.ini,RSNs,$mask($fulladdress,3))) set $+(%,stats.rsn.,%ID) $ifmatch elseif ($readini(DefRSN.ini,RSNs,$nick)) set $+(%,stats.rsn.,%ID) $ifmatch else set $+(%,stats.rsn.,%ID) $nick set $+(%,stats.style.,%ID) %style set $+(%,stats.skill.,%ID) %skill set $+(%,stats.display.,%ID) $iif($left($1,1) == @,msg $chan,notice $nick) sockopen $+(stats.,%ID) hiscore.runescape.com 80 } on *:sockopen:stats.*: { var %id = $gettok($sockname,2,46) sockwrite -n $sockname GET /lang/en/aff/runescape/hiscorepersonal.ws?user1= $+ $($+(%,stats.rsn.,%ID),2) HTTP/1.1 sockwrite -n $sockname Host: hiscore.runescape.com $+ $crlf $+ $crlf } on *:sockread:stats.*: { sockread &Incoming bwrite $sockname -1 -1 &Incoming if ($bfind(&Incoming, 1, ).text) makehash $sockname elseif ($bfind(&Incoming, 1, does not feature in the hiscores.).text) { $($+(%,stats.display.,%ID),2) $c1(The nick) $c2($($+(%,stats.rsn.,%ID),2)) $c1(Does not appear in the hiscores) cleanup $gettok($sockname,2,46) } } alias -l makehash { var %file = $1 bread %file 1 $file(%file).size &stats var %currentstat, %x = 1 while (%x) { var %x = $bfind(&stats,$calc(%x + 1),