benilla-re systems structs docs

s_unitTokenBuffers

global · ui

Address
0x8503d8 · 28 bytes, up to 0x8503f3
Type
char *[7]
Meaning
Holds the seven pointers to the buffers that receive the tokens naming a GUID
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.