View Single Post
09/22/21, 07:23 PM   #5
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
GetZoneId converts a zone index to a zone id. It does not return the current zone id.
zoneId = GetZoneId(zoneIndex)
zoneIndex = GetZoneIndex(zoneId)

To get the current zone id you want to use
GetZoneId(GetUnitZoneIndex("player"))
  Reply With Quote