SRL Archive - General Botting Help

GetPlayerPos Help


Lipcot

2014-08-15 18:26:39

I´ve been trying to make a procedure that gets player position and if the result is: -1 -1 (didnt find enough matches) do another procedure.

i mean…

If getplayerpos = -1 -1 then
RepositionToMine (my procedure that uses lodestone and walks to mine)
else exit;

thats obviously not code but i mean, thats what i want it to do heh, can someone help me? or tell me what or where i should look for some info please?

just wondering; maybe i should make a boolean that returns true or false depending on the getplayerpos result? i dont know how to do that though! will continue trying though :google:, if someone can help me i will apreciate it

Sjoe

2014-08-15 18:47:36

show your written function, and the sps map you're using

The Mayor

2014-08-15 19:03:27

if (getPlayerPos.x = -1) and (getPlayerPos.y = -1) then

Lipcot

2014-08-15 23:44:31

"if (SPS.getPlayerPos.x = -1) and (SPS.getPlayerPos.y = -1) then" sorted me out, thanks again mayor