//***************************************************************
//ОЖИДАНИЕ КОНЕКТА
//***************************************************************
procedure WaitConnection;
begin
if Connected then exit;
while not Connected do wait(100);
wait(3000);
end; //***************************************************************
// РЕСЕНД
//***************************************************************
procedure Resend;
begin
Wait(1000);
UOSay(Chr(39)+'resend');
Wait(5000);
end;
//***************************************************************
//Enticement
//***************************************************************
Procedure Enticement;
begin
AddToSystemJournal('Запускаю макрос Enticement...');
WaitConnection;
Resend;
while GetSkillValue('Enticement') < 100.0 do
begin
WaitConnection;
If FindType($0124, ground) = 0 then UOSay('ПАК ЛАМА НА ПОЛУ НЕ НАЙДЕНА');
if targetPresent then canceltarget;
UseSkill('Enticement');
wait(500);
WaitTargetObject(FindType($0124, ground));
wait(500);
WaitTargetObject(self);
wait (2500);
end;
end;
BEGIN
WaitConnection;
Enticement;
wait(500);
END.