Package net.storm.api.game
Interface ISkills
public interface ISkills
Provides access to player skill information.
This interface offers methods to query skill levels, experience points, and boosted/drained status of player skills.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintgetBoostedLevel(net.runelite.api.Skill skill) Gets the current boosted (or drained) level of a skill.intgetExperience(net.runelite.api.Skill skill) Gets the total experience points in a skill.intgetLevel(net.runelite.api.Skill skill) Gets the base (real) level of a skill.List<net.runelite.api.Skill> Gets a list of all skills that are currently reduced below their base level.
-
Method Details
-
getBoostedLevel
int getBoostedLevel(net.runelite.api.Skill skill) Gets the current boosted (or drained) level of a skill.This returns the effective level after any temporary boosts (e.g., potions) or drains (e.g., special attacks, death). For example, if a player has 70 Attack and drinks a super attack potion, this would return a higher value.
- Parameters:
skill- the skill to query- Returns:
- the current boosted/drained level of the skill
-
getLevel
int getLevel(net.runelite.api.Skill skill) Gets the base (real) level of a skill.This returns the actual level based on experience, unaffected by any temporary boosts or drains.
- Parameters:
skill- the skill to query- Returns:
- the base level of the skill (1-99, or up to 126 for virtual levels)
-
getReducedSkills
List<net.runelite.api.Skill> getReducedSkills()Gets a list of all skills that are currently reduced below their base level.A skill is considered reduced when its boosted level is lower than its base level. This is useful for determining when to use stat-restoring items like super restores.
- Returns:
- a list of skills that are currently drained/reduced
-
getExperience
int getExperience(net.runelite.api.Skill skill) Gets the total experience points in a skill.- Parameters:
skill- the skill to query- Returns:
- the total experience points in the skill
-