Code: Select all
Procedure Res1;
Begin
while Hidden do begin
UseSkill ('Stealth');
Wait(3200);
if (inJournal('Вы можете пройти') <> -1) then begin
addtosystemjournal('Тест');
if (GetX(self) = 848) and (GetY(Self) = 2194) then begin
ClearJournal;
addtosystemjournal('точка 1');
GotoXY(856, 2194, true, 0);
Res1;
end;
if (GetX(self) = 856) and (GetY(Self) = 2194) then begin
ClearJournal;
addtosystemjournal('точка 2');
GotoXY(864, 2194, true, 0);
Res1;
end;
if (GetX(self) = 864) and (GetY(Self) = 2194) then begin
ClearJournal;
addtosystemjournal('точка 3');
GotoXY(872, 2194, true, 0);
Res1;
end;
if (GetX(self) = 872) and (GetY(Self) = 2194) then begin
ClearJournal;
addtosystemjournal('точка 4');
GotoXY(878, 2192, true, 0);
Res1;
end;
if (GetX(self) = 878) and (GetY(Self) = 2192) then begin
ClearJournal;
addtosystemjournal('точка 5');
GotoXY(878, 2184, true, 0);
end;
end;
addtosystemjournal('Реснулись');
end;
repeat
UseSkill('Hiding');
Wait(3200);
until inJournal('Теперь окружающие' <> -1);
ClearJournal;
end;
end;

until inJournal('Теперь окружающие' <> -1);