SRL Archive - OSR Help

Walking Path Problem


Joe

2012-03-11 19:26:30

I'm working on a script, and the walking path is not working… the character doesn't walk to the bank OR the trees.
If you want to test it start your guy in the falador east bank and you will get the "out of bounds" message…

My theory is that the runescape surface.png file is wrong, but my file wont work and I can't get a new one for some reason.

Procedure WalkToTrees; // Gets you to the trees from the bank
Var
myPath:TPointArray;

begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, [ '9_7' ]);
myPath:= [Point(265, 410), Point(266, 397), Point(250, 396), Point(223, 403)];
SPS_WalkPath(myPath) ;
end;

Procedure WalkToBank; // Gets you to the bank from the trees
Var
myPath:TPointArray;

begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, [ '9_7' ]);
myPath := [Point(225, 405), Point(239, 401), Point(254, 396), Point(267, 395), Point(267, 416)];
SPS_WalkPath(myPath);
end;

If you can fix it please post the solution. PLEASE.

~Joe

PatDuffy

2012-03-11 19:29:04

I can say from experience that those points are nowhere close to what the SPS points in Falador are.

How did you acquire them? They are not the correct points.

tehq

2012-03-11 19:31:38

^ This. A point in Falador would have coordinates such as (3917, 3214). Also, why are you setting up SRL in both paths?

Nebula

2012-03-11 22:20:22

joebot probably got the coordinates by opening 9_7 in paint.

Incarceron

2012-03-12 02:53:59

As pointed out above, the SPS Points are incorrect. For a detailed tutorial you can look at Mat's SPS Walking Guide here.

Joe

2012-03-12 09:49:33

Can somebody send me a map link? I've tried making them with "map maker tools" and stuff… Thats the only problem in my script

Thanks for all the suggestions and help

~Joe

EDIT: NEWS!!!
By some stroke of luck I found the SPS files in Simba… I used Wolygon's path creator and found all the points ETC.
NOW, when I try to run the script for testing I get an error saying:

[Error] (88:25): Closing square bracket (']') expected at line 87

Procedure WalkToTrees; // Gets you to the trees from the bank
Var
myPath:TPointArray;
t: integer;
begin
SPS_Setup(RUNESCAPE_SURFACE, [ '9_8' ]);
myPath:= [myPath:= [Point(3887, 3229), Point(3886, 3214), Point(3870, 3212), Point(3844, 3222)];
SPS_WalkPath(myPath) ;

repeat
if (WalkToBank) then
if (WalkToTrees) then
break;
until(getSystemTime > t);
end;

Procedure WalkToBank; // Gets you to the bank from the trees
var
myPath:TPointArray;
t: integer;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, [ '9_8' ]);
myPath := [myPath:= [Point(3844, 3222), Point(3861, 3213), Point(3884, 3211), Point(3887, 3230)];
SPS_WalkPath(myPath);

repeat
if (WalkToTrees) then
if (WalkToBank) then
break;
until(getSystemTime > t);
end;

What am I doing wrong???