Does SRL have an inbuild function to get the experiance of a certian level (thieving)?
And then save it into a variabe.
Thanks
Does SRL have an inbuild function to get the experiance of a certian level (thieving)?
And then save it into a variabe.
Thanks
The function GetXP in GameTab.scar should be what you're looking for.
:-)
heres an example:
SCAR Code:Players[CurrentPlayer].integers[2] := GetSkillInfo('prayer', False);
writeln('Players Prayer level is ' + IntToStr(Players[CurrentPlayer].integers[2]));
Edit: sorry thats for the level..if you want it.
Then i get
Failed when compiling
Line 854: [Error] (1971:14): Unknown identifier 'Volume' in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/GameTab.scar
SCAR Code:program New;
{.include srl/srl.scar}
Var
Exp : Integer;
begin
Exp:=GetXP('thieving');
end.
That should work.
Nope, gametab is included with SRL.scar.
Did you remember to put SetupSRL; as the first line of your script?
There are currently 1 users browsing this thread. (0 members and 1 guests)