Results 1 to 3 of 3

Thread: Get skills lite

  1. #1
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default Get skills lite

    i found the light version of the hiscore rankings for runescape and remade my getskill functions. They are in numbers however and i dont feel like retyping what the skills are for each number but im sure you can find out. This takes much less computing power since there is such smaller of a string to trim then before. I also have added getrank getlvl and getxp so it is easy to get each one when you need it. Here you go.

    SCAR Code:
    program New;
    var s: array [0..23] of string;
    var site,temps: string;
    var ii: integer;

    Function GetStat(Number: integer): String;
    var i: integer;
    begin
      for i:=0 to number do
      begin
          temps:=left(site,1);
          s[i]:=temps+between(temps,chr(10),site);
          delete(site,pos(temps,site),pos(chr(10),site))
       end;
      result:= s[number];
    end;

    Function Getplayerrank(Player: string;Skill: integer): String;
    var ss,sss: string;
    begin
      site:=getpage('http://hiscore.runescape.com/index_lite.ws?player='+Player)
      ss:=Getstat(Skill);
      sss:=left(ss,1)
      Result:=sss+Between(sss,',',ss);
    end;

    Function Getplayerlvl(Player: string;Skill: integer): String;
    var ss: string;
    begin
      site:=getpage('http://hiscore.runescape.com/index_lite.ws?player='+Player)
      ss:=getstat(skill);
      delete(ss,1,pos(',',ss))
      delete(ss,pos(',',ss),10)
      result:=ss;
    end;

    Function Getplayerxp(player: string;skill: integer): string;
    var ss:string;
    begin
      site:=getpage('http://hiscore.runescape.com/index_lite.ws?player='+Player)
      ss:=getstat(skill);
      delete(ss,1,pos(',',ss))
      delete(ss,1,pos(',',ss));
      result:=ss;
    end;

  2. #2
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Nice. Something faster FTW. You might want to turn it into a .DLL?


    I might, but I'm to lazy.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  3. #3
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    ehh im also lazy. it took me around 2 months to actually complete this haha.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Skills Tab
    By HyperSecret in forum RS has been updated.
    Replies: 3
    Last Post: 10-20-2007, 03:16 AM
  2. including srl skills
    By omgh4x0rz in forum OSR Help
    Replies: 4
    Last Post: 02-11-2007, 02:59 PM

Posting Permissions

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