Wetish
2012-01-08 11:00:29
I am trying to make a simple script to find my player position. I use SPS_GetMyPos
to find the position but how do I make it print it in the debug box?
program new;
{$i SRL\SRL.scar}
{$i sps/sps.simba}
begin
SPS_GetMyPos
end.
Gu3st...
2012-01-08 11:06:16
WriteLn(); is used to print stuff in the debug box, but as you have it right now, I am pretty confident that it wont output anything worthwhile. SPS works in the sense that you have to tell it what areas you are most likely standing in; meaning SPS wont output the tile location in the way reflection did (reflection could just search the client. SPS has to compare minimap colors)
Wetish
2012-01-08 11:07:38
From: Zyt3x
WriteLn(); is used to print stuff in the debug box, but as you have it right now, I am pretty confident that it wont output anything worthwhile. SPS works in the sense that you have to tell it what areas you are most likely standing in; meaning SPS wont output the tile location in the way reflection did (reflection could just search the client. SPS has to compare minimap colors)
So I should just not use SPS? What other walking methods are there ?
Gu3st...
2012-01-08 11:35:24
Oh, no SPS works great (!), but the way you are trying to do it now wont work, as you have to setup surface and areas for SPS to search on ;)
There are several ways of walking. TPA, Color, (D)DTM, RadialWalk, and symbols are some keywords :)
Take a look in the tutorial section, IIRC there's a tutorial for walking in there somewhere
You should ,but any SPS function will not print message in debug box. SPS_GetMyPos gives you TPoint as output. So you need to make var to store this output and then print it…
program new;
{$i SRL\SRL.scar}
{$i sps/sps.simba}
var
MyPos :TPoint;
begin
MyPos := SPS_GetMyPos;
Writeln('My position is x: '+inttostr(MyPos.x)+' y: '+inttostr(MyPos.y));
end.
Gu3st...
2012-01-08 11:44:47