benilla-re systems structs docs

FindMacroById

function · ui · primitive

Address
0x4f0f40 · 84 bytes, up to 0x4f0f93
Signature
MACRONODE * __fastcall (uint32_t id)
Meaning
Returns the macro with an id from the hash table, null for none
Confidence
verified, proof one
Finding
ui/macros#macro-records

Finding: Macro records in ui: macros

A macro is a 0x56c-byte record. +0 and +0x18 hold its id, +4 and +0xc the links of the hash table and the list, +0x1c its scope (0 account, 1 character), +0x20 its local flag, +0x24 the name (0x40 bytes), +0x64 the icon basename (0x100), +0x164 the body, +0x564 the bound spell and +0x568 the book selector. A scope holds at most 18 macros. Ids count up from 1 in the account scope and from 0x1000001 in the character scope. The body holds at most 256 characters; a longer text is cut. A record is found by id through a hash table or by name through the list.

The derivation is in the doc.

Callers 5

Callees 0

None by a direct call or jump.

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