;############################################### ;# RuneScape Hiscore Lookup Script -Aug 25, 06 # ;# Made by Ajay Haley (crashstash@hotmail.com) # ;# The mIRC Scripting Guild (msg.cryptica.net) # ;# Modified by RadoN # ;# # ;# 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 */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) global | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]total|overall */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) overall | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]att|attack */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) attack | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]def|defence */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) defence | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]str|strength */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) strength | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]hp|hitpoints */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) hitpoints | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]range|ranged */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) ranged | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]prayer */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) prayer | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]magic|mage */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) magic | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]cooking */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) cooking | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]wc|woodcutting */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) woodcutting | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]fletching */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) fletching | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]fishing */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) fishing | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]firemaking */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) firemaking | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]crafting */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) crafting | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]smithing */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) smithing | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]mining */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) mining | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]herblore */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) herblore | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]agility */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) agility | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]theiving|thieving */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) thieving | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]slayer */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) slayer | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]farming */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) farming | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]rc|runecraft|runecrafting */Si:#: { rsprofile $replace($2-,$chr(32),$chr(95)) runecraft | set %send $iif($left($1,1) == @,msg $chan,notice $nick) } on $*:TEXT:/^[!@]construction */Si:#: { 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 (