on *:text:!pcw*:*:{ var %i 0 while (%i < 1) { inc %i 1 /notice $nick The current Pc World Is: 1 %PC $+ . } } on *:text:!setpcw*:#:{ set %PC $2- var %a 0 inc %a 1 /msg $chan The Pc World Has Been Changed!!! Type !pcw to see it } on *:TEXT:!commands:#:{ notice $nick My Commands Are: !dance (makes Kirby dance), !pcw (tells you the pcw), !setpcw (set a pcw, but only if it is good), !ownagemeter (tells you your ownage), !8ball (yes it's a magic 8ball)and !stats/!cmb for runescape player stats and combat lvl. } } on *:TEXT:!8ball*:#:{ msg $chan 8ball says: $read(8ball.txt) } on *:TEXT:!ownagemeter*:#:{ msg $chan ownagemeter says: $read(ownagemeter.txt) } } on *:TEXT:!dance*:#:{ msg $chan 13 $read(kirby.txt) } } } ;Ends the html cleaner alias 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) == defname) && ($2) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-) .notice $nick 7You're default RSN for the host 4 $mask($fulladdress,3) 7has been set to $2- halt } else halt inc %ID if ($len($2-) > 12) { 4 $($+(%,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),