From Stealth Client

Jump to: navigation, search

War

Attack

procedure Attack(ObjdID:Cardinal)

Throw an attack on the object ObjdID.

If you are not in War mode, the client can install it before the attack.

Example:

if (WarTargetID <> Enemy) then
  attack(Enemy);

SetWarMode

procedure SetWarMode(Value : Boolean)

Установить/сбросить режим боя.

Пример:

if (WarMode = false) then
  SetWarMode(true);

WarMode

function WarMode(): Boolean

Returns the state of combat mode (War).

Example:

if WarMode then
  addtosystemjournal('I am in war mode');
else 
  addtosystemjournal('I am not in war mode');

WarTargetID

function WarTargetID() : Cardinal

Return the ID of the currently attacked target.

If your character is not in war mode or it is not connected it will return 0.

Example:

if (WarTargetID <> Enemy) then
  attack(Enemy);