benilla-re systems structs docs

Script::GetNumMapLandmarks

function · ui · orchestration

Address
0x4a8710 · 44 bytes, up to 0x4a873b
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the number of map landmarks
Confidence
verified, proof one
Name from
the community database (idb)
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.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.