benilla-re systems structs docs

s_mapZone

global · unassigned

Address
0x845070 · 4 bytes, up to 0x845073
Type
int32_t
Meaning
Holds the selected zone index within the continent, -1 for none
Confidence
verified, proof one
Finding
ui/worldmap#the-selection

Finding: The selection in ui: the world map

Three words hold the selection: the continent 0x84506c, the zone 0x845070 and the direct area 0x845074, all -1 at start. A continent of -1 is the world view and -2 a direct area, the map of an instance such as a battleground; 0 or more indexes the continent records 0xb6e668 (0x10024 bytes each, count 0xb6e664) and a zone of 0 or more indexes the continent's sorted children (record+0x10, count record+0xc). 0x4a67a0(continent, zone) is the only writer. It stores the continent unchecked; the zone only for a valid continent index and a zone below the child count, else -1; and the direct area, the second argument as a row id, only when the continent is exactly -2, else -1.

The derivation is in the doc.