laakerules
04-14-2012, 05:05 PM
procedure Walker(Path: TPointArray);
var
I, H, T, D: integer;
P, MM, A, B: TPoint;
begin
H := High(Path);
begin
P := SPS_GetMyPos;
for I := H downto 0 do
begin
A := Sps_GetMyPos;
MM.X := MMCX + Path[I].X - P.X;
MM.Y := MMCY + Path[I].Y - P.Y;
D := Distance(MM.X, MM.Y, MMCX, MMCY);
if (D < 10) then
break
else
if (D < 70) then
begin
if (SPS_MultiMouse) then
MultiMouse(MM.X, MM.Y, 25, 3, false)
else
Mouse(MM.X, MM.Y, 1, 1, mouse_Left);
FFlag(Integer(I <> H) * 15);
repeat
Wait(50);
until Not isMoving;
B := Sps_GetMyPos;
if (Distance(A.X, A.Y, B.X, B.Y) < 6) then Exit;
If InFight or BlueDead then Exit;
Break;
end;
end;
end;
end;
Wont move or do anything.
var
I, H, T, D: integer;
P, MM, A, B: TPoint;
begin
H := High(Path);
begin
P := SPS_GetMyPos;
for I := H downto 0 do
begin
A := Sps_GetMyPos;
MM.X := MMCX + Path[I].X - P.X;
MM.Y := MMCY + Path[I].Y - P.Y;
D := Distance(MM.X, MM.Y, MMCX, MMCY);
if (D < 10) then
break
else
if (D < 70) then
begin
if (SPS_MultiMouse) then
MultiMouse(MM.X, MM.Y, 25, 3, false)
else
Mouse(MM.X, MM.Y, 1, 1, mouse_Left);
FFlag(Integer(I <> H) * 15);
repeat
Wait(50);
until Not isMoving;
B := Sps_GetMyPos;
if (Distance(A.X, A.Y, B.X, B.Y) < 6) then Exit;
If InFight or BlueDead then Exit;
Break;
end;
end;
end;
end;
Wont move or do anything.