SRL Archive - OSR Help

Sps dtm walking


mafia miles

2013-04-03 01:54:12

How Do I walk? Ive tried a lot of different things. SPS, DTMs etc.
How can i fix this code?
Debug is this:
[/[Error] C:\Simba\Scripts\Testsps.simba(57:4): Unknown identifier 'SPS_Setup' at line 56
Compiling failed.]
[CODE]begin
SPS_Setup(runescape_surface07,['3_10', '4_10']);//SPS Areas
myPath := [Point(1589, 4369), Point(1590, 4341), Point(1625, 4336), Point(1653, 4316), Point(1648, 4280), Point(1648, 4273)];
SPS_WalkPath(myPath);
end.


SPS is updated.
And my path generator is in the same folder as 07map. Is it not calling the map correctly? how can i get it to call correctly?

Element17

2013-04-03 01:59:25

Where is the error? I can't see it. Also where is your DTM?

mafia miles

2013-04-03 02:00:57

No dtm wrong title sorry.
[Error] C:\Simba\Includes\sps/sps.simba(446:35): Invalid number of parameters at line 445
Compiling failed.

I get this in a seperate tab:
function SPS_PosOnMM(Pt: TPoint): Boolean;
var
p: TPoint;
begin
p := SPS_PosToMM(Pt);
//HIGHLIGHTED Result := rs_OnMinimap(p.x, p.y); //Highlighted
end;

Sjoe

2013-04-03 03:29:28


procedure WalkToFurnace;
var
PointWalkTime:TPointArray; // not an integer;
begin
SPS_Setup(RUNESCAPE_SURFACE07,['12_9']); // call this once in your mainloop (unless u have multiple paths
myPath := [Point(104, 424), Point(124, 407), Point(134, 387),
Point(144, 375), Point(152, 357), Point(153, 348), Point(129, 349)];
SPS_WalkPath(MyPath);
end;

As of your compiling error, update to the latest SPS or try Result := rs_OnMinimap(Point(x, y));

mafia miles

2013-04-03 03:59:10

forced upodate sps
do i have to make a custom map?
Result := rs_OnMinimap(Point(x, y));
do i change the x y into points?

mafia miles

2013-04-05 01:17:56

Need help updated the original post to my current problem.

Sjoe

2013-04-05 01:22:04

From: mafia miles
Need help updated the original post to my current problem.


Include SPS (or SPS-osr, don't know what you're using) on top of the script.

mafia miles

2013-04-05 01:31:12

OMG it works! Thanks a million :)