Results 1 to 4 of 4

Thread: Runescape Player Counter

  1. #1
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Runescape Player Counter

    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!

    It's been a while... but I'm BACK!!!

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Only got 7 dots so far, but it's looking good. I'll leave it on for a few hours and come back later.

  3. #3
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Wow this is pretty cool...I'll post again once its run for a while

    EDIT:
    Why only update once a minute?

    EDIT:
    Ok, tested a bit, and I think the graph needs a bit of work, with 200,000+ peeps on, its like 1/10 of the way up the page- should be more sensitive...like maybe 300,000 peeps max, so when theres 200,000 people on, the line would be 1/3 down the page...

    Other than that its pretty cool

    EDIT:
    Also, the debug image is like ten times bigger than the graph...after a while, it gets pretty big...
    Interested in C# and Electrical Engineering? This might interest you.

  4. #4
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Updates once a minute because if I made it every second, it would make jagex suspect your IP . Plus, the clientname is kinda suspicios. They'll figure out its a script. Once they got your IP, they could easily ban you. At least it makes you a more likely IP ban victim.

    To make the graph higher, replace the number 250 with whatever height you want the debugimg to be.

    I still have some bugs with the width. If you tell me why this is so, I could change it. I think it's because somewhere I multiply it by 10 or sumthing...

    EDIT: I think its because I'm editing the canvas without running it in a safe thread. Redoing the entire graphing thing. Plus, it graphes in reverse. -Y and Y are switched.

    It's been a while... but I'm BACK!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ultimate Merchanter (first player to player seller!)
    By Timothegreat in forum RS3 Outdated / Broken Scripts
    Replies: 63
    Last Post: 05-14-2009, 02:07 PM
  2. Player not found in player array?quikchat?
    By jerrysyron in forum OSR Help
    Replies: 2
    Last Post: 08-01-2008, 12:44 AM
  3. HAHAH - oh mah gawd-One of my friends got made a Runescape player mod
    By Lokito in forum RuneScape News and General
    Replies: 37
    Last Post: 12-02-2007, 10:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •