Need help developing new addon: Classic Achievements
Am currently playing Wow classic and I like it.
But I do miss my achievements. So am developing a new addon called Classic Achievements. For this I would like to have a list of continent/zones/subzones. Does anyone know of a way to get such a list? |
There are all different types of maps in the new mapping system. You can basically iterate through the continents and get all the type of interest.
Here is code that should work in both Classic and Retail: Code:
local currentMapId, TOP_MOST, ALL_DESCENDANTS = Grail.GetCurrentMapAreaID(), true, true |
Thank you Nimhfree.
Will try this out and will let you know the results. |
With a bit of tinkering I got it to work (It has a dependency to Grail).
I now have a list of continents and the zones. Unfortunately a list of subzones seems impossible. |
Sorry about the Grail usage, I just copied sections of the code over.
I did not remember all the different map types there were. I remember Orphan which was insane as Stormsong Valley (in beta at least) was not a zone but an orphan. |
All times are GMT -6. The time now is 12:40 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI