on *:TEXT:!setpcw*:#: { if ($nick isop # || $nick ishop #) && ($2 isnum 2-138) { set %pcw.nick. [ $+ [ $chan ] ] $nick set %pcw.world. [ $+ [ $chan ] ] $2 set %pcw.time. [ $+ [ $chan ] ] $ctime msg $chan 12The current pc-world has been changed in10 $chan 14! - 12Type: 10!pc/!pcw } else { notice $nick Access denied. } } on $*:TEXT:/^[!@.](pc(w)?|world)/Si:#:{ if ($nick isreg $chan) { halt } if (%pcw. [ $+ [ $chan ] ] == on) { if (%pcw. [ $+ [ $chan ] ] == off) { HALT } elseif (%pcw.nick. [ $+ [ $chan ] ] != $null) { notice $nick 12Current PcWorld:10 %pcw.world. [ $+ [ $chan ] ] $+ , 12was set by:10 %pcw.nick. [ $+ [ $chan ] ] 12and was set:10 $duration($calc( $ctime - %pcw.time. [ $+ [ $chan ] ] )) ago. } } } on *:text:!pestc on*:#:{ if ($nick isop #) || ($nick ishop #) { set %pcw. $+ $chan on /msg # 12Pest Control Command10 is now 12"on"10 for12 $chan } } on *:text:!pestc off*:#:{ if ($nick isop #) || ($nick ishop #) { set %pcw. $+ $chan off /msg # 12Pest Control Command10 is now 12"off"10 for12 $chan } } on *:TEXT:!tb *:#: { if (($nick isop $chan || $nick ishop $chan)) { inc %kicks 1 notice $2 13Teleblocked $2 For $3 Mins for Reason: $4- 15notice $2 11You are being Teleblocked For $3 9Mins teleblock 7ftw >< kick $chan $2 12TeleBlocked10 $2 12For10 $3 12Mins for Reason:10 $4- 12Banned By10 $nick 12[ KICKS %kicks ] /mode $chan +b $address($2,2) /timer 1 $calc($3 * 60) /mode $chan -b $address($2,2) /timer 1 $calc($3 * 60) /notice $2- 9,12You Are Now Unbanned From $chan ur teleblock has desipeared } } on $*:TEXT:/^[!@](price|pricecheck)/Si:#:{ if (!$2) { notice $nick -12Price1- 12Use a item: 10!price itemhere halt } else { inc %q inc %time.price set %price.item. [ $+ [ %q ] ] $replace($2-,$chr(32),$chr(37) $+ 20) set %price.style. [ $+ [ %q ] ] $iif($left($1,1) == @,msg $chan,notice $nick) 12- $nick - set %price.real. [ $+ [ %q ] ] $2- sockopen price. $+ %q zybez.net 80 } } on *:SOCKOPEN:price.*:{ sockwrite -nt $sockname GET /priceguide.php?search_terms= $+ %price.item. [ $+ [ %q ] ] $+ &search_area=1&price_low=&price_high=&member=1 HTTP/1.1 sockwrite -nt $sockname Host: www.zybez.net sockwrite -nt $sockname $crlf $crlf } on *:SOCKREAD:price.*:{ var %style = %price.style. [ $+ [ %q ] ], %item = %price.item. [ $+ [ %q ] ], %real = %price.real. [ $+ [ %q ] ] if ($sockerr) { %style 12An error 10occured while 12connecting clean.up %q sockclose $sockname return halt } else { var %read sockread %read if (Your search did not return any results. Please make sure your spelling is correct and that you are typing full words. isin %read) { %style 12No results were found for "10 $+ %real $+ 1" clean.up %q sockclose $sockname return halt } elseif (* iswm %read) { tokenize 32 $nohtml(%read) set %price.name. [ $+ [ %q ] ] $1- } elseif (* iswm %read) { tokenize 32 $nohtml(%read) set %price.price. [ $+ [ %q ] ] $1- } elseif (* iswm %read) { tokenize 32 $nohtml(%read) set %price.cat. [ $+ [ %q ] ] $1- } if (%price.name. [ $+ [ %q ] ] && %price.price. [ $+ [ %q ] ] && %price.cat. [ $+ [ %q ] ]) { inc %price.times. [ $+ [ %q ] ] if (%price.times. [ $+ [ %q ] ] > 5) { %style 12Max results of 10 512 allowed. 10Try making your search for "12 $+ %real $+ 10" more specific. clean.up %q sockclose $sockname return halt } elseif (%price.times. [ $+ [ %q ] ] < 5 || %price.times. [ $+ [ %q ] ] == 5) { %style %price.name. [ $+ [ %q ] ] $& 12Price -10 %price.price. [ $+ [ %q ] ] $& 12Category 10- %price.cat. [ $+ [ %q ] ] $& 12Served 10-# %time.price unset %price.name. [ $+ [ %q ] ] unset %price.price. [ $+ [ %q ] ] unset %price.cat. [ $+ [ %q ] ] } } if ( isin %read) { clean.up %q sockclose $sockname return halt } } } on *:SOCKCLOSE:price.*:{ unset %price.* halt } alias -l clean.up { unset %price.*. [ $+ [ $1 ] ] sockclose price. $+ $1 halt } alias -l nohtml { var %x,%i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x) %x = $replace(%x, ,$null) return %x } return %x } alias c1 { return $+(,$1-) } alias c2 { return $+(,$1-) } on *:text:*:#: { tokenize 32 $strip($1-) if ($left($1,1) !isin @!.) halt if ($right($1,-1) == stats) var %style = astats 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) == setrsn) && ($2) { if ($2 == -h) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($3-,$chr(32),-) .notice $nick 12You're default 10 RSN for the host 12 $mask($fulladdress,3) 10 has been set to 12 $3- } else { writeini DefRSN.ini RSNs $nick $replace($2-,$chr(32),-) .notice $nick 12You're default 10 RSN for the host 12 $mask($fulladdress,3) 10 has been set to 12 $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) 12 $c1(The nick) 10 $c2($($+(%,stats.rsn.,%ID),2)) 12 $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),