Class Skills

java.lang.Object
net.storm.sdk.game.Skills

public class Skills extends Object
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:
  • Skill
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getBoostedLevel(net.runelite.api.Skill skill)
    Gets the current boosted (or drained) level of a skill.
    static int
    getExperience(net.runelite.api.Skill skill)
    Gets the total experience points in a skill.
    static int
    getLevel(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - the Skill to 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 - the Skill to 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 - the Skill to query
      Returns:
      the total experience in the skill
    • getReducedSkills

      public static List<net.runelite.api.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 Skill values that are currently reduced