CynicRus
2012-06-19 02:51:03
Hello. I have some trouble with SPS. I use latest Simba and SPS version.
For testing i use some code:
[PHP]
procedure SetupSps;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['6_8']);
SPS_Debug := True;
end;
****
procedure GoToPoint(Point: TPoint);
var
TempPoint: TPoint;
begin
MakeCompass('n');
Writeln('Walking to point');
Writeln(ToStr(SPS_GetMyPos));
TempPoint:=SPS_GetMyPos;
if TempPoint<>Point then
SPS_WalkToPos(Point);
while(IsMoving) do
Wait(Random(5000));
WriteLn('Im in point');
end;
[/PHP]
For getting area code and waypoint's I use Wolygon's path creator v 0.9.
This code is compile without any error's, but after run i see in debug window:
[PHP]
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 123, Members: True, Signed: True, Super Detail: False.
Current player: lalalalalalala
Walking to point
SPS_GetMyPos: Finished in 156 ms. Result = (-1, -1)
(-1, -1)
SPS_GetMyPos: Finished in 187 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 172 ms. Result = (-1, -1)
Im in point
[/PHP]
But in smart - doesn't any happens. How i can fix it?
PS: Sorry for my bad English, it is not my native language.
For testing i use some code:
[PHP]
procedure SetupSps;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['6_8']);
SPS_Debug := True;
end;
****
procedure GoToPoint(Point: TPoint);
var
TempPoint: TPoint;
begin
MakeCompass('n');
Writeln('Walking to point');
Writeln(ToStr(SPS_GetMyPos));
TempPoint:=SPS_GetMyPos;
if TempPoint<>Point then
SPS_WalkToPos(Point);
while(IsMoving) do
Wait(Random(5000));
WriteLn('Im in point');
end;
[/PHP]
For getting area code and waypoint's I use Wolygon's path creator v 0.9.
This code is compile without any error's, but after run i see in debug window:
[PHP]
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 123, Members: True, Signed: True, Super Detail: False.
Current player: lalalalalalala
Walking to point
SPS_GetMyPos: Finished in 156 ms. Result = (-1, -1)
(-1, -1)
SPS_GetMyPos: Finished in 187 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 172 ms. Result = (-1, -1)
Im in point
[/PHP]
But in smart - doesn't any happens. How i can fix it?
PS: Sorry for my bad English, it is not my native language.