benilla-re systems structs docs

GetPetCommandToken

function · ui · primitive

Address
0x4bce60 · 11 bytes, up to 0x4bce6a
Signature
char * __fastcall (uint32_t index)
Meaning
Returns the 32-byte token string of a command without a bound
Confidence
verified, proof one
Finding
ui/petbar#getpetactioninfo

Finding: GetPetActionInfo in ui: the pet bar and the form bar

GetPetActionInfo(index) returns seven values, all nil for no pet, an index outside 1 to 10 or an empty slot. A spell slot (types 1 to 5): name, rank, icon path (the active icon when 0x4bcea0 finds the spell's aura on the pet, else the spell icon), nil, nil, then autocast allowed and enabled as 1 or nil, nil when the spell is unknown. A reaction (type 6): PET_MODE_ plus the token, nil, PET_<token>_TEXTURE, 1, 1 when it is the current reaction, nil, nil. A command (type 7): PET_ACTION_ plus the token, nil, the texture key, 1, 1 when it is the current command or attack with the latch set, nil, nil. The names are global-string keys.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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