ZONE_CHANGED_NEW_AREA new behaviour
Hi,
before 6.0 i could catch the event ZONE_CHANGED_NEW_AREA and do local zoneInfo = EJ_GetCurrentInstance(); Unfortunately in 6.X zoneInfo is the old InstanceID. So i had to work around this and delay my function so that the correct InstanceID was returned. thought that would be nice to know |
EJ_GetCurrentInstance relies on what the world map is set to, you may have to call SetMapToCurrentZone() beforehand for accurate results.
|
thank you, it works and honestly i think it fits better than my workaround.
just for my information: where do you get such knowledge ? i mean that some Events rely on other functions to provide correct data |
I only know that it relies on the map through experimentation when I was working on an addon that used encounter journal functions.
I tried a few maps without EJ bosses on them and they all return 0 for the instance, then when I opened the map to valley of the four winds it returned 322 because it has a world boss on it. |
All times are GMT -6. The time now is 03:02 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI