SRL Archive - First Scripts

[Help needed] SPS_WalkPath


sipfer2

2012-05-07 05:54:50

Hello guys,

I just started to try to make some Scripts for Simba.
Watched several tutorials and everything is fine. So i started to script a PowerMiner which was easy to do, but now i wanted to make a Bank function.
The banking it self is not hard but i really can't figure out how SRS_WalkPath is working. I tried it several times but it just do nothing only says "At Bank" after several minutes. I also tried to look through other scripts but even if i copy - paste their code to see where the fault is i fail.

Hopefully someone can explain to me how it works

This is the banking code:

Procedure WalktoBank;
var
myPath: TPointArray;
Areas: TStringArray;
begin
Areas := ['11_9','12_9','12_8','11_8'];
SPS_Setup(RUNESCAPE_SURFACE, Areas);
myPath := [Point(4567, 3143),Point(4567, 3139),Point(4559, 3131),Point(4551, 3119),Point(4547, 3103),Point(4539, 3095),Point(4531, 3079),Point(4519, 3063),Point(4515, 3063),Point(4515, 3043),Point(4515, 3023),Point(4519, 3015),Point(4519, 2999),Point(4519, 2995),Point(4523, 2967),Point(4523, 2951),Point(4539, 2939),Point(4559, 2935),Point(4567, 2931),Point(4575, 2927),Point(4571, 2915),Point(4571, 2907)];
SPS_WalkPath(myPath);
ClearReport;
ClearDebug;
writeln('At bank');
wait(2500);
end;

Sorry for my bad english

Google

2012-05-07 06:06:49

Procedure WalktoBank;
var
OutBank: TPointArray;
Begin
SPS_Setup(RUNESCAPE_SURFACE, ['11_9','12_9','12_8','11_8']);
OutBank := [Point(4567, 3143),Point(4567, 3139),Point(4559, 3131),Point(4551, 3119),Point(4547, 3103),Point(4539, 3095),Point(4531, 3079),Point(4519, 3063),Point(4515, 3063),Point(4515, 3043),Point(4515, 3023),Point(4519, 3015),Point(4519, 2999),Point(4519, 2995),Point(4523, 2967),Point(4523, 2951),Point(4539, 2939),Point(4559, 2935),Point(4567, 2931),Point(4575, 2927),Point(4571, 2915),Point(4571, 2907)];
SPS_WalkPath(OutBank);
ClearReport;
ClearDebug;
writeln('At bank');
wait(2500);
end;

Give that a go and if that does not work, sps is buggy in some areas becasue the world map isnt that reliable so for some areas you need to make a custom SPS map.

Joepetey

2012-05-07 06:56:21

If SPS does not work for you try learning DTM walking, in my opinion far easier and more accurate than SPS.

Getdropped

2012-05-07 07:26:08

From: GOOGLE
Procedure WalktoBank;
var
OutBank: TPointArray;
Begin
SPS_Setup(RUNESCAPE_SURFACE, ['11_9','12_9','12_8','11_8']);
OutBank := [Point(4567, 3143),Point(4567, 3139),Point(4559, 3131),Point(4551, 3119),Point(4547, 3103),Point(4539, 3095),Point(4531, 3079),Point(4519, 3063),Point(4515, 3063),Point(4515, 3043),Point(4515, 3023),Point(4519, 3015),Point(4519, 2999),Point(4519, 2995),Point(4523, 2967),Point(4523, 2951),Point(4539, 2939),Point(4559, 2935),Point(4567, 2931),Point(4575, 2927),Point(4571, 2915),Point(4571, 2907)];
SPS_WalkPath(OutBank);
ClearReport;
ClearDebug;
writeln('At bank');
wait(2500);
end;

Give that a go and if that does not work, sps is buggy in some areas becasue the world map isnt that reliable so for some areas you need to make a custom SPS map.



^ that should work…. for what ever reason in the last update they changed it so that it doesn't working with a variable for sps areas

Olly

2012-05-07 08:05:14

Where are you attempting to walk?

sipfer2

2012-05-07 09:21:07

Thanks for the fast response but the code you gave me neither work.(I think i might be too stupid to do this :P or just standing in one of those bugged areas)
I just searched for the DTM-Walking and it seems to be great. I'm going to try that. Thanks for the help guys.

For everyone who is interested in the tutorial for DTM-Walking:
http://villavu.com/forum/showthread.php?t=77691

Google

2012-05-07 09:23:12

From: sipfer2
Thanks for the fast response but the code you gave me neither work.(I think i might be too stupid to do this :P or just standing in one of those bugged areas)
I just searched for the DTM-Walking and it seems to be great. I'm going to try that. Thanks for the help guys.

For everyone who is interested in the tutorial for DTM-Walking:
http://villavu.com/forum/showthread.php?t=77691


Then its the area your trying to use SPS walking is most likely outdated it doesn't work in 70% places on the map ive found.