public class SimpleCombat extends ClientAccessor<ClientContext>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleCombat.Style
An enum of the possible Combat Style to switch to
{Style.ACCURATE, Style.AGGRESSIVE, Style.CONTROLLED, Style.DEFENSIVE}
|
ctx
Constructor and Description |
---|
SimpleCombat(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
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 |
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()
Deprecated.
|
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
|
SimpleCombat.Style |
style()
will return your current combat style
|
boolean |
style(SimpleCombat.Style 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 SimpleCombat(ClientContext ctx)
ctx
- public boolean autoRetaliate()
public boolean toggleAutoRetaliate(boolean enable)
enable
- public boolean toggleSpecialAttack(boolean enable)
enable
- public boolean specialAttack()
public int getSpecialAttackPercentage()
public boolean inMultiCombat()
@Deprecated public boolean isPoisonImmune()
public boolean isVenomed()
public boolean isPoisoned()
public int health()
public int maxHealth()
public int healthPercent()
public SimpleCombat.Style style()
@Deprecated public boolean style(SimpleCombat.Style style)
style
-