Is in town
Is there an method to check if a player is in town,
Also is it possible to move the chat frame page from code. I have an addon which fades out the chat frame which i love, It returns on mouse over but you have to scroll a line up and down to see previous content. I would like to fix this and make it not fade out in town. Thanks! |
The easiest method is IsResting() but that works for City's and Inns.
|
Having some trouble with this..
I registered ZONE_CHANGED then i check IsRested() but the event only fires when entering shattrath but not when leaving the city and entering the forest (whichi is contested zone) EDIT: I added the event "ZONE_CHANGED_NEW_AREA" And now it "works" the problem is that IsResting() returns 1 when leaving town like a second later shows nil. Any idea how to fix this? |
Try ZONE_CHANGED_NEW_AREA
|
If your gonna use IsResting() I would advise "PLAYER_UPDATE_RESTING".
|
Ahh nice idea, it's beter then my 3 second OnUpdate :P
|
All times are GMT -6. The time now is 05:53 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI