Log in

View Full Version : Help with sps walking



boffysworld
01-08-2012, 06:20 PM
Ive followed the guides which seem easy, but still no luck.
Can u please show me where im going wrong.



program WalkAround;
{$i srl/srl.scar}
{$i sps/sps.simba}



Procedure Setupsps;
Begin
SPS_Setup(RUNESCAPE_SURFACE, ['9_8']);
SPS_Continue := True;
End;


Procedure WalkToBank;
var
BankWalk:TPointArray;
Begin
If not LoggedIn then Exit;
If not FindNormalRandoms then
Begin
Writeln('Walking to bank...');
BankWalk := [Point(3889, 3226), Point(3883, 3210),
Point(3863, 3214), Point(3857, 3238), Point(3862, 3270),Point(3862,3298),
Point(3863, 3324), Point(3860, 3346),Point(3861, 3371),Point(3863, 3397),
Point(3862, 3420), Point(3859, 3442),Point(3967, 3518)];
SPS_WalkPath(BankWalk);
End;
End;

begin
SetupSRL;
SetUpSps;
ActivateClient;
WalkToBank;
end.

Hero
01-08-2012, 06:50 PM
Ive followed the guides which seem easy, but still no luck.
Can u please show me where im going wrong.



program WalkAround;
{$i srl/srl.scar}
{$i sps/sps.simba}



Procedure Setupsps;
Begin
SPS_Setup(RUNESCAPE_SURFACE, ['9_8']);
SPS_Continue := True;
End;


Procedure WalkToBank;
var
BankWalk:TPointArray;
Begin
If not LoggedIn then Exit;
If not FindNormalRandoms then
Begin
Writeln('Walking to bank...');
BankWalk := [Point(3889, 3226), Point(3883, 3210),
Point(3863, 3214), Point(3857, 3238), Point(3862, 3270),Point(3862,3298),
Point(3863, 3324), Point(3860, 3346),Point(3861, 3371),Point(3863, 3397),
Point(3862, 3420), Point(3859, 3442),Point(3967, 3518)];
SPS_WalkPath(BankWalk);
End;
End;

begin
SetupSRL;
ActivateClient;
WalkToBank;
end.



procedure WalkToBank;
var
BankWalk : TPointArray;

begin
Writeln('Attempting to walk to the bank.');
SPS_Setup(RUNESCAPE_SURFACE, ['9_8']);
SPS_Continue := True;

BankWalk := [Point(3889, 3226), Point(3883, 3210), Point(3863, 3214),
Point(3857, 3238), Point(3862, 3270), Point(3862, 3298),
Point(3863, 3324), Point(3860, 3346), Point(3861, 3371),
Point(3863, 3397), Point(3862, 3420), Point(3859, 3442),
Point(3967, 3518)];

SPS_WalkPath(BankWalk);
FFlag(2);
Writeln('Did we make it?');
end;

begin
SetupSRL;
ActivateClient;
WalkToBank;
end.

Everything looks ok* Your points might be a bit close to each other though. If I recall isn't that Falador West? If so depending on where you are going SPS might be a bit buggy. The above is the format that I use so maybe you can try that. Otherwises my next guess would be Setupsps; Never had an issue with SPS sorry.

boffysworld
01-08-2012, 07:24 PM
Still no luck. But thank you for replying.
All that happens is the mouse cursor moves down to the inventory tab.
Then ends script.

Hero
01-08-2012, 08:06 PM
Try making a different path. If that doesn't work I will pull up a path and test it for you before passing it along.

Mat
01-08-2012, 10:06 PM
If you followed mine I said about the Areas if you looked about 3/4 way down you should be able to see a Map with red shapes What I do is Make my Path Copy it in to Simba, then add four extra points: Say you Points are close together like this x-x-x the extra points I add in a square shape are like this x------------x-----------------x which makes the path a whole lot larger and also give me more map sections, which I find helps the path walking and I never get a problem.
If you need more explanation Pm me :P
I'm not the best at explaining this (Sorry).
Mat

procedure WalkToBank;
var
BankWalk : TPointArray;

begin
Writeln('Attempting to walk to the bank.');
SPS_Setup(RUNESCAPE_SURFACE, ['8_8','9_8','10_7','10_8']);
SPS_Continue := True;

BankWalk := [Point(3889, 3226), Point(3883, 3210), Point(3863, 3214),
Point(3857, 3238), Point(3862, 3270), Point(3862, 3298),
Point(3863, 3324), Point(3860, 3346), Point(3861, 3371),
Point(3863, 3397), Point(3862, 3420), Point(3859, 3442),
Point(3967, 3518)];

SPS_WalkPath(BankWalk);
FFlag(2);
Writeln('Did we make it?');
end;

begin
SetupSRL;
ActivateClient;
WalkToBank;
end.

Try that. I uses a Procedure from the SRL Members post above :)

boffysworld
01-09-2012, 07:51 PM
I believe the problem may lie with the sps map location.
As ive tried the code in other locations, which do work.
grand exchange, varrock, draynor village etc all fine.
Not in fally east for some reason.
Strange.