Quickmarch
2008-12-07 04:07:55
I don't know if this is useful or not and i don't think it has been made.
EDIT: Is this in the right section? Should it be in RS Scripts?
What it does:
Gets a Skill level from the runescape highscores
Example:
Enjoy :)
EDIT: Is this in the right section? Should it be in RS Scripts?
What it does:
Gets a Skill level from the runescape highscores
{*******************************************************************************
function GetLevelHS(Username, Skill: String): Integer;
By: Quickmarch
Description: Gets the Skill from the RS Highscores.
*******************************************************************************}
function GetLevelHS(Username, Skill: String): Integer;
var
Level, Level2, Level3: String;
Page: String;
begin
Page := GetPage('http://hiscore.runescape.com/hiscorepersonal.ws?user1=' + Username);
Level := Between(Capitalize(Skill), '<td align="center">', Page);
Level2 := Between('<td class="alL">', '</tr>', Level);
Level3 := Between('</td>', '</td>', Level2);
Result := StrToInt(GetNumbers(Level3));
if (Result <= 0) then
begin
WriteLn('There was a problem');
Exit;
end;
end;Example:
WriteLn(IntToStr(GetLevelHS('Username', 'Attack')));Enjoy :)