WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Is in town (https://www.wowinterface.com/forums/showthread.php?t=18334)

Scale 09-28-08 12:11 PM

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!

Slakah 09-28-08 12:28 PM

The easiest method is IsResting() but that works for City's and Inns.

Scale 09-29-08 11:43 AM

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?

Shirik 09-29-08 11:44 AM

Try ZONE_CHANGED_NEW_AREA

Slakah 09-29-08 11:48 AM

If your gonna use IsResting() I would advise "PLAYER_UPDATE_RESTING".

Scale 09-29-08 04:59 PM

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