Ok, just because i am not 100% fluent at following someones post/tutorial(?) doesn't really mean i should deserve blank answers, i mean i am trying to learn here, come on guys. I will try and abbreviate my question a bit better for you.
With a script i am working on, all the walkpaths work fine everytime, i tested it over and over, on both maps. As soon as it comes to using 2 maps, it wont walk either paths.
In the main "begin end." after setupSRL(); i have the following procedure calls:
load_DTMs();
load_SPSPaths();
the load_SPSPaths() procedure:
Simba Code:
procedure load_SPSPaths();
begin
pathToTree:= [Point(70, 138), Point(122, 157), Point(167, 153)];
pathToRock:= [Point(167, 153), Point(122, 157), Point(70, 138)];
pathToBird:= [Point(322, 358), Point(334, 349)];
pathToBlock:= [Point(322, 358), Point(342, 367), Point(363, 369)];
pathToBoat:= [Point(182, 141), Point(119, 160), Point(96, 148)];
pathToPerson:= [Point(184, 143), Point(143, 157), Point(103, 153), Point(65, 149)];
pathToTest:= [Point(413, 343), Point(392, 355), Point(374, 367), Point(349, 368), Point(324, 359)];
SPSAnyAngle := true;
path1.setup('crash_map1', RUNESCAPE_OTHER);
path2.setup('crash_map2', RUNESCAPE_OTHER);
end;
My scrips main "Variables" for walking:
Simba Code:
path1, path2: TSPSArea;
pathToTree, pathToRock, pathToBird, pathToBlock, pathToBoat, pathToPerson, pathtoTest: TPointArray;
My walking procedure for walking to one of the above:
Simba Code:
procedure walkToRock();
begin
sps.walkPath(pathToRock);
//some other stuff here...
end;
Now, when i use the above, it will not walk to any of my paths, it just skips that step(haven't added failsafes yet!), but when i get rid of the path1, path2: TSPSArea variables and blank out one of these paths lets say //path1 and rename the other path to SPS.setup('crash_map2', RUNESCAPE_OTHER); it walks all those paths that use path2 fine.
I can't seem to get it to work when i add both walkpaths.
I assumed this was because its trying to use RUNESCAPE_OTHER twice for 2 maps? Which is why i asked how you would do it for the same SURFACE? I believe the script would work fine if i stuck one of the maps into RUNESCAPE_SURFACE, but i really don't want it in their as it is not the appropriate area so could you give some feedback on a way for this to work, and maybe a response as to what i did wrong?.