public class Combat
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Combat.Style
An enum of the possible Combat Style to switch to
{Style.ACCURATE, Style.AGGRESSIVE, Style.CONTROLLED, Style.DEFENSIVE}
|
Constructor and Description |
---|
Combat(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
int |
attackStyle()
Deprecated.
|
boolean |
autoRetaliate() |
int |
getSpecialAttackPercentage()
will return your special attack as a percentage out of 100
|
int |
health()
will return your current health
|
int |
healthPercent()
will return your current health based on a percentage out of {100}
|
boolean |
inCombat()
will return if an {NPC} is currently attacking you nor not, and not the other way around
|
boolean |
inMultiCombat()
will return if you are in a multi-combat area or not, {true} = in multi, {false} = not in multi
|
boolean |
isPoisoned()
will return if you are currently poisoned or not, {true} = yes, {false} = no
|
boolean |
isPoisonImmune()
will return if you are currently immune to poison or venom, {true} = immume, {false} = not immune
|
boolean |
isVenomed()
will return if you are currently venomed or not, {true} = yes, {false} = no
|
int |
maxHealth()
will return your max health based on your level
|
boolean |
specialAttack()
will return if your special attack is toggled on or off, {true} = on, {false} = off
|
Combat.Style |
style()
will return your current combat style
|
boolean |
style(Combat.Style style)
will switch your combat style to the specified {style}: {Style.ACCURATE, Style.AGGRESSIVE, Style.CONTROLLED, Style.DEFENSIVE}
|
boolean |
switchAttackStyles(int style)
Deprecated.
|
boolean |
toggleAutoRetaliate(boolean enable)
Will toggle auto retaliate to the specified toggle of {enable}
|
boolean |
toggleSpecialAttack(boolean enable)
will toggle special attack to the specified toggle of {enable}
|
public Combat(ClientContext ctx)
@Deprecated public boolean switchAttackStyles(int style)
public boolean toggleAutoRetaliate(boolean enable)
enable
- public boolean autoRetaliate()
public boolean toggleSpecialAttack(boolean enable)
enable
- public int getSpecialAttackPercentage()
public boolean specialAttack()
@Deprecated public int attackStyle()
public boolean inMultiCombat()
public boolean isPoisonImmune()
public boolean isVenomed()
public boolean isPoisoned()
public int health()
public int maxHealth()
public int healthPercent()
public boolean inCombat()
public Combat.Style style()
public boolean style(Combat.Style style)
style
-