Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: Nab runescape highscore stats?

  1. #26
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Mark, you should change it so that it does not display skills in which the user is not ranked (-1) or show "N/A".

    Edit: Here is my attempt. No form and no function. If you want a function with other data and such for each rank and user in a record or anything just say so.
    I made this since I cannot sleep and haven't used SCAR in a while.
    Output:

    SCAR Code:
    procedure RetreiveHighscores(Username : string; DisplayNR : boolean);
    var
      s : string;
      skNames, Arr, tmp : TStringArray;
      i, h : integer;
    begin
      s := GetPage('http://hiscore.runescape.com/index_lite.ws?player=' + Username);
      Arr := Explode(Chr(10), s);
      h := high(Arr);
      if h < 25 then
        exit;
      skNames := ['Overall', 'Attack', 'Defence', 'Strength', 'Constitution',
                  'Ranged', 'Prayer', 'Magic', 'Cooking', 'Woodcutting',
                  'Fletching', 'Fishing', 'Firemaking', 'Crafting', 'Smithing',
                  'Mining', 'Herblore', 'Agility', 'Thieving', 'Slayer',
                  'Farming', 'Runecrafting', 'Hunter', 'Construction', 'Summoning',
                  'Dungeoneering'];
      Writeln(Username);
      Writeln(Replicate('-', 25));
      for i := 0 to 25 do
      begin
        tmp := Explode(',', Arr[i]);
        if pos('-1', tmp[1]) > 0 then
          tmp[1] := 'Not Ranked';
        if (not DisplayNR) and (tmp[1] = 'Not Ranked') then
          Continue;
        Writeln(Format('%s%s', [Padr(skNames[i], 15), tmp[1]]));
      end;
      Writeln(Replicate('-', 25));
    end;

    begin
    RetreiveHighscores('Green098', False);
    end.
    DisplayNR governs whether or not if it will display skills that the user is not ranked in.
    Last edited by Sex; 04-12-2010 at 01:52 PM.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  2. #27
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mhkay, how about this? (and could please refrain from using my name on the forums, I don't like it)

    there's even pretty pictures

    (you have to unzip it all together somewhere for it to work)

    should look like this: (one of my accounts :3)

    Last edited by Blumblebee; 04-12-2010 at 04:02 PM.
    “Ignorance, the root and the stem of every evil.”

  3. #28
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Looks like sex.
    Oh Hai Dar

  4. #29
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    u guys beat me. :[

    anyways. u can use scars functions to take the html of the highscores page and search for the skills and their values. i havnt looked so i cant say what you would search for. then you would have each value. simply put
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  5. #30
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Month late, g0tp0t. Might want to watch that.

  6. #31
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    omfg!! :[. how many times now?
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Posting Permissions

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