Runescape Player Counter v 1.2
Yep, it's finally happened... A script to log how many players are playing RS right now at this very moment!
SCAR Code:
{======================[Description and Release Notes]=========================}
{ }
{ PlayerCounter V [1.2] }
{ }
{=============================[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 }
{ writes it to a file in the same folder the script is in called }
{ people_playing.txt . Using this tool, you can log and later analyze what the }
{ statistics for RS are using an inbuilt plotter (set collectdata to false to }
{ show the graph). Sometimes the grapher bugs out, in this case try again and }
{ it will most likely work. }
{ }
{ Setup is simple. Set }
Showinfo = true;
{ to false if you don't want status reports every time a measurement is taken. }
{ Set the time interval below in minutes: }
Interval = 1; //MUST USE AN INTEGER!!! 1 = smallest possible!!!
{ Set the below to the name of the client (to send jagex a "message" ;P ) }
clientname = 'RuneScape Player Counter v1.1';
{ Set the below to true if you want it to collect data and false if you want }
{ to analyze data that's already been collected. Either way, the graph will be }
{ displayed and updated every time a measurement is taken (realtime) }
collectdata = true;
{ }
{ Just press the play button and allow the firewall to access the file and the }
{ runescape server. }
{ }
{ For more help and support go to }
{ [url]http://whitenoise.awardspace.com/index.php?act=scripts&script=rscounter[/url] }
{ }
{=============================[Version History]================================}
{ }
{ 0.1 - Copied over file system from my in-developement tutorial system }
{ 0.2 - Removed excess junk variables, forms, and other crap from copied over }
{ script. }
{ 0.3 - HTTP Client stuff finished. Trying to figure out what string could be }
{ the easiest to find on the page... }
{ 0.4 - Extraction mechanism finished, prints on screen }
{ 0.5 - Added file writing capabilities. Checked for potential file existence }
{ problems. Done! }
{ 1.0 - Added the usual "do not copy notices" and made script legible; added }
{ some comments and option of naming the client. Small formality fixes. }
{ And release of a very very very small script with too many comments }
{ :rolleyes: . }
{ 1.1 - Added a timer to collect data in specified intervals, changed setup, }
{ added option to disable debug messages, created status bar messages. }
{ 1.2 - Created data analyzer (graph to debug img), very crude. Probably has }
{ major bugs, but WTF, I release it anyways. }
{ }
{==============================================================================}
{ }
{ 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 script can take samles up to a rate of 1 sample per minute. It will graph all of them in realtime (which is still quite buggy
).
If you want to graph previous results without first collecting data, just set collectdata to false.
Anyways, inform me of bugs and try it out. Just run it in parallel to other scripts you're running. I'd be interested at what time RS has peak traffic!