benilla-re systems structs docs

Script::GetMapLandmarkInfo

function · ui · primitive

Address
0x4a8740 · 430 bytes, up to 0x4a88ed
Signature
int __fastcall (lua_State *L)
Meaning
Pushes name, description, icon index, x and y of a map landmark
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 8

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