Log in

View Full Version : SPS Walking



blother
05-27-2012, 12:23 AM
I don't think I am doing it right. Using SPS 2.


Procedure Walking;
var
myPath: TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['10_8'])
myPath := [Point(207, 483), Point(231, 457), Point(253, 436), Point(251, 401), Point(254, 355), Point(267, 322), Point(276, 288), Point(301, 264), Point(324, 236), Point(347, 218), Point(369, 201), Point(395, 188)];
SPS_WalkPath(myPath);
end;

I get this error:

SPS_GetArea ERROR: Exception: Error while reading stream: Unable to open file "C:\Simba\Includes\SPS\img\runescape_surface\10_8.p ng"

I am looking at the file the path indicates, so what could be the problem?

I guess this should be in scripting help. Move if it would be better please :)

NKN
05-27-2012, 12:52 AM
10_8 isn't a file?

Try re installing SPS, and checking you're using the correct map.

blother
05-27-2012, 04:03 PM
I got the walking to work and I was wondering how to use this to do something while I am walking:


SRL_Procs[SRL_Antiban] := @antiban;

I don't really understand what i need to put in the brackets or after the ":="

Also, I was wondering if I could use this as a check to locate if I am in a certain area, and to stop the walking if I have reached the area. That might sound like a dumb need, but SPS hasn't been completely reliable.

putonajonny
05-27-2012, 04:16 PM
I have a function that does exactly what you want but I can't get at it on my phone, if a member sees this they can go to my EnlightenedLawRunner and paste SPS_WalkPathEx out of it

blother
05-27-2012, 05:00 PM
I have a function that does exactly what you want but I can't get at it on my phone, if a member sees this they can go to my EnlightenedLawRunner and paste SPS_WalkPathEx out of it

Thanks I appreciate that. What I am trying to do is make a fix for the draynor walking. I want to see if using a DTM or DDTM to check for the mine would be able to stop the path walking, so it won't go into the cow pen.

This is somewhat unrelated, but I was wondering what peoples' thoughts are on looking at other scripts to learn from. I feel if I look at other mining scripts to get ideas for mine I would be stealing their work. Maybe it is because I don't have enough knowledge to take their ideas and change them to make it better. So far, I have been trying to use tutorials and come up with my own methods of writing scripts. The conflict is that I feel limited by this way of learning and the only way to change that is to do what I don't think I should do, if that makes sense lol. Can some people spread some light on how to go about this?

blother
05-28-2012, 07:23 PM
Bump. Anyone got anything?

RuneDragon
05-29-2012, 12:29 AM
You can use others functions with credit to them.

Mat
05-29-2012, 03:41 PM
From the looks of it your using path maker from the map image 10_8 you need to use the whole rs map not just one of the small once.

blother
05-29-2012, 11:02 PM
From the looks of it your using path maker from the map image 10_8 you need to use the whole rs map not just one of the small once.

I already got that part too work. Should I just start trying to use ODTM walking or radial walking?