BandageSelf
Attempts to use bandages on the current character. The method searches for bandages (type $0E21) in the character’s backpack and, if found, uses them with the target set to Self.
If no bandages are found, the method logs an error message to the system journal: "BandageSelf error: Bandages not found.".
Note: Works only with client version 5.0.4 or later.
Пытается использовать бинты на текущем персонаже. Метод ищет бинты (тип $0E21) в рюкзаке персонажа и, если находит, использует их с целью на самого себя.
Если бинты не найдены, метод записывает сообщение об ошибке в системный журнал: "BandageSelf error: Bandages not found.".
Примечание: Работает только с версией клиента 5.0.4 и выше.
procedure BandageSelf;
def BandageSelf() -> None: ...
begin
while not Dead do
begin
if HP < MaxHP div 2 then
BandageSelf;
Wait(1000);
end;
end.
while not Dead():
if HP() < MaxHP() // 2:
BandageSelf()
Wait(1000)