Combat¶
Methods to interact with the combat tab.
Combat.Setup¶
procedure TRSCombat.Setup; override;
Initializes Combat variables.
Note
This is automatically called on the Combat variable.
Combat.SetupAlignment¶
procedure TRSCombat.SetupAlignment(Mode: ERSClientMode); override;
Setups up the interface aligment for the current client mode.
Note
This is automatically called on the TRSClient.ClientModeChanged function.
Combat.IsOpen¶
function TRSCombat.IsOpen: Boolean;
Returns true if the combat tab is open.
Example:
WriteLn Combat.IsOpen;
Combat.Open¶
function TRSCombat.Open: Boolean;
Attempts to open the combat tab.
Example:
Combat.Open;
Combat.GetCombatStyle¶
function TRSCombat.GetCombatStyle: String;
Get the current attack style.
Example:
WriteLn('The current combat style is: ', Combat.GetCombatStyle);
Combat.SetCombatStyle¶
function TRSCombat.SetCombatStyle(Style: String): Boolean;
Set the attack style to the Style specified.
Example:
Combat.SetCombatStyle(COMBAT_STYLE_SLASH);
Combat.GetAutoRetaliate¶
function TRSCombat.GetAutoRetaliate(): Boolean;
Get the current state of auto retaliate.
Example:
WriteLn Combat.GetAutoRetaliate;
Combat.SetAutoRetaliate¶
function TRSCombat.SetAutoRetaliate(value: Boolean): Boolean;
Set the state of auto retaliate on or off.
Example:
Combat.SetAutoRetaliate(True);
Combat.GetWeapon¶
function TRSCombat.GetWeapon: String;
Get the name of the current worn weapon.
Example:
WriteLn('The current weapon is: ', Combat.GetWeapon);
Combat.GetCombatLevel¶
function TRSCombat.GetCombatLevel: Int32;
Get the current combat level.
Example:
WriteLn('Current combat level is: ', Combat.GetCombatLevel);
var Combat¶
Global Combat variable.