ifrootloops
2012-02-20 16:31:06
is there any way that SPS can retrieve my current location?
EDIT: I can't figure out how to use SPS_GetMyPos()
HELP please!
EDIT: I can't figure out how to use SPS_GetMyPos()
HELP please!
2012-02-20 16:31:06
2012-02-20 16:33:00
2012-02-20 16:34:01
Var
MyPos: Tpoint;
Begin
MyPos:= Sps_GetMyPos()
End. 2012-02-20 16:52:51
2012-02-20 18:57:43
2012-02-20 19:26:30
writeln('moving');
MyPos := SPS_GetMyPos();
First := Point(4528, 3561);
if ((myPos.y) < 3585) AND (((mypos.y) > 3555)) then
begin
Writeln('walking to second spot');
SPS_WalkToPos(Point(4509, 3599));
end else
Begin
Writeln('Walking to first spot');
SPS_WalkToPos(First);
End;
This checks if my y position is in a certain range and if it is move to the other spot. You could also you mypos.x to check your x number. 2012-02-20 20:28:44
procedure walkToStone;
begin
writeln('Moving To Stone');
SPS_Setup(RUNESCAPE_SURFACE, ['7_14','6_14','8_14','7_13','6_13']);
toStone := Point(2854, 5724);
SPS_WalkToPos(toStone);
end;
and
procedure moveToSwing;
begin
writeln('Moved To Swing');
SPS_Setup(RUNESCAPE_SURFACE, ['7_14','6_14','8_14','7_13','6_13']);
toSwing := Point(2850, 5756);
SPS_WalkToPos(toSwing);
end;
2012-02-20 23:40:43
procedure moveToSwing;
begin
Repeat
writeln('Moved To Swing');
SPS_Setup(RUNESCAPE_SURFACE, ['7_14','6_14','8_14','7_13','6_13']);
toSwing := Point(2850, 5756);
SPS_WalkToPos(toSwing);
MyPos:= SPS_GetMyPos()
Until (MyPos.x=2850) AND (MyPos.y=5756)
end;