benilla-re systems structs docs

CreateMacroRecord

function · ui · primitive

Address
0x4f1010 · 613 bytes, up to 0x4f1274
Signature
uint32_t __fastcall (const char *name, const char *icon, const char *body, uint32_t local, uint32_t scope)
Meaning
Creates a macro and returns its id, 0 when refused
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 1

Callees 9

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