SRL Archive - OSR Help

SRS Walking


schnubbel15

2012-12-05 15:48:11

is there any trick to know how to use 2 walking Path's in 1 script? it wont let me use 2 of them… i tried both withouth the other and it worked :/

The Killer

2012-12-05 16:25:19

From: schnubbel15
is there any trick to know how to use 2 walking Path's in 1 script? it wont let me use 2 of them… i tried both withouth the other and it worked :/


sorry wut? what are you using? sps?

schnubbel15

2012-12-05 16:27:16

im using SPS walk yes. and i have 1 path to walk to a certain point and 1 path to walk to the bank. nut only 1 is useable at a time

The Killer

2012-12-05 16:28:53

From: schnubbel15
im using SPS walk yes. and i have 1 path to walk to a certain point and 1 path to walk to the bank. nut only 1 is useable at a time


name one path
Pathbank
and the other
PathWhateveryouwant

schnubbel15

2012-12-05 16:29:53

i did heres the code


function WalkToGate:Boolean;
var
PathToGate:TPointArray;
begin
WriteLn('Walking to Gate...');
SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_8']);
PathToGate :=[Point(4378, 3358), Point(4379, 3352), Point(4378, 3347), Point(4378, 3341), Point(4378, 3335), Point(4378, 3332), Point(4378, 3328), Point(4378, 3325), Point(4378, 3321), Point(4378, 3315), Point(4376, 3314), Point(4374, 3309), Point(4374, 3305), Point(4373, 3301), Point(4374, 3289), Point(4373, 3286), Point(4372, 3283), Point(4370, 3282), Point(4372, 3279), Point(4372, 3275), Point(4372, 3272)];
SPS_WalkPath(PathToGate);
Result:= True;
end;

function WalkToBank:Boolean;
var
PathToBank:TPointArray;
begin
WriteLn('Walking to Bank...');
SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_7','11_8']);
PathToBank := [Point(4372, 3262), Point(4358, 3262), Point(4337, 3260), Point(4300, 3244)];
SPS_WalkPath(PathToBank);
Result:= True;
end;

begin
SetupSRL;
WalkToGate;
WalkToBank;
end.

King

2012-12-05 19:42:49

You cant have it setup two different areas it should be like this

function WalkToGate:Boolean;
var
PathToGate:TPointArray;
begin
WriteLn('Walking to Gate...');
SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_8','11_7']); // Include all the SPS areas in only one SPS_Setup function, Simba was giving me this problem the other day.

PathToGate :=[Point(4378, 3358),
Point(4379, 3352), Point(4378, 3347),
Point(4378, 3341), Point(4378, 3335),
Point(4378, 3332), Point(4378, 3328),
Point(4378, 3325), Point(4378, 3321),
Point(4378, 3315), Point(4376, 3314),
Point(4374, 3309), Point(4374, 3305),
Point(4373, 3301), Point(4374, 3289),
Point(4373, 3286), Point(4372, 3283),
Point(4370, 3282), Point(4372, 3279),
Point(4372, 3275), Point(4372, 3272)];
SPS_WalkPath(PathToGate);
Result:= True;
end;

function WalkToBank:Boolean;
var
PathToBank:TPointArray;begin
WriteLn('Walking to Bank...');
PathToBank := [Point(4372, 3262),
Point(4358, 3262),
Point(4337, 3260),
Point(4300, 3244)];
SPS_WalkPath(PathToBank);
Result:= True;
end;
begin
SetupSRL;
WalkToGate;
WalkToBank;
end.

Call all the area's in a single setup procedure, simba gave me this problem the other day. :spot:

DannyRS

2012-12-05 19:44:45

^ this :)

schnubbel15

2012-12-06 03:15:10

mh thanks for quick answer, ill test when im back from work Thanks:)

EDIT: Yep, that worked, thanks =)

King

2012-12-07 19:31:23

From: schnubbel15
mh thanks for quick answer, ill test when im back from work Thanks:)

EDIT: Yep, that worked, thanks =)


Np :D