Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Ходьба в хайде?

тут можно задать вопрос по скриптингу
Post Reply
Koldunchik
Neophyte
Neophyte
Posts: 23
Joined: 22.08.2009 12:45

Ходьба в хайде?

Post by Koldunchik »

возможно или миф?
я зделал в макросе на ламб после ресания ходьбу к хилеру, после того как ресается бежит обратно на макрос. но хотелось бы за 2а екрана до дома прописать проход к дому в стелсе...

наподобие Program Stealth;

Code: Select all

Begin 
SetArStatus(true); 
while true do begin 
while Hidden do begin 
UseSkill ('Stealth'); 
Wait(550); 
end; 
UseSkill('Hiding'); 
Wait(3200); 
end; 
End.
WladL
Apprentice
Apprentice
Posts: 240
Joined: 27.07.2009 17:21
Location: DRW
Contact:

Post by WladL »

А эта чем не угодила? > Program MoveInHide;
"Как хочешь ты трудись;
Но приобресть не льстись
Ни благодарности, ни славы,
Коль нет в твоих трудах ни пользы, ни забавы. (с) С.Крылов."
Koldunchik
Neophyte
Neophyte
Posts: 23
Joined: 22.08.2009 12:45

Post by Koldunchik »

Code: Select all

Procedure hidetohouse; 
Begin 
UseSkill('Hiding'); 
Wait(3200); 
   while Hidden do begin 
   UseSkill ('Stealth'); 
   Wait(3200);
       if (inJournal('Вы можете пройти') <> -1) then
           begin
           if (GetX(self) <> 848) and (GetY(Self) <> 2194) then begin
           GotoXY(856, 2194, true, 0);
           end;
           if (GetX(self) <> 856) and (GetY(Self) <> 2194) then begin
           GotoXY(872, 2194, true, 0);
           end;
           if (GetX(self) <> 872) and (GetY(Self) <> 2194) then begin
           GotoXY(878, 2194, true, 0);
           end;
           if (GetX(self) <> 878) and (GetY(Self) <> 2194) then begin
           GotoXY(878, 2192, true, 0);
           end;
           if (GetX(self) <> 878) and (GetY(Self) <> 2192) then begin
           GotoXY(878, 2184, true, 0);
           end;
           ClearJournal;
       end; 
   end;
end;
end;
Кручу верчу настроить немогу)))
Koldunchik
Neophyte
Neophyte
Posts: 23
Joined: 22.08.2009 12:45

Post by Koldunchik »

WladL wrote:А эта чем не угодила? > Program MoveInHide;
Ну ето отделяная ходилка.... а мне нужен маленький кусочек наподобии что выше написал.... Так как моя ходилка меня устраивает...
Koldunchik
Neophyte
Neophyte
Posts: 23
Joined: 22.08.2009 12:45

Post by Koldunchik »

Помогите....
вроде настроил... в макре идет ресается... после ресания

Code: Select all

Procedure Res1; 
Begin 
   SetArStatus(true); 
   while true do 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;
   UseSkill('Hiding'); 
   Wait(3200);
end;
end;
Но немогу вернуть обратно в цикл макрос

Code: Select all

procedure CheckGhost; // Ничего менять бльше не надо 
var 
  counter: integer; 
begin 
  If IsDead(self) then 
  begin 
    counter := 100; 
    UOSay(Chr(39)+'asay Дровасек убит. Ресните кто-нибудь пожалуйста. ('+IntToStr(CenterPoint.x)+' '+IntToStr(CenterPoint.y)+'), '+MineName); 
    while isDead(self) do 
    begin 
      wait(3000);
      GotoXY(786, 2221, true, 0);  
      PlayWav('C:\WINDOWS\Media\tada.wav'); 
      counter := counter - 1; 
      AddToSystemJournal(IntToStr(counter)); 
    end; 
    GotoXY(838, 2227, true, 0);
    GotoXY(838, 2194, true, 0);
    GotoXY(848, 2194, true, 0);
    Res1;
    addtosystemjournal('Реснулись...2');
  end; 
end; 
WladL
Apprentice
Apprentice
Posts: 240
Joined: 27.07.2009 17:21
Location: DRW
Contact:

Post by WladL »

Code: Select all

while true do begin
вот из-за этого
"Как хочешь ты трудись;
Но приобресть не льстись
Ни благодарности, ни славы,
Коль нет в твоих трудах ни пользы, ни забавы. (с) С.Крылов."
Post Reply