Top

RuneScape Stats


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  1.0 (of 1 scores)
Date Added  Jul 05, 2007
Last Updated  Jul 05, 2007
Tags  look  lookup  oss  parser  rs  rscape  runescape  stats 

Description

This stats snippet gets RuneScape statistics from a parser that I made located at http://parsers.o-ss.net/oneline/stats.php

The syntax to use the snippet is easy to use:

!(rs)stats <user>

@(rs)stats <user>

.(rs)stats <user>

This is a remote script, and goes into your remotes section (alt+r)

Grab the Code

on $*:TEXT:/^[!@.](rs)?stats */Si:#: {
  if (!$2) { .notice $nick Enter an RSN to look up! | halt }
  if ($len($2) > 12) { .notice $nick RSN too long! | halt }
  var %x = 1
  while ($sock(rsstats. $+ %x)) inc %x
  .set %target. $+ %x $iif($left($1,1) == @,.msg $chan,.notice $nick)
  .set %rsn. $+ %x $replace($2-,$chr(32),+)
  sockopen rsstats. $+ %x parsers.o-ss.net 80
}
on *:sockopen:rsstats.*: {
  var %x = $right($sockname,1)
  if ($sockerr > 0) { %target. [ $+ [ %x ] ] Socket Error: $sockerr | cleanup $sockname | halt }
  sockwrite -nt $sockname GET /oneline/stats.php?user= $+ %rsn. [ $+ [ %x ] ] $+ &showcmb=1&showcollons=1 HTTP/1.1
  sockwrite -nt $sockname Host: parsers.o-ss.net
  sockwrite -nt $sockname $crlf
}
on *:sockread:rsstats.*: {
  var %x = $right($sockname,1)
  if ($sockerr > 0) { %target. [ $+ [ %x ] ] Socket Error: $sockerr | cleanup $sockname | halt }
  var %read | sockread %read
  if (: 0 isin %read) { %target. [ $+ [ %x ] ] %rsn. [ $+ [ %x ] ] is not in the Hi-Scores.  You have to be in the top million of any skill with a skill level of at least 30. | cleanup $sockname }
  if (combat isin %read) { %target. [ $+ [ %x ] ] $remove(%read,END) }
  if (overall isin %read) { %target. [ $+ [ %x ] ] $remove(%read,END,|) | cleanup $sockname }
}
alias cleanup {
  unset %target. $+ $right($1,1)
  unset %rsn. $+ $right($1,1)
  sockclose $1
}
 

Comments

  (5)  RSS
Anti
Comments: 317
 
mIRC Snippet:  RuneScape Stats
Posted on Jul 6, 2007 5:50 pm
I don't like it that much .. well good job i guess :D
PcDark
Comments: 2
 
mIRC Snippet:  RuneScape Stats
Posted on Jul 7, 2007 9:13 am
What's wrong with it?
Anti
Comments: 317
 
mIRC Snippet:  RuneScape Stats
Posted on Jul 10, 2007 4:23 pm
It just showed me like some ugly number i was hoping to see the full stats you know like Range - 61 Cooking - yaddy You know the works now that would be a kick anus snippet!
Metallboy100
Comments: 28
 
mIRC Snippet:  RuneScape Stats
Posted on Aug 20, 2007 11:58 am
not bad
mirrorkiss
Comments: 2
 
mIRC Snippet:  RuneScape Stats
Posted on Jun 19, 2009 9:26 pm
parser is bad >.>

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom