EVENT_ZONE_CHANGED
ESO Lua API function — used by 90 of the 3,030 addons we indexed (combined 21,541,809 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
EVENT_ZONE_CHANGED(string zoneName, string subZoneName, bool newSubzone, integer zoneId, integer subZoneId)Real usage — from Combat Metrics
em:RegisterForEvent(CMX.name .. "zone", EVENT_ZONE_CHANGED, UpdateEvents)
em:RegisterForEvent(CMX.name .. "group1", EVENT_GROUP_UPDATE, UpdateEvents)Short excerpt from the shipping addon Combat Metrics — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Combat Metrics | 7,085,289 |
| Votan's Minimap | 4,211,718 |
| RaidNotifier Updated | 2,789,746 |
| LibMapData | 2,291,531 |
| Azurah - Interface Enhanced | 1,462,318 |
| RuESO | 870,904 |