Hi,
I use SPS_Walk for walking, it is almost accurate but does not get you to the exact tile. So I added a procedure which will click on the Main Screen to get to the exact tile. I was wondering if the clicking on the Main Screen for walking is safe enough or will it get banned. Here is my code:
Simba Code:
Procedure walkToExactTile(originalPos: TPoint);
var
currentPos: TPoint;
east, west, north, south: Array of Integer;
dx, dy : Integer;
begin
east := [20, 10]; //first integer: distance from MSCX, second: Random
west := [20, 10];
north := [10, 10];
south := [40, 10];
SPS_Setup(RUNESCAPE_SURFACE, ['4_12']); //Could be any location
if SPS_WalkToPos(originalPos) then
writeln('SPS walk successful.')
else
begin
writeln('SPS walk failed');
exit;
end;
wait(1000);
currentPos := SPS_GetMyPos;
if currentpos=originalPos then
exit;
dx := currentPos.x-originalPos.x;
dy := currentPos.y-originalPos.y;
if dx<0 then
begin
writeln('Move east 1 tile');
Mouse(MSCX+east[0]+random(east[1]), MSCY, 0, 5, mouse_Right);
ChooseOption('alk here');
end
else if dx>0 then
begin
writeln('Move west 1 tile');
Mouse(MSCX-(west[0]+random(west[1])), MSCY, 0, 5, mouse_Right);
ChooseOption('alk here');
end;
wait(3000);
if dy>0 then
begin
writeln('Move north 1 tile');
Mouse(MSCX, MSCY-(north[0]+random(north[1])), 5, 0, mouse_Right);
ChooseOption('alk here');
end
else if dy<0 then
begin
writeln('Move south 1 tile');
Mouse(MSCX, MSCY+(south[0]+random(south[1])), 5, 0, mouse_Right);
ChooseOption('alk here');
end;
end;