Combat

object Combat

Combat A utility class with methods for parsing widget and varpbit values.

Types

Style
Link copied to clipboard
enum Style : Enum<Combat.Style>

An enumeration of possible combat styles.

Functions

autoRetaliate
Link copied to clipboard
fun autoRetaliate(): Boolean

Whether or not the auto-retaliate is turned on.

fun autoRetaliate(set: Boolean): Boolean

Sets the desired state of auto-retaliate

health
Link copied to clipboard
fun health(): Int

Returns your player's current health.

healthPercent
Link copied to clipboard
fun healthPercent(): Int

Returns your player's current health in percentage from max health (0-100%).

inMultiCombat
Link copied to clipboard
fun inMultiCombat(): Boolean

Whether or not the player is in a multi-combat area.

isPoisoned
Link copied to clipboard
fun isPoisoned(): Boolean
isPoisonImmune
Link copied to clipboard
fun isPoisonImmune(): Boolean

Whether or not the player is temporarily immune to poison

maxHealth
Link copied to clipboard
fun maxHealth(): Int

Returns your player's max health.

specialAttack
Link copied to clipboard
fun specialAttack(): Boolean

Whether or not the player has a special attack queued.

fun specialAttack(select: Boolean): Boolean

Executes a special attack.

specialPercentage
Link copied to clipboard
fun specialPercentage(): Int

The special attack percentage.

style
Link copied to clipboard
fun style(): Combat.Style

Gets the selected combat Style.

fun style(style: Combat.Style): Boolean

Changes your current combat Style to the provided one.

wildernessLevel
Link copied to clipboard
fun wildernessLevel(): Int

Gets the wilderness level