Toby1
2012-07-07 05:07:00
This script walks to different tiles around you (which you choose) just get the middle of your tiles coordinates (where your feet are, does not need to be completely exact) and put them in absX, absY variables :)
Example:
Choose where you wanna walk in mainloop as you can see :)
Example:
program WalkToPoint;
const
absX = 228;
absY = 204;
var
X, Y: Integer;
p, c: Integer;
procedure Mouse;
begin
MoveMouse(c, p);
GetMousePos(c, p);
ClickMouse(c, p, mouse_left);
end;
procedure WalkBack;
begin
c := (absX);
p := (absY - 37);
Mouse;
end;
procedure WalkForward;
begin
c := (absX);
p := (absY + 43);
Mouse;
end;
procedure WalkRight;
begin
c := (absX + 37);
p := (absY);
Mouse;
end;
procedure WalkLeft;
begin
c := (absX - 37);
p := (absY);
Mouse;
end;
begin
WalkRight;
Wait(3000);
WalkLeft;
Wait(3000);
WalkForward;
Wait(5000);
end.
Choose where you wanna walk in mainloop as you can see :)