Stats¶
Methods responsible for dealing with the stats tab.

ERSSkill¶
ERSSkill = enum(
ATTACK, HITPOINTS, MINING,
STRENGTH, AGILITY, SMITHING,
DEFENCE, HERBLORE, FISHING,
RANGED, THIEVING, COOKING,
PRAYER, CRAFTING, FIREMAKING,
MAGIC, FLETCHING, WOODCUTTING,
RUNECRAFTING, SLAYER, FARMING,
CONSTRUCTION, HUNTER, TOTAL
);
Enum representing all skills in oldschool runescape.
TRSSkillInfo¶
Helper record to read skill information when you hover them in the Stats gametab.
TRSStats¶
Main record used to interact with the Stats gametab.
Stats.SetupGameTab¶
procedure TRSStats.SetupGameTab();
Internal method used to setup the TRSStats coordinates and internal values.
This is automatically called for you on the Stats variable.
TRSStats.Skills¶
Skills: TBoxArray;
TBoxes
for each of the Stats skills.
Example:
ShowOnTarget(Stats.Skills);

You can also access each skill box with an index or, more conveniently, with a ERSSkill.
Example:
ShowOnTarget(Stats.Skills[ERSSkill.HERBLORE]);

Stats.IsOpen¶
function TRSStats.IsOpen(): Boolean;
Returns true/false if the stats gametab is open or not.
Example:
WriteLn Stats.IsOpen();
Stats.Open¶
function TRSStats.Open(): Boolean;
Attempts to open the stats gametab.
Example:
WriteLn Stats.Open();
Stats.Hover¶
function TRSStats.Hover(skill: ERSSkill): Boolean;
Moves the mouse over to a skill box.
Example:
WriteLn Stats.Hover(ERSSkill.CONSTRUCTION);
Stats.FindSkillInfo¶
function TRSStats.FindSkillInfo(skill: ERSSkill; out skillInfo: TRSSkillInfo): Boolean;
Find and return a TRSSkillInfo if it matches the one we are looking for.
Stats.GetSkillInfo¶
function TRSStats.GetSkillInfo(skill: ERSSkill; waitTime: Integer = 1000): TRSSkillInfo;
Get the skill information about a skill when you hover it.
Example:
WriteLn Stats.GetSkillInfo(ERSSkill.CONSTRUCTION);
Stats.GetLevel¶
function TRSStats.GetLevel(skill: ERSSkill; useCache: Boolean = True): Integer;
Get the level of the specified skill. By default uses the levels cached in the Stats.Levels array. When using the cached methods, it can be used to retrieve the level of a skill while the gametab is open assuming the level is already cached.
Example:
WriteLn Stats.GetLevel(ERSSkill.HITPOINTS);
Stats.CacheStats¶
procedure TRSStats.CacheStats();
Method to update all cached levels.
Stats.IncrementCachedLevel¶
procedure TRSStats.IncrementCachedLevel(skill: ERSSkill);
Internal method to update cached levels. This is automatically called by Chat.LeveledUp().
Example:
WriteLn Stats.GetCurrentLevel(ERSSkill.PRAYER);
Stats.IncrementLevel(ERSSkill.PRAYER);
WriteLn Stats.GetCurrentLevel(ERSSkill.PRAYER);
Stats variable¶
Global TRSStats variable.