Top

RuneScape Players Script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Jul 04, 2009
Last Updated  Jul 05, 2009
Tags  calc  mirc  players  runescape  script  trev 

Introduction

A simple script that returns the amount of people playing on RuneScape.

(11:22:40 PM) (@Trev) !rsplayers
(11:22:41 PM) —› (Notice:) -W|R|I|S|T- (RuneScape Players™) There are: 99,114 people playing RuneScape. That's an average of: 580 per world.

Grab the Code

Alias cc1 return $+($chr(3),01,$1-)
Alias cc2 return $+($chr(3),02,$1-)
Alias lg return $+($cc1($chr(40)),$cc2($1 $+ $chr(153)),$cc1($chr(41)))
On $*:TEXT:/^[!.@]rsplayers/Si:#: {
  set %players.style $iif($mid($1,1,1) == $chr(64),msg #,.notice $nick)
  sockopen Players. www.runescape.com 80
}
On *:SOCKOPEN:Players.: {
  sockwrite -n $sockname GET /title.ws HTTP/1.1
  sockwrite -n $sockname Host: www.runescape.com
  sockwrite -n $sockname $crlf
}
On *:SOCKREAD:Players.: {
  if ($sockerr) { halt }
  Else {
    var %players
    sockread %players
    if (*<div id="player_no">There are currently * people playing!</div>* iswm %players) {
      tokenize 32 %players
      set %players.numb $cc2(There are:) $cc1($bytes($5,bd)) $cc2(people playing RuneScape. That's an average of:) $cc1($round($calc($+($5,/,171)),0)) $cc2(per world.)
      %players.style $lg(RuneScape Players) %players.numb
      unset %players.*
      sockclose $sockname
    }
  }
}
 

Comments

  (1)  RSS
Aucun50
Comments: 548
 
mIRC Snippet:  RuneScape Players Script
Posted on Jul 5, 2009 3:46 am
Looks good although you could have added this with your other runescape script, other then that good job.

Commenting Options

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

  
Bottom