помагите добавить пару строчек
Posted: 16.04.2013 19:42
надо как бы чтоб он искал хилера если можно конечно
procedure CheckDead;
var
i, x, y : integer;
Go : array [0..13] of cardinal;
begin
if dead then
begin
x := GetX(self);
y := GetY(self);
if IsGump then
begin
GumpAutoCheckBox(10,211);
NumGumpButton(GetGumpsCount-1,0);
end;
if IsGump then
begin
CloseSimpleGump(GetGumpsCount-1);
end;
NewMoveXY(967,1609,True,0,True);
NewMoveXY(957,1616,True,0,True);
repeat
Step(0, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2578) and (GetY(self) = 601);
if PredictedDirection <> 0 then Step(0, true);
repeat
Step(6, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2575) and (GetY(self) = 601);
repeat
Step(0, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2575) and (GetY(self) = 593);
Go[0] := 0;
Go[1] := 0;
Go[2] := 0;
Go[3] := 0;
Go[4] := 0;
Go[5] := 6;
Go[6] := 6;
Go[7] := 4;
Go[8] := 4;
Go[9] := 4;
Go[10] := 4;
Go[11] := 4;
Go[12] := 2;
Go[13] := 2;
while dead do
begin
for i := 0 to 13 do
begin
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
if (PredictedDirection <> 0) and (i = 0) then Step(Go, true);
if (PredictedDirection <> 6) and (i = 5) then Step(Go, true);
if (PredictedDirection <> 4) and (i = 7) then Step(Go, true);
if (PredictedDirection <> 2) and (i = 12) then Step(Go, true);
Step(Go, true);
wait(1000);
end;
end;
end;
end;
procedure CheckDead;
var
i, x, y : integer;
Go : array [0..13] of cardinal;
begin
if dead then
begin
x := GetX(self);
y := GetY(self);
if IsGump then
begin
GumpAutoCheckBox(10,211);
NumGumpButton(GetGumpsCount-1,0);
end;
if IsGump then
begin
CloseSimpleGump(GetGumpsCount-1);
end;
NewMoveXY(967,1609,True,0,True);
NewMoveXY(957,1616,True,0,True);
repeat
Step(0, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2578) and (GetY(self) = 601);
if PredictedDirection <> 0 then Step(0, true);
repeat
Step(6, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2575) and (GetY(self) = 601);
repeat
Step(0, true);
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
until (GetX(self) = 2575) and (GetY(self) = 593);
Go[0] := 0;
Go[1] := 0;
Go[2] := 0;
Go[3] := 0;
Go[4] := 0;
Go[5] := 6;
Go[6] := 6;
Go[7] := 4;
Go[8] := 4;
Go[9] := 4;
Go[10] := 4;
Go[11] := 4;
Go[12] := 2;
Go[13] := 2;
while dead do
begin
for i := 0 to 13 do
begin
if GetGumpsCount > 0 then
begin
NumGumpButton(GetGumpsCount-1,1);
repeat
wait(1000);
until not dead;
NewMoveXY(x, y, True, 0, True);
exit;
end;
if (PredictedDirection <> 0) and (i = 0) then Step(Go, true);
if (PredictedDirection <> 6) and (i = 5) then Step(Go, true);
if (PredictedDirection <> 4) and (i = 7) then Step(Go, true);
if (PredictedDirection <> 2) and (i = 12) then Step(Go, true);
Step(Go, true);
wait(1000);
end;
end;
end;
end;