Help me)
Posted: 30.10.2009 16:38
Собственно хотел узнать чего не происходит завершение процедуры?)
Фраза неоднократно вылетает, а процедура все ровно остается в цикле!!
Code: Select all
const
Msg1 = 'Annoy someone else!';
var
tmptime : TDateTime;
Procedure Bolt;
Begin
repeat
if (Life < MaxLife) then UOSay('GUARDS');
if WarMode then SetWarMode(false);
if targetpresent then CancelTarget;
FindDistance := 1;
tmptime := Now;
if FindType($0190, ground) > 0 then
begin
UseSkill('Begging');
wait(500);
WaitTargetObject(FindType($0190, ground));
end;
if FindType($0191, ground) > 0 then
begin
UseSkill('Begging');
wait(500);
WaitTargetObject(FindType($0191, ground));
end;
until InJournalBetweenTimes(Msg1, tmptime, Now)<>-1;
End;