Runescape Personal Stats Script

By beau on Sep 14, 2008

To use..
/stats (echoes)

OR

/stats -m (messages active)

I may add / later.

alias logo { return $+([,03,$$1-,,],03:,) }
alias s1 { return $+($chr(3),03,$1-,) }
alias wut { return $+($chr(77),$chr(97),$chr(100),$chr(101),$chr(32),$chr(98),$chr(121),$chr(32),$chr(66),$chr(101),$chr(97), $chr(117)) }
alias stats {
if (!$wut) { halt }
  if (!$1) {
   echo -a $logo(ERROR) No user specified. | halt
  }
  sockopen Stats. $+ $right($ticks,5) hiscore.runescape.com 80 
  set %display. [ $+ [ $right($ticks,5) ] ] $iif($1 == -m,msg $active,echo -a)
  if ($1) {
    set %search. [ $+ [ $right($ticks,5) ] ] $replace($iif($1 == -m,$2-,$1-),$chr(32),$chr(95))
  }
}

on *:SOCKOPEN:Stats.*: {
  sockwrite -nt $sockname GET /index_lite.ws?player= $+ %search. [ $+ [ $right($sockname,-6) ] ] HTTP/1.1
  sockwrite -nt $sockname Host: hiscore.runescape.com
  sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:Stats.*:{
  if ($sockerr) { unset %*.* [ $+ [ $right($sockname,-6) ] ] | sockclose $sockname | halt }
  var %read. [ $+ [ $right($sockname,-6) ] ]
  sockread %read. [ $+ [ $right($sockname,-6) ] ]
  tokenize 32 %read. [ $+ [ $right($sockname,-6) ] ]
  if (*404 - Page not found* iswm $1-) { %display. [ $+ [ $right($sockname,-6) ] ] $logo(ERROR) Stats for $s1(%search. [ $+ [ $right($sockname,-6) ] ]) not found. $wut | sockclose $sockname | halt }
  if (gmt !isin $1-) && (verdana !isin $1-) {
    set %a. [ $+ [ $right($sockname,-6) ] ] %a. [ $+ [ $right($sockname,-6) ] ] $gettok($1-,2,44)
  }
  if ($gettok(%a. [ $+ [ $right($sockname,-6) ] ],29,32)) {
    tokenize 32 %a. [ $+ [ $right($sockname,-6) ] ]
    var %a 1
    while (%a <= 29) {
      var %b %b $iif($gettok($1-,%a,32) != -1,$skill(%a) $s1($bytes($gettok($1-,%a,32),bd)) $iif(%a < 28,$chr(124)))
      inc %a   
    }
    %display. [ $+ [ $right($sockname,-6) ] ] $logo($upper($replace(%search. [ $+ [ $right($sockname,-6) ] ],$chr(95),$chr(32)))) $iif($right(%b,1) == $chr(124),$left(%b,-1),%b) $wut
    unset %*.* [ $+ [ $right($sockname,-6) ] ]
  }
}
alias skill {
  if (!$1) || ($1 == 1) { return Overall }
  if ($1 == 2) return Att
  if ($1 == 3) return Def
  if ($1 == 4) return Str
  if ($1 == 5) return HP
  if ($1 == 6) return Range
  if ($1 == 7) return Pray
  if ($1 == 8) return Magic
  if ($1 == 9) return Cook
  if ($1 == 10) return WC
  if ($1 == 11) return Fletch
  if ($1 == 12) return Fish
  if ($1 == 13) return FM
  if ($1 == 14) return Craft
  if ($1 == 15) return Smith
  if ($1 == 16) return Mine
  if ($1 == 17) return Herb
  if ($1 == 18) return Agil
  if ($1 == 19) return Thief
  if ($1 == 20) return Slay
  if ($1 == 21) return Farm
  if ($1 == 22) return RC
  if ($1 == 23) return Hunt
  if ($1 == 24) return Con
  if ($1 == 25) return Summ
  if ($1 == 26) return Duel
  if ($1 == 27) return Bounty
  if ($1 == 28) return Rogue
  if ($1 == 29) return FOG 
}

Comments

Sign in to comment.
Testor   -  Jul 11, 2009

Any plans on updating to single skills? :o

 Respond  
j-skrillz   -  Sep 15, 2008

those were the good old days....

 Respond  
beau   -  Sep 15, 2008

[ALF2315]: Overall 1,133 | Att 70 | Def 70 | Str 70 | HP 71 | Range 63 | Pray 53 | Magic 70 | Cook 56 | WC 64 | Fletch 66 | Fish 53 | FM 52 | Craft 51 | Smith 42 | Mine 50 | Herb 30 | Agil 37 | Thief 41 | Slay 42 | Hunt 41

^.^

 Respond  
j-skrillz   -  Sep 15, 2008

hmmm..that game used to be so much fun..but then they ruined it(i stopped before they ruined it)

if you wanna look me up my name was alf2315..i had i think 5 mil...back when 5 mil was alot..then stopped geting gp and basically just walked around pwning everything in my path till that got boring lol

runescape seriously sucks hxc now

 Respond  
beau   -  Sep 15, 2008

Shur.

 Respond  
napalm`   -  Sep 15, 2008

I can see the practicality if you play the game.

 Respond  
Baze   -  Sep 14, 2008

Very nice beau...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.