Top

Dynamic Stats Greet [RuneScape]


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Oct 25, 2009
Last Updated  Oct 26, 2009
Tags  dynamic  greet  rs  rune  runescape  scape  skill  start 

Introduction

Grabs your stat information from RScript.org and sets your greet according to your skill information!
E: Shows percentage to 99.
Quote:
@Spam: [Five] Slayer Statistics: Level: 87 | Rank: 32,684 | Exp: 4,143,747 (8,890,684 To 99 (31.79%))


Grab the Code

on *:Connect: { DynamicGreet }
Alias DynamicGreet {
  if ($Sock(Greet)) { SockClose Greet }
  if (!%Greet-RSN) { Set %Greet-RSN $?="Insert RSN Here." }
  if (!%Greet-Skill) { Set %Greet-Skill $?="Pick a skill! If the skill is Overall the script won't function correctly." }
  SockOpen Greet rscript.org 80 
}
on *:SockOpen:Greet: {
  SockWrite -nt Greet GET $+(/Lookup.php?type=stats&user=,%Greet-RSN) HTTP/1.1
  SockWrite -nt Greet Host: rscript.org
  SockWrite -nt Greet $crlf
}
on *:SockRead:Greet: {
  if ($SockErr) { SockClose Greet | SockOpen Greet rscript.org 80 }
  Else {
    Var %Greet
    SockRead %Greet
    if (%Greet-Skill isin %Greet) {
      Tokenize 32 $GetTok(%Greet,2-,32)
      Set %Greet.Rank $Bytes($1,bd) | Set %Greet.Level $Bytes($2,bd)
      Set %Greet.Exp $Bytes($3,bd) | Set %Greet.99 $Bytes($Calc(13034431 - $3),bd) 
      Ns set greet %Greet-Skill Statistics: Level: %Greet.Level $(|) $&
        Rank: %Greet.Rank $(|) Exp: %Greet.Exp $+($Chr(40),%Greet.99 To 99 $Chr(40), $&
        $Round($Calc(($3 /13034431)*100),2),%,$chr(41),$Chr(41))
      Unset %Greet.*
      SockClose Greet
    }
  }
}
Menu Channel {
Refresh Stats Info: DynamicGreet
}

Comments

  (0)  RSS

Commenting Options

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

  
Bottom