Log in

View Full Version : Implement sps paths into script?



laakerules
01-26-2012, 11:16 PM
How do i do this? i tried doing the object DTM and that failed just as much.

lilcmp1
01-26-2012, 11:26 PM
Your going to need to look at this
http://villavu.com/forum/showthread.php?t=64891&highlight=walking

laakerules
01-26-2012, 11:31 PM
Ya thats what i need help with how do you implement it into the script!!!

lilcmp1
01-27-2012, 12:04 AM
There has to be a guide somewhere..
You need
{$i sps/sps.simba}
At the top first of all. Then in your script when you use it you will
SPS_Setup(RUNESCAPE_SURFACE,['1_1','1_2','etc']);
PATHNAME := [Point(1, 1), Point(391, 506), Point(etc, etc)];
SPS_WalkPath(PATHNAME);

laakerules
01-27-2012, 12:19 AM
Procedure tobank;
begin
SPS_Areas := ['10_6'];
myPath := [Point(4272, 2580), Point(4273, 2604), Point(4238, 2609), Point(4201, 2622), Point(4189, 2631), Point(4190, 2662)];
SPS_WalkPath(myPath);
end;


im getting error,

[Error] (145:4): Unknown identifier 'myPath' at line 144
Compiling failed.
I dont know why, do i have to call mypath as a variable inside the to bank procedure? This is my first time with paths.

lilcmp1
01-27-2012, 12:20 AM
Procedure tobank;
begin
SPS_Areas := ['10_6'];
myPath := [Point(4272, 2580), Point(4273, 2604), Point(4238, 2609), Point(4201, 2622), Point(4189, 2631), Point(4190, 2662)];
SPS_WalkPath(myPath);
end;


im getting error,

[Error] (145:4): Unknown identifier 'myPath' at line 144
Compiling failed.
I dont know why, do i have to call mypath as a variable inside the to bank procedure? This is my first time with paths.

Yes

Var
MyPath: TPointArray;

laakerules
01-27-2012, 12:23 AM
Okay thanks got it working now! :)

Caotom
01-27-2012, 09:52 AM
There has to be a guide somewhere..
You need
{$i sps/sps.simba}
At the top first of all. Then in your script when you use it you will
SPS_Setup(RUNESCAPE_SURFACE,['1_1','1_2','etc']);
PATHNAME := [Point(1, 1), Point(391, 506), Point(etc, etc)];
SPS_WalkPath(PATHNAME);

If you were wondering, the guide is actually in the beginners section:
http://villavu.com/forum/showthread.php?t=71461

~Caotom