on 1:TEXT:*!8Ball*:#:{ var %8ball = $rand(1,21) 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? } 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),