Edit: sorry Wrong place. I just wasn't paying attention.
Hey I am trying to learn how to use SPS to walk from a site to the bank. I have written a script that will just do the walking and nothing else, and I am still having trouble. Can someone help me out a little?
And basically I have just taken the SPS tutorial thread and used it but with my own information and position.
Simba Code:
program WalkingTester;
{$i SRL\SRL.scar}
{$i sps/sps.simba} // has to be included after SRL
{$i SRL\SRL\Misc\Stats.simba}
var
t: integer;
pts: TPointArray;
begin
smart_server := 1;//This line down to.....,
smart_members := false;
smart_signed := true;
smart_superDetail := false;
clearDebug();
setupSRL();//This line should be in the "Main Loop"
SPS_Debug := true;
//Everything else should be in its own procedure.
SPS_Setup(RUNESCAPE_SURFACE, ['5_10']);
pts := [Point(2336, 4074), Point(2314, 4123), Point(2295, 4181), Point(2264, 4230), Point(2262, 4262)];
{
repeat
inc(t);
if (SPS_WalkPath(pts)) then
writeLn(format('Walked %d times', [t]));
invertTPA(pts);
until(t = 50);
}
SPS_GetMyPos();
end.//end with a period means the end of the entire script. So what is below this is not being used. Do what I said prior and close it with ; You will see in Simba as you code it will show you basic things like which begins and ends belong to which and when things are still left open or shut properly.
//This is your MainLoop and it is not being used because your code ended a few lines up.
begin
SPS_WalkPath
SPS_Continue := true;
end.