HardRockers
2011-12-28 22:40:24
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.
[PHP]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;
smart_members := false;
smart_signed := true;
smart_superDetail := false;
clearDebug();
setupSRL();
SPS_Debug := true;
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.
begin
SPS_WalkPath
SPS_Continue := true;
end. [/PHP]
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.
[PHP]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;
smart_members := false;
smart_signed := true;
smart_superDetail := false;
clearDebug();
setupSRL();
SPS_Debug := true;
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.
begin
SPS_WalkPath
SPS_Continue := true;
end. [/PHP]