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 :/
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 :/
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
i did heres the code
Simba 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.
You cant have it setup two different areas it should be like this
Simba Code: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.![]()
^ this![]()
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
mh thanks for quick answer, ill test when im back from work Thanks
EDIT: Yep, that worked, thanks =)
Last edited by schnubbel15; 12-06-2012 at 12:04 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)