Package com.valhalla.sdk.api.methods
Class Combat
java.lang.Object
com.valhalla.sdk.api.methods.Combat
Live combat statistics derived from the native skill snapshot.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateCombatLevel(int attack, int strength, int defence, int hitpoints, int prayer, int ranged, int magic) static intstatic intstatic booleanReturns whether the local player has a live native combat target.static booleanopenTab()
-
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
falsewhen combat state is not available. Scripts that need a hard compatibility gate should requireCapabilities.COMBAT_STATEbefore relying on this value.- Returns:
- whether the local player has a live native combat target
-
openTab
public static boolean openTab()
-