Getting the "old" mapID / parent of Area
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
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
So you want to get the parent AreaID for a specific AreaID?
I don't think that's possible with the in-game API. There is only C_Map.GetAreaInfo() and C_MapExplorationInfo.GetExploredAreaIDsAtPosition()
Can you elaborate what you are trying to do?
In any case, you can map from UiMapIDs to AreaIDs and vice versa by parsing the CSVs for AreaTable.db2 and UiMapAssignment.db2 and converting it to a table.
Or just only a table that maps from AreaIDs to ParentAreaIDs:
But the "old" mapID 14 you're referring to here for Durotar is the AreaID
You'd need to make a table to map between UiMapIDs and (Parent)AreaIDs, depending on what you are trying to do
thanks for the info so far!
sorry, that i forgot to mention that this belongs to the classic version...
as of what i am planning:
a webbased world map with the possibility to draw POIs or pathes etc (also import of those)
but also with the possibility to "record" this points in game as well
so i need a form of conversion
for example i want to place a POI on the website, i get the "real" server coordinates,
if i want to translate them to ingame coordinates i can use the WorldMapArea DBC to get them
basically i want to translate an external vector to the ingame position
EDIT: or as a another example, calculate the position of an NPC to be displayed on the website with only areaID and ingame coordinates as input
i am aware of these functions that might provide some help doing this:
i'll take a look at HereBeDragons
|All times are GMT -6. The time now is 03:29 AM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI