;############################################### ;# RuneScape Hiscore Lookup Script -Aug 25, 06 # ;# Made by Ajay Haley (crashstash@hotmail.com) # ;# The mIRC Scripting Guild (msg.cryptica.net) # ;# # ;# IF YOU WANT TO USE THIS SCRIPT, MAKE SURE # ;# THAT YOU COPY >>EVERYTHING<< HERE OR ELSE # ;# IT WILL NOT WORK!!!!!!!! Hint: Use CTRL+A # ;############################################### on *:TEXT:!stats*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) global | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!overall*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) overall | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!attack*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) attack | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!defence*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) defence | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!strength*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) strength | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!hitpoints*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) hitpoints | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!ranged*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) ranged | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!prayer*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) prayer | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!magic*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) magic | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!cooking*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) cooking | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!woodcutting*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) woodcutting | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!fletching*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) fletching | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!fishing*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) fishing | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!firemaking*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) firemaking | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!crafting*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) crafting | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!smithing*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) smithing | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!mining*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) mining | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!herblore*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) herblore | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!agility*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) agility | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!thieving*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) thieving | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!slayer*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) slayer | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!farming*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) farming | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!runecraft*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) runecraft | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on *:TEXT:!construction*:#: { rsprofile $replace($2-,$chr(32),$chr(95)) construction | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } alias rsprofile { ;########################################## ;### What to say if the script is busy? ### ;########################################## if (%rsp.busy == yes) { notice $nick $nick $+ , I cannot check two people at once. Please wait. | halt } set %rsp.busy yes set %rsp.user $upper($left($1,1)) $+ $lower($right($1,-1)) set %rsp.exit1 $2 set %rsp.style 7 set %rsp.colour 4 ;################################################### ;### What to say if they're not on the hiscores? ### ;################################################### set %rsp.0 -- set %rsp.rank.overall %rsp.0 | set %rsp.lvl.overall %rsp.0 | set %rsp.xp.overall %rsp.0 set %rsp.rank.attack %rsp.0 | set %rsp.lvl.attack %rsp.0 | set %rsp.xp.attack %rsp.0 set %rsp.rank.defence %rsp.0 | set %rsp.lvl.defence %rsp.0 | set %rsp.xp.defence %rsp.0 set %rsp.rank.strength %rsp.0 | set %rsp.lvl.strength %rsp.0 | set %rsp.xp.strength %rsp.0 set %rsp.rank.hitpoints %rsp.0 | set %rsp.lvl.hitpoints %rsp.0 | set %rsp.xp.hitpoints %rsp.0 set %rsp.rank.ranged %rsp.0 | set %rsp.lvl.ranged %rsp.0 | set %rsp.xp.ranged %rsp.0 set %rsp.rank.prayer %rsp.0 | set %rsp.lvl.prayer %rsp.0 | set %rsp.xp.prayer %rsp.0 set %rsp.rank.magic %rsp.0 | set %rsp.lvl.magic %rsp.0 | set %rsp.xp.magic %rsp.0 set %rsp.rank.cooking %rsp.0 | set %rsp.lvl.cooking %rsp.0 | set %rsp.xp.cooking %rsp.0 set %rsp.rank.woodcutting %rsp.0 | set %rsp.lvl.woodcutting %rsp.0 | set %rsp.xp.woodcutting %rsp.0 set %rsp.rank.fletching %rsp.0 | set %rsp.lvl.fletching %rsp.0 | set %rsp.xp.fletching %rsp.0 set %rsp.rank.fishing %rsp.0 | set %rsp.lvl.fishing %rsp.0 | set %rsp.xp.fishing %rsp.0 set %rsp.rank.firemaking %rsp.0 | set %rsp.lvl.firemaking %rsp.0 | set %rsp.xp.firemaking %rsp.0 set %rsp.rank.crafting %rsp.0 | set %rsp.lvl.crafting %rsp.0 | set %rsp.xp.crafting %rsp.0 set %rsp.rank.smithing %rsp.0 | set %rsp.lvl.smithing %rsp.0 | set %rsp.xp.smithing %rsp.0 set %rsp.rank.mining %rsp.0 | set %rsp.lvl.mining %rsp.0 | set %rsp.xp.mining %rsp.0 set %rsp.rank.herblore %rsp.0 | set %rsp.lvl.herblore %rsp.0 | set %rsp.xp.herblore %rsp.0 set %rsp.rank.agility %rsp.0 | set %rsp.lvl.agility %rsp.0 | set %rsp.xp.agility %rsp.0 set %rsp.rank.thieving %rsp.0 | set %rsp.lvl.thieving %rsp.0 | set %rsp.xp.thieving %rsp.0 set %rsp.rank.slayer %rsp.0 | set %rsp.lvl.slayer %rsp.0 | set %rsp.xp.slayer %rsp.0 set %rsp.rank.farming %rsp.0 | set %rsp.lvl.farming %rsp.0 | set %rsp.xp.farming %rsp.0 set %rsp.rank.runecraft %rsp.0 | set %rsp.lvl.runecraft %rsp.0 | set %rsp.xp.runecraft %rsp.0 set %rsp.rank.construction %rsp.0 | set %rsp.lvl.construction %rsp.0 | set %rsp.xp.construction % rsp.0 sockopen rslookup hiscore.runescape.com 80 } on *:sockopen:rslookup: { sockwrite -nt $sockname GET /lang/en/aff/runescape/hiscorepersonal.ws?user1= $+ %rsp.user HTTP/1.1 sockwrite -nt $sockname Host: hiscore.runescape.com $+ $crlf $+ $crlf } on *:sockread:rslookup: { if ($sockerr) { echo -a Error. halt } else { var %rsp.html sockread %rsp.html if (