Thread: Updating Addon
View Single Post
03/05/21, 09:18 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
You have to differentiate between a map id and a zone id. The map id corresponds to a 2d map that you see when you open the map menu, while zone ids identify the 3d level your character is in. There is also no relationship between those two ids - a zone can have any number of maps and a map can have any number of zones.

You can print the map id to chat by opening the map menu, selecting the map you want to know the id for and then entering the following command in chat:
Code:
/script d(GetCurrentMapId())
The zone id for the location your character is currently in can be printed in a similar way:
Code:
/script d(GetZoneId(GetUnitZoneIndex("player"))
  Reply With Quote