Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-04-21, 04:16 AM   #1
mazer665
A Defias Bandit
Join Date: Jan 2021
Posts: 3
Getting the "old" mapID / parent of Area

hi all!

i am currently looking for a way to get the "old" mapID.
for example, i am looking to get the id for Durotar which would be 14
as with patch 8.0.1 the ids as well as the api fuctions changed, the id of durotar will be 1411

but wait,
here is what i got.

C_Map.GetMapInfo will return 1411 (while somewhere in Durotar)
C_MapExplorationInfo.GetExploredAreaIDsAtPosition will return 363 (ValleyofTrials in this example)

if i take a look at the dbc AreaTable,
ID 363 (ValleyofTrials) has a Parent of 6451 (ValleyofTrialsStart)

which in return
ID 6451 has a parent of 14 (Durotar) <- this is the value i am looking for

so my question is, how are the functions related?
for one, 1411 which is returned from GetMapInfo is not a parent of the example area
second, how do i get the parent(s) of an areaid?

i have tried so far:
MapUtil.GetMapParentInfo(currentMapId, Enum.UIMapType.Zone, TOP_MOST) -> will return 1411 aswell

thanks
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Getting the "old" mapID / parent of Area

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off