SRL Archive - OSR Help

Sps not walking path?


Itankbots

2012-08-22 18:35:37

I can't figure out why sps isn't walking the path, it worked once but now it doesn't work. Does not even try to walk the path. I've re made the path several times but it still doesn't work.

program TinderboxPro;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
var
teleport:integer;
x,y:Integer;
myPath:TPointArray;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Pin := '';
BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;
end;
procedure SetDtm;
begin;
teleport := DTMFromString('mbQAAAHicY2VgYLBlYmBwBmIzILaCssUYGRj4gVgUiGWgWE/DgMHd3pghK/IAQ2zgUob86dcZsAFGLBgMAN03B7E=');
end;
procedure FreeeDtm;
begin;
FreeDTM(teleport);
end;

procedure ToBank;
begin;
FTab(tab_Magic);
if FindDTM(teleport, x, y, MIX1, MIY1, MIX2, MIY2) then;
Mouse(x, y, 4, 4, False);
ChooseOption('revious-des');
wait(18000+random(200));
begin;
SPS_WalkPath(myPath);
Writeln('Walking to bank');
begin
OpenBankFast('clt');
wait(900+random(200));
if PinScreen then
InPin(Players[CurrentPlayer].Pin);
if BankScreen then
DepositAll;
end;
end;
end;


begin;
SRL_SixHourFix := True;
SMART_FixSpeed := True;
SetupSRL;
DeclarePlayers;
LoginPlayer;
SPS_Setup(RUNESCAPE_SURFACE,['6_6','6_7','7_7','7_6']);
myPath := [Point(2566, 2723), Point(2574, 2725), Point(2579, 2720), Point(2586, 2719), Point(2597, 2719), Point(2609, 2715), Point(2619, 2716), Point(2627, 2716), Point(2635, 2717), Point(2646, 2714), Point(2661, 2713), Point(2674, 2713), Point(2693, 2710), Point(2706, 2711), Point(2719, 2712), Point(2726, 2712), Point(2734, 2710), Point(2740, 2709), Point(2738, 2691), Point(2740, 2680)];
SetDtm;
Repeat
ToBank;
until(Not (LoggedIn));
FreeeDtm;
end.

This is my first time using a full sps path so any help would be much appreciated :)

(s)okkr7

2012-08-22 20:40:55

do something like…

Procedure yadayada;
begin
Walkthis:= [points go here] -----
SPS_WalkPath(Walkthis) //(you can also substitute walkline for walkpath)
If Not(SPS_WalkPath(Walkthis)) then
begin
FindnomalRandoms;
yadayada;
end;
end;


Itankbots

2012-08-23 01:45:40

Still Doesnt walk the path…maybe sps hates seers village..

(s)okkr7

2012-08-23 01:49:54

Yeah I'm having problems with it too, but I think custom maps are working (at least from what i've heard)

VastlySuperior

2012-08-23 01:58:40

There is nothing wrong with the way you call your walking. So the problem is not there. That only leaves the map that is outdated. You will have to create a custom map for the area you want to walk. Look at the tutorials by google or JJ, they will show you how to create the custom maps.

Itankbots

2012-08-23 16:24:36

Alright ill try making a custom map, thanks for the help guys. cheers