Class Skill

java.lang.Object
com.epicbot.api.shared.model.Skill

public abstract class Skill extends Object
  • Field Details

    • XP_TABLE

      public static final int[] XP_TABLE
  • Constructor Details

  • Method Details

    • getRealLevel

      public int getRealLevel()
      Gets the real level.
      Returns:
      the skill level that has not been modified by any spells, potions etc.
    • getCurrentLevel

      public int getCurrentLevel()
      Gets the current level.
      Returns:
      the skill level that can be modified by spells, potions etc.
    • getExperience

      public int getExperience()
      Gets the current experience.
      Returns:
      int
    • getPercentToNextLevel

      public int getPercentToNextLevel()
      Gets the percentage to the next level.
      Returns:
      the percent to the next level or 0 if level is 99.
    • getTotalExperienceToNextLevel

      public int getTotalExperienceToNextLevel()
      Gets the total experience needed to the next level.
      Returns:
      int
    • getExperienceToNextLevel

      public int getExperienceToNextLevel()
      Gets the current experience needed to the next level.
      Returns:
      int
    • getExpAtLevel

      public static int getExpAtLevel(int level)
      Gets the total experience at the given level.
      Parameters:
      level - the skill level
      Returns:
      int
    • getLevelAtExp

      public static int getLevelAtExp(int experience)
      Gets the level at the given amount of experience.
      Parameters:
      experience - the experience
      Returns:
      int
    • TTL

      public String TTL(long startTime, int startExp)
      Gets a formatted time to the next level.
      Parameters:
      startTime - the time the script was started
      startExp - the intial exp when the script was started
      Returns:
      formatted time
    • getSkillExperiences

      protected abstract int[] getSkillExperiences()
    • getCurrentSkillLevels

      protected abstract int[] getCurrentSkillLevels()
    • getRealSkillLevels

      protected abstract int[] getRealSkillLevels()