SRL Archive - OSR Help

[Q] SPS Walking problem


msemtex

2013-08-07 04:55:12

Hi, I'am creating an al karid tanner for RS07.
The walk to tanner code used to work and now it does not. The code has not been changed at all.


Procedure walkToTanner;
var
MyPath:TPointArray;
begin
Writeln('Walking to tanner');
SPS_Setup(RUNESCAPE_SURFACE, ['12_10','12_9']);
myPath := [Point(4907, 4020), Point(4907, 4020), Point(4907, 4027), Point(4907, 4027), Point(4913, 4026), Point(4913, 4026), Point(4918, 4026), Point(4927, 4026), Point(4927, 4026), Point(4927, 4022), Point(4928, 4014), Point(4928, 4010), Point(4931, 4003), Point(4933, 3999), Point(4942, 3983), Point(4945, 3974), Point(4948, 3971), Point(4951, 3967), Point(4953, 3955), Point(4953, 3950), Point(4952, 3948), Point(4951, 3940), Point(4951, 3929), Point(4943, 3929), Point(4942, 3928), Point(4935, 3927), Point(4927, 3927), Point(4917, 3926), Point(4917, 3926)];
SPS_WalkPath(myPath);
//TanHides;
end;

Thanks for the help

Sjoe

2013-08-07 06:22:07

What's the error?

msemtex

2013-08-07 06:55:06

The problem is that once the bank is accessed, the "walktotanner" function is called and the character does not walk anywhere. So it is stuck in a banking loop. The "Walk to tanner" line is outputted to the debug but the character doesn't move.

Hoodz

2013-08-07 08:27:13

Never used sps.. But i suggest you to use reflection

loragnor

2013-08-07 11:32:13

From: msemtex
The problem is that once the bank is accessed, the "walktotanner" function is called and the character does not walk anywhere. So it is stuck in a banking loop. The "Walk to tanner" line is outputted to the debug but the character doesn't move.


Make sure the MMCX and MMCY in globals.simba are correct for your minimap. You may need to change several of those coords to correspond with your current layout.

msemtex

2013-08-08 05:02:28

Loragnor, will take a look at that. Hoodz, isn't reflection very risky to use?