SRL Archive - Help

Implement sps paths into script?


laakerules

2012-01-26 18:16:26

How do i do this? i tried doing the object DTM and that failed just as much.

lilcmp1

2012-01-26 18:26:32

Your going to need to look at this
http://villavu.com/forum/showthread.php?t=64891&highlight=walking

laakerules

2012-01-26 18:31:22

Ya thats what i need help with how do you implement it into the script!!!

lilcmp1

2012-01-26 19:04:01

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

2012-01-26 19:19:02

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

2012-01-26 19:20:12

From: laakerules
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

2012-01-26 19:23:28

Okay thanks got it working now! :)

Caotom

2012-01-27 04:52:44

From: lilcmp1
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