Combat¶
The combat file holds functions and procedures that are used for configuring combat.
type TRSCombat¶
The type that holds functions and properties of the Runescape combat interface.
var Combat¶
Variable that stores functions and properties of the Runescape combat interface.
type ECombatStyle¶
ECombatStyle = (cbtAccurate, cbtAggressive, cbtControlled, cbtDefensive, cbtRetaliate);
identifiers that is used for pressing the different buttons in the combat interface
Combat.IsOpen¶
function TRSCombat.IsOpen(maxWait:Int32=0): Boolean;
Checks if the interface is already open.
Combat.ToggleButton¶
function TRSCombat.ToggleButton(btn: ECombatStyle; enable:Boolean; tryTime:Int32=2000): Boolean;
Changes the state of the given button btn
(if needed) to the given state enable
.
Combat.GetSpecialAttack¶
function TRSCombat.GetSpecialAttack(): Int32;
Returns the specual attack level
Combat.SpecialAttackEnabled¶
function TRSCombat.SpecialAttackEnabled(): Boolean;
Returns True
if special attack has been activated
Combat.UseSpecialAttack¶
function TRSCombat.UseSpecialAttack(): Boolean;
Attempts to enabled special attack, returns True
if it managed to, or if it was already enabled.