Instance Data Help
Hi guys,
I am completely new to the forums and only started looking at WoW addon development yesterday. Apologies if this post is in the wrong place. Lua is new to me but I am familiar with other programming languages. Ultimately, I am trying to develop an addon that does the following: * Detects when the player enters a new zone, discovers what raids/dungeons are in that zone and (eventually) display a window that tells the player what uncollected transmog there is to farm in the those dungeons/raids. So far I've just been getting familiar with the WoW API by printing stuff out from /reload - not going near UI yet. I've been using this API reference: https://wowwiki.fandom.com/wiki/World_of_Warcraft_API I can print out details about raids that the player is currently locked into but I'm struggling to find useful functions that provide info about the raids/zones. Any pointers? Thanks |
You can register for ZONE_CHANGED_NEW_AREA and check the zone mapID by looking if the child mapIDs match any of your dungeon mapIDs
Otherwise you could hardcode a list of zones and their respective dungeons Lua Code:
Code:
> You entered Westfall (52) which has The Deadmines (291) |
This is fantastic, thank you so much for your help.
|
All times are GMT -6. The time now is 05:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI