Hi everyone
i was making a script (that i'm also intending to post publicly when it's all finished), but i have some trouble with SPS. Sometimes it kinda works but a lot of the time it litterally walks far away, or it only moves a little and not to the destination. I also need the path to be precise, so it doesn't "missclick" the wrong side of the wall (where the anvil and tanner is), because that looks weird. Anyway here is the procedure:
Simba Code:
procedure walkToMine();
var
pathToMine: TPointArray;
begin
if not isLoggedIn() then
exit;
pathToMine := [[198, 39], [196, 66], [171, 72], [135, 77], [134, 113], [133, 141], [131, 177], [129, 203], [154, 237], [167, 271], [189, 276], [184, 305]];
if SPS.walkPath(pathToMine) then
minimap.waitPlayerMoving()
else begin
writeLn('We failed to walk to the Mine');
writeLn('Terminating script and logging out...');
TPlayer.logout();
terminateScript();
end
end;
It should start in the bank and walk to the varrock east mine. I also need one to go back to the bank, but i really think something is wrong, i'll include a screenshot of the SPS toolbox and my map:VarrockClay.pngSPS Toolbox.PNG
Any suggestions/advice?