Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Поиск моба
Поиск моба
Стеалф показал, что серпент имеет такой тип
SeaSerpent = $0096;
FindType(SeaSerpent,ground);
if FindCount > 0 then killSerp(finditem);
Вылавливаю змею, но блок иф не выполняется.
Как это можно исправить?
SeaSerpent = $0096;
FindType(SeaSerpent,ground);
if FindCount > 0 then killSerp(finditem);
Вылавливаю змею, но блок иф не выполняется.
Как это можно исправить?
Code: Select all
procedure ХХХ;
Var
mob: Cardinal;
begin
FindDistance := 5;
FindVertical := 40;
if FindType($0096, ground) > 0 then
begin
AddToSystemJournal('Обнаружен: '+GetName(finditem));
SetGlobal('stealth', 'mobname', 'SeaSerpent');
mob := SeaSerpent;
if GetName(mob) = 'SeaSerpent' then
begin
Attack(mob);
end;
end;end;