SelectCurrentZone
function · ui · orchestration
- Address
0x4a6650· 331 bytes, up to0x4a679a- Meaning
- Selects the map, continent and zone of the active player, or an orphan map, or the world
- Confidence
- verified, proof one
- Finding
- ui/worldmap#the-resolver
Finding: The resolver in ui: the world map
SetMapToCurrentZone() (0x4a7e20) runs 0x4a6650, which takes the active player and selects its map. With no player it selects the world. It looks for a continent whose map id equals the player's (0x5ea700); on a match it selects the continent's child whose area id equals the player's zone (0xb4e314), else the continent alone.
Only when no continent matches does it look through the orphans for a row with the player's map id and select (-2, row id); with none it selects the world. The engine runs the same resolver at the first zone commit of a world session (0x4947ac).
The derivation is in the doc.
Callers 2
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SetMap ui
- GetCurrentMapId objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.