SRL Archive - RS Scripts

PlayerCounter v2.0 RELEASED!!!


botmaster

2007-02-28 12:35:45

UPDATED RS PLAYER COUNTER!!! FULLY FUNCTIONAL AND WORKS 100%!

This script logs the number of total players on runescape.com over a period of time and graphs it realtime! Should there be a winsock error (for example, if port 80 is already in use), the script will simply put -1 as value. This will show up in the graph as a steep drop, so don't be surprised if you see something strange. It happens kinda often when surfing the web.

The script works by collecting the total # of users from the top of the runescape main page.

{======================[Description and Release Notes]=========================}
{ }
{ PlayerCounter V [2.0] }
{ }
{=============================[How to use this]================================}
{ }
{ What this script does is, that it connects to the runescape main page, }
{ gathering the entire page's content and then extracting the number of people }
{ playing the game from the top of the page. }
{ }
{ The script then dumps the information into the debug window, afterwards }
{ graphes it to the debug image in realtime. Using this tool, you can analyze }
{ what the statistics for RS are using an inbuilt plotter. }
{ }
{ Setup is simple. Set }
ClientName = 'Mozilla Firefox 1.5';
{ to the name of your client. You should choose something ordinary so RS }
{ doesn't suspect anything. }
{ Set the time interval for collection below in seconds: }
IntervalTime = 120;
{ I reccomend you keep it at over 30 seconds, else jagex might suspect your IP }
{ and do bannage. IP bannage alert! }
{ Set the below to how many times you want samples to be collected: }
SampleSize = 720;
{ Next, set the resolution of the data. I keep it at 1000's, so every pixel on }
{ the graph represents 1000 players, but set it to your liking: }
Resolution = 1000;
{ }
{ Just press the play button and allow the firewall to access the runescape }
{ main page. }
{ }
{ For more help and support go to }
{ [url]http://whitenoise.awardspace.com/index.php?act=scripts&script=rscounter[/url] }
{ }
{=============================[Version History]================================}
{ }
{ 1.5 - Completely rewrote the way I graph stuff. Much more advanced and no }
{ more crashes! Removed file support - the array isn't THAT big. This }
{ major update finally graphes correct and makes the graph do }
{ EVERYTHING correct. No more huge graphs with pixely lines and no }
{ reference! }
{ }
{ 1.6 - Bug fixes, bug fixes and bug fixes... Made it work intervals out in }
{ seconds not minutes. }
{ }
{ 2.0 - Decided to make this a new major version because the plotter in no }
{ way resembles the original except for the general idea. Release! }
{ }
{==============================================================================}
{ }
{ DO NOT DELETE BELOW THIS LINE }
{ (* A }
{ .--. . . }
{ | ) _|_ _|_ }
{ |--: .-. | .--.--. .-. .--.| .-. .--. }
{ | )( )| | | |( ) `--.| (.-' | }
{ '--' `-' `-'' ' `-`-'`-`--'`-'`--'' }
{ script production*) }
{ }
{ ADD LIST OF CONTRIBUTERS/EDITORS/MODIFIERS HERE: }
//Okay, after the above you can start editing again :P
{------------------------------------------------------------------------------}

This new version of the RS player counter has numerous bugfixes. It can now size down intervals to seconds and has a less detectible client name. Here's some of the new things:

  • Script now graphes correctly
  • The graph now has reference lines so you now know approximately what the data is
  • The debug image now remains as small as possible
  • You can specify the intervals in seconds
  • You can now choose how many samles you want to take!
  • No more runtime errors and failsafes

Some bugfixes from version 1.2:

  • Script doesn't graph reverse anymore
  • Script doesn't make debug window go half accross the screen
  • If the script fails to retreive runescape.com, it puts -1 as value

Oh, and you may realize that I disabled the export-to-file feature; this is because it doesn't make sense unless you gather consecutive data. Loading a file and then adding to it, I don't see any good in that (unless you JUST want to analyze it, in which case I'd make a screenshot).

Anyways, hope you like it. And post some reports!!! Here's my first one, I ran 15 second interval on a proxy (don't do this on your home comp - you'll get IP banned) and 500 recordings at 1000 resolution:



And by the way: The grey lines are 20 pixels appart both horizontally and vertically. This can help you to figure out when the script started and ended!

Don't forget to:


julle13

2007-02-28 13:40:50

Omg, this is very cool and works like charm ;)

botmaster

2007-02-28 15:26:34

Heh, thanks :). Next version will log worlds and record time started. I hope to redo the save-to-file feature soon and make it so you can actually SAVE data and piece it together after.

Freddy1990

2007-02-28 17:56:31

OMFGZ0R PlayerFickingCounter 2!
lol
Nice work, looks rly great

EDIT (After testing, lol):
Nice script, rly, very good idea, nice presentation and everything, good job :)

Smartzkid

2007-02-28 18:05:14

Heh Awesome script! Very fun to play with =)

botmaster

2007-03-01 07:15:50

Ran it for 24 hours straight. Seems to me like Americans are the hardest RS players; at 5pm EST, the graph shot up like a rocket. Just when all those american kids finished their homework XD. Also, you can actually see the stairstep-type increase in players when the timezone shifts :D.

Kinda ironic, game developed in britain is played mostly in america.

EDIT: BTW, forgot to take screeny :(. 24 hours of computing time wasted. BTW Freddy, how can I add parameters to new threads? I mean, a variable as parameter, not raw data. Cause everytime I try it it gives me a runtime error.

botmaster

2007-03-08 16:33:05

Take a look at this:



It says that clients are no longer allowed to parse content of the RS website. Hmm, wonder why it consumes so many resources… I guess some people went nuts running this script. Could technically be considered a DDOS attack. If the interval is set too low, you will piss jagex off.

I can't stress this enough: DON'T SET THE INTERVAL TOO LOW! YOU WILL EVENTUALLY GET THE RS SERVER DOWN.

Imagine several people doing this at once (say, 20 people run the script consecutively) with interval 2 secs. That means jagex will get an average of 20*2 more requests per second. It adds up. It literally DDOS's them, even though it's unintentional. DO NOT DO IT. Please!

Ron

2007-03-12 21:02:23

lol

Nice script man! My own group of 20 deviants, have set the interval to zero and are at a mass protest by parsing parts of the RS website! :D

They seem to make a new rule and like always, nobody really cares. SwiftSwitch is still going to grab stats off the RS high scores. What Jagex should do is create a "Software-Friendly" page for everything. Which is pretty much like a printer friendly page. Less data to show, less bandwidth used up. And also, faster scripts! :)

Edit: I just read that image you posted and heh the SwiftSwitch admin said the exact same thing as me.

bullzeye95

2007-03-12 21:53:41

From: botmaster
Take a look at this:



It says that clients are no longer allowed to parse content of the RS website. Hmm, wonder why it consumes so many resources… I guess some people went nuts running this script. Could technically be considered a DDOS attack. If the interval is set too low, you will piss jagex off.

I can't stress this enough: DON'T SET THE INTERVAL TOO LOW! YOU WILL EVENTUALLY GET THE RS SERVER DOWN.

Imagine several people doing this at once (say, 20 people run the script consecutively) with interval 2 secs. That means jagex will get an average of 20*2 more requests per second. It adds up. It literally DDOS's them, even though it's unintentional. DO NOT DO IT. Please!


Lol! Dude think about it. Their servers can hold SO MUCH more than a few little computers. But yeah, I'm gotta see this.

Oh and also when you said
{ to the name of your client. You should choose something ordinary so RS }
{ doesn't suspect anything. }
They can't see your window names. You could name the window "I'm cheating on RuneScape! From Kaitnieks." and they couldn't see it :p

botmaster

2007-03-16 17:02:35

From: bullzeye95
[…]Oh and also when you said They can't see your window names. You could name the window "I'm cheating on RuneScape! From Kaitnieks." and they couldn't see it :p


Actually, it doesn't set the window name. It sets the name of the client connecting to RS, which is the header information of the client's request to the server. It contains your IP, too, but I don't think you can edit that. And if you did, the server would send the information to the fake IP, so some innocent guy over the ocean would receive stuff he doesn't want to. BTW, this is basis of a man-in-the middle attack.

the smith400

2007-09-21 15:17:35

wow

the smith400

2007-09-21 15:19:36

and btw im a chicken which sucks(sorry for spamming) how do i become a King Black Dragon

HyperSecret

2007-09-21 15:24:40

well 1st off '03-16-2007' was the last post, way to bump a 6 month old thread, and also you need posts to not be a chicken…

the smith400

2007-09-21 15:26:35

ty

Harry

2007-09-21 15:34:16

And you need to stop double posting too :@

n3ss3s

2007-09-21 15:35:45

Actually, it doesn't set the window name. It sets the name of the client connecting to RS, which is the header information of the client's request to the server. It contains your IP, too, but I don't think you can edit that. And if you did, the server would send the information to the fake IP, so some innocent guy over the ocean would receive stuff he doesn't want to. BTW, this is basis of a man-in-the middle attack.


Sounds leet.


The script isnt so big that I thought, but your Debug Img - the "report" is the coolest thing printed on debug image I've ever seen!

EDIT:
I've left the forums. Permanently.
Oww ;( then you wont be seeing this.

Lalaji

2007-09-21 15:45:23

Nice, Still this is the only rs counter i know of, lol

Zarric Hyunmin

2007-10-18 17:07:33

Pretty sweet script

vasu

2007-10-26 15:23:25

haha, sweet script :D i'll try it after school

man slaughter

2008-03-05 19:53:46

does anyone have the decency to run this on an average week. i would really like total population data. it would also be nice to see world specific data. im going to make one of these that logs into an xml file each world, possibly in as3 or if i get oround to it in c++ using WPF. its definitely in my list of things to do. an ever lasting php script running on a server might be a better choice.

Harry

2008-03-05 20:17:57

From: man slaughter
does anyone have the decency to run this on an average week. i would really like total population data. it would also be nice to see world specific data. im going to make one of these that logs into an xml file each world, possibly in as3 or if i get oround to it in c++ using WPF. its definitely in my list of things to do. an ever lasting php script running on a server might be a better choice.


10-26-2007, 03:23 PM Nice bump…? :rolleyes:

richk1693

2008-03-07 17:15:23

From: botmaster
Take a look at this:



It says that clients are no longer allowed to parse content of the RS website. Hmm, wonder why it consumes so many resources… I guess some people went nuts running this script. Could technically be considered a DDOS attack. If the interval is set too low, you will piss jagex off.

I can't stress this enough: DON'T SET THE INTERVAL TOO LOW! YOU WILL EVENTUALLY GET THE RS SERVER DOWN.

Imagine several people doing this at once (say, 20 people run the script consecutively) with interval 2 secs. That means jagex will get an average of 20*2 more requests per second. It adds up. It literally DDOS's them, even though it's unintentional. DO NOT DO IT. Please!

I hope that was a joke……. That's so wrong its not even funny…..