Combat¶
Methods to interact with the combat gametab:
TRSCombat¶
Main record responsible with handling the combat gametab.
Combat.IsOpen¶
function TRSCombat.IsOpen(): Boolean;
Returns true/false if the combat tab is open.
Example:
WriteLn Combat.IsOpen();
Combat.Open¶
function TRSCombat.Open(): Boolean;
Attempts to open the combat gametab.
Example:
WriteLn Combat.Open();
Combat.GetCategory¶
function TRSCombat.GetCategory(): EWeaponCategory;
Returns the EWeaponCategory of the current weapon.
Example:
{$I WaspLib/osrs.simba}
begin
WriteLn Combat.GetCategory();
end.
Combat.StyleBoxes¶
property TRSCombat.StyleBoxes: TBoxArray;
Returns the the attack style boxes available.
Example:
{$I WaspLib/osrs.simba}
begin
while True do
ShowOnTarget(Combat.StyleBoxes);
end.
Combat.StyleBoxes¶
property TRSCombat.WeaponStyle: EWeaponStyle;
property TRSCombat.WeaponStyle(value: EWeaponStyle): Boolean;
Gets/Sets the weapon EWeaponStyle.
Example:
{$I WaspLib/osrs.simba}
begin
WriteLn Combat.WeaponStyle;
WriteLn Combat.WeaponStyle := EWeaponStyle.BLOCK;
WriteLn Combat.WeaponStyle;
end.
Combat.StyleBoxes¶
property TRSCombat.MeleeStyle: EMeleeStyle;
property TRSCombat.MeleeStyle(value: EMeleeStyle): Boolean;
Gets/Sets the combat EMeleeStyle. Doesn’t do anything if we don’t have a
melee weapon.
Example:
{$I WaspLib/osrs.simba}
begin
WriteLn Combat.MeleeStyle;
WriteLn Combat.MeleeStyle := EMeleeStyle.SLASH;
WriteLn Combat.MeleeStyle;
end.
Combat.AutoRetaliate¶
property TRSCombat.AutoRetaliate: Boolean;
property TRSCombat.AutoRetaliate(value: Boolean): Boolean;
Gets/Sets the auto retaliate state.
Example:
{$I WaspLib/osrs.simba}
begin
WriteLn Combat.AutoRetaliate;
Combat.AutoRetaliate := True;
WriteLn Combat.AutoRetaliate;
Combat.AutoRetaliate := False;
WriteLn Combat.AutoRetaliate;
end.
Combat.SpecialAttack¶
property TRSCombat.SpecialAttack: Boolean;
property TRSCombat.SpecialAttack(value: Boolean): Boolean;
Gets/Sets the special attack state.
Example:
{$I WaspLib/osrs.simba}
begin
WriteLn Combat.SpecialAttack;
Combat.SpecialAttack := True;
WriteLn Combat.SpecialAttack;
Combat.SpecialAttack := False;
WriteLn Combat.SpecialAttack;
end.
Combat variable¶
Global TRSCombat variable.