After a quick observation, there can be a couple problems occurring here. For starters, you do not have AeroLib included at the top of your script. For example:
Simba Code:
program scriptName;
{$DEFINE SMART} //You have this
{$DEFINE WALKER} //You're missing this
{$i AeroLib/AeroLib.Simba} //You're missing this
Since you are declaring the RS3 versions of SPS, you are not going to be able to walk in OSR. As well, you will need to create a TRSWalker object. This can be created under your variable definitions as such:
Finally, you are not initializing SPS for Aerolib, therefore you would want to use SPS.init(...) rather than SPS.setup(...). Also, you will want to initialize the Aerolib include by calling initAL;
It appears that the Walk procedure should work if you are able to piece it together properly. Your new script should look like this:
Simba Code:
program new;
{$DEFINE SMART} //You have this
{$DEFINE WALKER} //You're missing this
{$i AeroLib/AeroLib.Simba} //You're missing this
var
Walker:TRSWalker;
procedure walk();
var
path: TPointArray;
begin
path := [[4822, 2763], [4824, 2735], [4851, 2738], [4856, 2774], [4848, 2805],
[4838, 2847], [4820, 2861], [4820, 2845]];
if not Walker.walkPath(path) then
begin
writeLn('walkPath() failed, trying blindWalk()');
Walker.blindWalk(path[high(path)]);
end;
end;
begin
initAL;
Walker.init('WorldMap');
walk();
end.
Give it a shot and let me know how it turns out.