benilla-re systems structs docs

s_mapLandmarkCount

global · ui

Address
0xb6e6b0 · 4 bytes, up to 0xb6e6b3
Type
uint32_t
Meaning
Holds the number of landmarks GetNumMapLandmarks returns
Confidence
verified, proof one
Finding
ui/worldmap#the-landmarks

Finding: The landmarks in ui: the world map

GetNumMapLandmarks() pushes the count 0xb6e6b0. GetMapLandmarkInfo(index) is 1-based and pushes five values: the name, the description, the icon index, x and y; out of range it pushes two nils and three zeros. The list is rebuilt by 0x4a67a0 from the AreaPOI rows (0xc0e054, 0x74 bytes each) and then the one gossip marker. An AreaPOI row is kept when its position (0x4a79b0) is not zero in both coordinates, its area passes the exploration test below and its world state (+0x70, when nonzero) has a nonzero value (0x4c5810).

The derivation is in the doc.