Package net.storm.sdk.game
Class Skills
java.lang.Object
net.storm.sdk.game.Skills
Provides static utility methods for accessing player skill information.
This class allows querying skill levels, experience, and identifying
skills that are currently reduced below their base level.
All methods in this class are static and delegate to the underlying ISkills implementation.
Example usage:
// Get the player's base Attack level
int attackLevel = Skills.getLevel(Skill.ATTACK);
// Get the current boosted/drained Hitpoints level
int currentHp = Skills.getBoostedLevel(Skill.HITPOINTS);
// Get total experience in a skill
int slayerXp = Skills.getExperience(Skill.SLAYER);
// Check which skills need restoration
List<Skill> reduced = Skills.getReducedSkills();
if (!reduced.isEmpty()) {
System.out.println("Skills needing restoration: " + reduced);
}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBoostedLevel(net.runelite.api.Skill skill) Gets the current boosted (or drained) level of a skill.static intgetExperience(net.runelite.api.Skill skill) Gets the total experience points in a skill.static intgetLevel(net.runelite.api.Skill skill) Gets the base (real) level of a skill.static List<net.runelite.api.Skill> Gets a list of all skills that are currently reduced below their base level.
-
Constructor Details
-
Skills
public Skills()
-
-
Method Details
-
getBoostedLevel
public static int getBoostedLevel(net.runelite.api.Skill skill) Gets the current boosted (or drained) level of a skill. This reflects temporary level changes from potions, prayers, or other effects.For example, if a player has 70 Attack and drinks a super attack potion, this method would return a value higher than 70. Conversely, if their stats are drained, this would return a value lower than their base level.
- Parameters:
skill- theSkillto query- Returns:
- the current boosted or drained skill level
-
getLevel
public static int getLevel(net.runelite.api.Skill skill) Gets the base (real) level of a skill. This is the player's actual skill level without any temporary modifiers.- Parameters:
skill- theSkillto query- Returns:
- the base skill level
-
getExperience
public static int getExperience(net.runelite.api.Skill skill) Gets the total experience points in a skill.- Parameters:
skill- theSkillto query- Returns:
- the total experience in the skill
-
getReducedSkills
Gets a list of all skills that are currently reduced below their base level. This is useful for determining which skills need restoration potions.A skill is considered "reduced" when its boosted level is less than its base level.
- Returns:
- a list of
Skillvalues that are currently reduced
-