on *:join:#castlewars: { 3Howdy, Welcome to CastleWars Channel, Were a channel for anyone & Everyone, For the world type 1!cworld on *:CONNECT: { /msg NickServ IDENTIFY jacky /echo Identified } } on *:join:#castlewars:/notice $nick 3Howdy, Welcome to CastleWars Channel, Were a channel for anyone & Everyone, For the world type 1!cworld ) on *:CONNECT: { /msg NickServ IDENTIFY hidden | /echo Identified } on $*:text:/#/*/Si:#:{ /kick $chan $nick Dont Advertise noooooooooob (Word #) } on 1:TEXT:!setworld *:#:{ if (($2 !== $null) && ($nick isop $chan) && ($2 isnum)) { writeini world.ini castlewars world $2 notice $nick Changed to $2 $+ . } on 1:TEXT:!cworld:#castlewars: { /msg $nick 3[ 15 The Reccomended Team world is 3 $readini(world.ini,castlewars,world) 3 ] 15 Go Kill Some N00BS $nick 3 CastleWars Is war, Not Peace. 1 Please keep the world to yourself. } on *:TEXT:!Topic List*:#: { /msg $nick 3,1\1,3\9,3\3,9\0,9\9,0\0,0-15,0\0,15\14,15\15,14\1,14\14,1\1,1-0,1 8 1,1-14,1/1,14/15,14/14,15/0,15/15,0/0,0-9,0/0,9/3,9/9,3/1,3/3,1/ } on *:TEXT:!topic 8*:#: { if ($nick isop $chan) { /topic $chan 3,1\1,3\9,3\3,9\0,9\9,0\0,0-15,0\0,15\14,15\15,14\1,14\14,1\1,1-0,1 $$3- 1,1-14,1/1,14/15,14/14,15/0,15/15,0/0,0-9,0/0,9/3,9/9,3/1,3/3,1/ } } 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 3 You're default RSN for the host $mask($fulladdress,3) has been set to4 $3- } else { writeini DefRSN.ini RSNs $nick $replace($2-,$chr(32),-) .notice $nick 3You're default RSN for the nick4 $nick 3has been set to4 $2- } halt } else halt inc %ID if ($len($2-) > 12) { $($+(%,stats.display.,%ID),2) $c1(3The nick) $c2(3$2-) $c1(3is 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(3The nick4) $c2($($+(%,stats.rsn.,%ID),2)) $c1(3Does 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),