Log in

View Full Version : Best Method For Location Checking?



Drax
02-10-2012, 04:18 AM
Can't seem to find the best way or reliable way to check what location my player is at. For example i am experimenting with soulwars. I can get it to walk to the green portal and wait in the waiting room but when the game starts i can't get the script to recognize it's in game. That part of the script is the only bit holding me back.

Would FindNPCChatText('blah') work for the game starting?

And

When the player dies and ends up in the grave yard is there any way to detect that change? Like maybe using a colour change on the MM?

Hopefully you guys can help me with some ideas, if you do come up with a good method ill credit you. :P

Er1k
02-10-2012, 05:50 AM
NPCChat is definitely one way to go.
You might want to combine a number of methods to get the results you want. I don't know if SPS has the SW maps, but if it does, maybe you can use that as well.
Or maybe look for something that is unique to the MM you are switching from and to.

When I made my gatestoner, I had to handle the switching from dung lobby to dung to the broken stairs. Dung lobby I used the bank symbol color, dung I used the door red and NOT bank symbol, broken stairs had no door red nor bank yellow.

I hope this can help.

Drax
02-10-2012, 06:14 AM
NPCChat is definitely one way to go.
You might want to combine a number of methods to get the results you want. I don't know if SPS has the SW maps, but if it does, maybe you can use that as well.
Or maybe look for something that is unique to the MM you are switching from and to.

When I made my gatestoner, I had to handle the switching from dung lobby to dung to the broken stairs. Dung lobby I used the bank symbol color, dung I used the door red and NOT bank symbol, broken stairs had no door red nor bank yellow.

I hope this can help.

Hey thanks for the help, yeah i implemented sps :P . At the moment it runs to the red game wait area waits for game to start (there is something buggy with the FindNpcChatText though it can't seem to get it to work everytime) then clicks the red barrier and runs to the middle to die. Then repeats. Needs alot of baby sitting though because of the Chat text not working all the time.

Ill keep at it i guess.

Er1k
02-10-2012, 06:38 AM
Is the chat text black? I usually use GetBlackChatMessage or GetChatBoxText with regex matching. Not sure if it will work for your application.