So This is my first script and I am trying to get my character to walk to the bank. the path is fine but once he gets to the final point and the bank is next to him the script keeps having him go north. I am curious where I am going wrong. Below is the code for the path to the bank and attached is the map I am using as I think the issue might be with the map and the script not recognizing where the player is at.
Simba Code:
procedure walkToBank;
var
pathToBank : TPointArray
begin
if (not isLoggedIn()) then
exit;
pathToBank := [Point(101, 301), Point(86, 280), Point(76, 253), Point(70, 224), Point(67, 189), Point(73, 165), Point(86, 147), Point(97, 119), Point(95, 92), Point(90, 67), Point(80, 50), Point(69, 45), Point(52, 48)];
if SPS.walkPath(pathToBank) then
minimap.waitPlayerMoving()
else
begin
writeLn('Failed to walk to bank.');
terminatescript;
end;
end;
fishmap.png