Originally Posted by
Zorgatone
I'll try that.. What I did was SPS_Setup(RUNESCAPE_SURFACE, ['1_2', '1_3', '1_4']) and so on..
Right, but if you're changing surfaces (i.e. to a dungeon map or custom map) you have to make sure you're done with the walking on the previous surface first. So, to expand on what Olly said:
Simba Code:
// this is how you have to do it - Call SPS_Setup, walk, then call SPS_Setup again to switch surfaces
function walk_Underground: boolean;
begin
SPS_Setup(RUNESCAPE_OTHER, ['underground_map']); {*}
p := [point(100,100), point(500, 500), point(1000,100)];
Result := SPS_WalkPath(p);
end;
function walk_Aboveground: boolean;
begin
SPS_Setup(RUNESCAPE_OTHER, ['groundlevel_map']); {*}
p := [point(100,100), point(500, 500), point(1000,100)];
Result := SPS_WalkPath(p);
end;
// you can't do this (it will load 11_8, then override it with dwarven_mine)
procedure loadSPSMaps();
begin
SPS_Setup(RUNESCAPE_SURFACE, ['11_8']);
SPS_Setup(RUNESCAPE_OTHER, ['dwarven_mine']);
end;