Script::PickupPetAction
function · ui · primitive
- Address
0x4be180· 268 bytes, up to0x4be28b- Signature
int __fastcall (lua_State *L)- Meaning
- Drops a held pet action on a slot, or picks the slot's action up
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#picking-up-and-dropping-pet-actions
Finding: Picking up and dropping pet actions in ui: the pet bar and the form bar
PickupPetAction(index) drops a held pet action onto the slot, or with an empty cursor puts the slot's
action on the cursor (0x494e20) and, for a spell slot only, blanks the slot's spell id and sends it.
A drop runs 0x4bc9a0(target, &word, send). It ignores a word equal to the slot's, refuses a passive
spell without a message, and empties another slot holding the same type and action, giving it the
displaced word. A displaced reaction or command with no duplicate goes to the first slot that is not
one and has no spell id, and with none nothing happens. The result is sent as CMSG_PET_SET_ACTION
(372): pet guid and one or two u32 slot, u32 word pairs, then PET_BAR_UPDATE.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- SetCursorPetAction ui
- ClearCursor ui
- SetPetBarSlot ui
- DropOnPetBar ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.