benilla-re systems structs docs

ListUnitTokens

function · ui · primitive

Address
0x515c50 · 505 bytes, up to 0x515e48
Signature
char ** __fastcall (const uint64_t *guid, int32_t *count)
Meaning
Lists the tokens that name a GUID in a fixed order into seven global buffers
Confidence
verified, proof one
Finding
ui/unittokens#the-tokens-of-a-guid

Finding: The tokens of a GUID in ui: unit tokens and the unit functions' arguments

0x515c50(&guid, &count) builds the list of tokens that name a GUID, in this order: player (the active player's GUID), pet (its charm else summon), target, party%d or partypet%d (the first of slots 1 to 4 that matches), raid%d or raidpet%d (the first of 1 to 40), npc, mouseover. It returns an empty list for GUID 0 or with no active player object. Nothing removes duplicates, so one unit can have several tokens, at most 7. The strings are the seven 0x20-byte buffers of a global table (0x8503d8), overwritten by the next call. 0x515e50(&guid, id) signals event id once per token with the format %s and the token as arg1.

The derivation is in the doc.

Callers 2

Callees 8

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