rj
2013-04-12 20:58:38
So I am attempting to use SPS to get my position in a dungeon, and it seems that it is getting my position right everytime, but it is not getting my location right:
If I am within that box it is supposed to tell me "left side" but it never tells me, so I don't know what the problem is
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
procedure WalkBank;
var
ToBankVar: TPointArray;
P:Tpoint;
begin
//MakeCompass(360 - Random(10));
SPS_Setup(RUNESCAPE_OTHER,['dwarven_mine']);
// SPS_WalkPath(ToBankVar)
// SPS_MatchesPercent := 0.40; //.4, 500
// SPS_Tolerance := 550.000;
writeln(SPS_getmypos);
p := SPS_Getmypos;
if PointInBox(p, IntToBox(195, 623, 167, 639)) then
begin
writeln('left side')
end;
end;
begin
setupSRL;
WalkBank;
repeat
walkbank;
until false;
end. If I am within that box it is supposed to tell me "left side" but it never tells me, so I don't know what the problem is
