on *:TEXT:!pcw*:#: { /notice $nick The current Pest control world is %pcw } on *:TEXT:!setpcw*:*: { if ($nick isop $chan) { set %pcw $2 notice $nick Changed Pest control World to $2 $+ . msg $nick $chan Set the New pcw, Too see the new Pcw please type !pcw. } 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 $*:TEXT:/^[!@]price */Si:#: { var %rstr = $+($r(0,9),$r(0,9),$r(0,9),$r(0,9),$r(0,9)) while ($sock($($+(price,%rstr),2))) { %rstr = $+($r(0,9),$r(0,9),$r(0,9),$r(0,9),$r(0,9)) } .set %price. $+ $(%rstr,2) $+ .rn $numtok($2-,44) .set %price. $+ $(%rstr,2) $+ .rc 1 .set %price. $+ $(%rstr,2) $+ .rvmi 0 .set %price. $+ $(%rstr,2) $+ .rvma 0 .set %price. $+ $(%rstr,2) $+ .nick $nick .set %price. $+ $(%rstr,2) $+ .type $iif($2 == -e,strict,$iif(-s* iswm $2,spend $dcon($remove($2,-s)),free)) .set %price. $+ $(%rstr,2) $+ .item $iif($2 == -e || -s* iswm $2,$3-,$2-) .set %price. $+ $(%rstr,2) $+ .ret $iif($left($1,1) == !,notice $nick,msg $chan) .sockopen price. $+ $(%rstr,2) zybez.com 80 } alias mcol { return $+($chr(3),13,$1,$chr(3),) } alias pcol { return $+($chr(3),04,$1,$chr(3),) } alias icol { return $+($chr(3),07,$1,$chr(3),) } alias dcon { if (*.* !iswm $1) { return $replace($1-,K,000,M,000000) } if (*.* iswm $1) && (($right($1,1) == K) || ($right($1,1) == M)) { var %rdat = $1, %nums = $len($gettok($remove($1,K,M),2,46)) %rdat = $calc($remove($1,.,K,M) * $iif($right($1,1) == K,$+(1,$str(0,$calc(3 - %nums))),$+(1,$str(0,$calc(6 - %nums))))) return %rdat } else { return $1 } } on *:SOCKOPEN:price.*: { if ($sockerr) { $($+(%,price.,$right($sockname,5),.ret),2) SockOpen Error: $sock($sockname).wsmsg return } var %rid = $right($sockname,5) .unset $($+(%,price.calc.,%rid),1) tokenize 32 $gettok($($+(%,price.,%rid,.item),2),$($+(%,price.,%rid,.rc),2),44) if ($remove($1,k,m,.) !isnum) { var %price.tmp.sendname = $replace($1-,$chr(32),+) } else { var %price.tmp.sendname = $replace($2-,$chr(32),+) | .set %price.calc. $+ %rid $dcon($1) } .sockwrite -n $sockname GET /priceguide.php?search_terms= $+ %price.tmp.sendname $+ &search_area=1&price_low=&price_high=&member=1 HTTP/1.1 .sockwrite -n $sockname Host: zybez.com $+ $crlf $+ $crlf } on *:SOCKREAD:price.*: { if ($sockerr) { $($+(%,price.,$right($sockname,5),.ret),2) SockRead Error: $sock($sockname).wsmsg return } var %rid = $right($sockname,5) tokenize 32 $gettok($($+(%,price.,%rid,.item),2),$($+(%,price.,%rid,.rc),2),44) if ($1 !isnum) { var %price.tmp.sendname = $replace($1-,$chr(32),+) } else { var %price.tmp.sendname = $replace($2-,$chr(32),+) | .set %price.calc. $+ %rid $1 } .sockread %sr if (** iswm %sr) && (** !iswm %sr) && (** !iswm %sr) { halt } if ($($+(%,price.read.,%rid),2) != $null) && (%sr != $null) { if (*search did not return any* iswm %sr) { .set %price. $+ %rid $+ .rs $($+(%,price.,%rid,.rs),2) $+ , $pcol(No price found for) $icol($+($chr(2),$gettok($($+(%,price.,%rid,.item),2),$($+(%,price.,%rid,.rc),2),44),$chr(2))) if ($($+(%,price.,%rid,.rc),2) < $($+(%,price.,%rid,.rn),2)) { .next_price %rid halt } } else { if ($($+(%,price.read.,%rid),2) == 4) { if ($+(*,$($+(%,price.tmp.name.,%rid),2),*) !iswm $($+(%,price.,%rid,.rs),2)) { if ($gettok($($+(%,price.,%rid,.type),2),1,32) == spend) { .set %price.calc. $+ %rid $floor($calc($gettok($($+(%,price.,%rid,.type),2),2,32) / $gettok($remove($($+(%,price.tmp.price.,%rid),2),gp,$chr(44)),2,45))) if ($($+(%,price.calc.,%rid),2) == 0) { .unset $($+(%,price.calc.,%rid),1) } } .set %price. $+ %rid $+ .rs $($+(%,price.,%rid,.rs),2) $+ , $+($chr(2),$iif($($+(%,price.calc.,%rid),2) != $null,$+($icol($bytes($ifmatch,b)),$chr(32)),),$mcol($($+(%,price.tmp.type.,%rid),2)),$icol($($+(%,price.tmp.name.,%rid),2)),$chr(2),$chr(32)) $& $+ $iif($($+(%,price.calc.,%rid),2) != $null, $pcol($+($bytes($calc($remove($gettok($($+(%,price.tmp.price.,%rid),2),1,45),gp,$chr(44)) * $ifmatch),b),gp)) - $pcol($+($bytes($calc($remove($gettok($($+(%,price.tmp.price.,%rid),2),2,45),gp,$chr(44)) * $ifmatch),b),gp)) $+($chr(40),$pcol($($+(%,price.tmp.price.,%rid),2)),$chr(41)), $pcol($($+(%,price.tmp.price.,%rid),2))) .inc $($+(%,price.,%rid,.rvmi),1) $iif($($+(%,price.calc.,%rid),2) != $null,$calc($remove($gettok($($+(%,price.tmp.price.,%rid),2),1,45),gp,$chr(44)) * $ifmatch),$remove($gettok($($+(%,price.tmp.price.,%rid),2),1,45),gp,$chr(44))) .inc $($+(%,price.,%rid,.rvma),1) $iif($($+(%,price.calc.,%rid),2) != $null,$calc($remove($gettok($($+(%,price.tmp.price.,%rid),2),2,45),gp,$chr(44)) * $ifmatch),$remove($gettok($($+(%,price.tmp.price.,%rid),2),2,45),gp,$chr(44))) } if ($($+(%,price.,%rid,.rc),2) < $($+(%,price.,%rid,.rn),2)) { .next_price %rid halt } } if ($($+(%,price.read.,%rid),2) == 3) { .set %price.tmp.price. $+ %rid $nohtml(%sr) | inc $($+(%,price.read.,%rid),1) 1 } if ($($+(%,price.read.,%rid),2) == 2) { if ($($+(%,price.,%rid,.type),2) == strict) && ($replace($nohtml(%sr),$chr(32),+) != %price.tmp.sendname) { .set $($+(%,price.read.,%rid),1) -5 } else { .set %price.tmp.name. $+ %rid $nohtml(%sr) inc $($+(%,price.read.,%rid),1) 1 } } if ($($+(%,price.read.,%rid),2) == 1) { .set %price.tmp.type. $+ %rid $iif(*Blank* iswm %sr,,) | .inc $($+(%,price.read.,%rid),1) 1 } if ($($+(%,price.read.,%rid),2) <= 0) { .inc $($+(%,price.read.,%rid),1) 1 } } } if (** iswm %sr) { .set %price.read. $+ %rid 0 } } on *:SOCKCLOSE:price.*: { var %rid = $right($sockname,5) if ($($+(%,price.,%rid,.rc),2) < $($+(%,price.,%rid,.rn),2)) { .next_price %rid halt } if ($numtok($right($($+(%,price.,%rid,.rs),2),-1),44) < $($+(%,price.,%rid,.rc),2)) { .set %price. $+ %rid $+ .rs $($+(%,price.,%rid,.rs),2) $+ , $pcol(No price found for) $icol($+($chr(2),$gettok($($+(%,price.,%rid,.item),2),$($+(%,price.,%rid,.rc),2),44),$chr(2))) } $($+(%,price.,%rid,.ret),2) $right($($+(%,price.,%rid,.rs),2),-2) if ($($+(%,price.,%rid,.rn),2) > 1) { $($+(%,price.,%rid,.ret),2) $pcol(Total Value: $+($bytes($($+(%,price.,%rid,.rvmi),2),b),gp) - $+($bytes($($+(%,price.,%rid,.rvma),2),b),gp)) } .unset $($+(%,price.*,%rid,*),1) } alias -l next_price { .unset $($+(%,price.read.,$1),1) var %sn = price. $+ $1 .sockclose %sn .inc $($+(%,price.,$1,.rc),1) 1 .sockopen %sn zybez.com 80 } alias nohtml { var %x,%i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x) return %x } on *:TEXT:!op*:#: { if ($nick isop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan +o $2 $nick } on *:TEXT:!hop*:#: { if ($nick isop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan +h $2 $nick } on *:TEXT:!v*:#: { if ($nick isop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan +v $2 $nick } on *:TEXT:!deop*:#: { if ($nick isop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan -o $2 $nick } on *:TEXT:!dehop*:#: { if ($nick ishop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan -h $2 $nick } on *:TEXT:!dev*:#: { if ($nick isop $chan) || ($address($nick,2) == $address($me,2)){ mode $chan -v $2 $nick } 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,24) 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!!! if (%8Ball == 23) .timer 1 2 msg $chan 5hold on im taking a piss ask me l8er... if (%8Ball == 24) .timer 1 2 msg $chan 5ha.... wait ur serious... } on $*:TEXT:/^[@!]k ./Si:#:{ if $nick($chan,$nick,oh) { kick $chan $2 $3- } } 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),