Runescape statistieken
Auteur: Beau - 19 oktober 2008 - 14:00 - Gekeurd door: marten - Hits: 3496 - Aantal punten: (0 stemmen)
Steek dit script in je remote (alt+r)
en gebruik dan in een kanaal (gewoon tekst):
/stats JeRunescapeNaam
of
/stats -m JeRunescapeNaam
(dit geeft een bericht weer in het kanaal)
|
Code: |
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
}
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 }
Download code (.txt)
|
|
Stemmen |
Niet ingelogd. |
|