when i run this i am getting -1,-1 for mypos. i am trying to use it for eoc. heres my code
Simba Code:
program pos;
{$I SRL/SRL.Simba}
{$I SPS/sps.Simba}
var
x, y: integer;
MyLoc: TPoint;
procedure theposition;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['9_7']);
MyLoc:=SPS_GetMyPos;
writeln('sps returns '+inttostr(MyLoc.x)+','+inttostr(MyLoc.y));
end;
begin
setupsrl;
ActivateClient;
repeat
theposition;
wait(2000);
until (false)
end.
do i need to make my own sps maps? or does anyone know why its not returning positive values?