From: Spaceblow
I'm not quite sure if this could help you but this is something from my script:
function doorPos(): boolean;
begin
result := (((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 130)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 134)) or ((SPS.getPlayerPos.x = 202) and (SPS.getPlayerPos.y = 130)) or ((SPS.getPlayerPos.x = 202) and (SPS.getPlayerPos.y = 134)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 122)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 130)) or ((SPS.getPlayerPos.x = 202) and (SPS.getPlayerPos.y = 126)) or ((SPS.getPlayerPos.x = 202) and (SPS.getPlayerPos.y = 138)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 138)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 142)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 130)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 134)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 134)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 130)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 126)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 122)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 122)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 126)) or ((SPS.getPlayerPos.x = 206) and (SPS.getPlayerPos.y = 126)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 138)) or ((SPS.getPlayerPos.x = 214) and (SPS.getPlayerPos.y = 142)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 142)) or ((SPS.getPlayerPos.x = 210) and (SPS.getPlayerPos.y = 138)));
end;
And then I use it in another procedure like this:
if not doorPos() then
doorRetry();
I hope this is what you're talking about and it somehow helped you. :)
wow. im so stupid, didnt thought of just checking x and y at its own.. tried to compare SPS.getPlayerPos with a point.. thank you so much :)
EDIT: im confused right now. For any reason SPS.getPlayerPos now gives (-1, -1) as coordinates as soon as i try to use it when i climed up a ladder.
tried to remake the map many times and still not working. i think it cant detect the map probably but i made them the same way i made the map outside the hoose.
I tried doing both in 1 map and i tried seperate them. :(