Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetMana

Returns the current mana of the mobile with ObjID.

Возвращает текущую ману мобайла с ObjID.

Pascal

function GetMana(ObjID: Cardinal): Integer;

Parameters:

  • ObjID — ID of the mobile.

Python

def GetMana(ObjID: int) -> int: ...

Pascal Example

begin
  while GetMana(Self) < 50 do
  begin
    UseSkill('Meditation');
    Wait(5000);
  end;
end.

Python Example

while GetMana(Self()) < 50:
    UseSkill('Meditation')
    Wait(5000)

See Also

GetMaxMana, GetHP, RequestStats