Class Combat

java.lang.Object
com.valhalla.sdk.api.methods.Combat

public final class Combat extends Object
Live combat statistics derived from the native skill snapshot.
  • Method Details

    • getCombatLevel

      public static int getCombatLevel()
    • calculateCombatLevel

      public static int calculateCombatLevel(int attack, int strength, int defence, int hitpoints, int prayer, int ranged, int magic)
    • getHealthPercent

      public static int getHealthPercent()
    • isInCombat

      public static boolean isInCombat()
      Returns whether the local player has a live native combat target.

      Returns false when combat state is not available. Scripts that need a hard compatibility gate should require Capabilities.COMBAT_STATE before relying on this value.

      Returns:
      whether the local player has a live native combat target
    • openTab

      public static boolean openTab()