Script::GetContainerItemCooldown
function · ui · primitive
- Address
0x4f99b0· 379 bytes, up to0x4f9b2a- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the start, duration and enable value of a bag item cooldown
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventoryverbs#container-cooldown-and-splitting
Finding: Container cooldown and splitting in ui: inventory, container, bank and vendor getters
GetContainerItemCooldown(bag, slot) is the worn version without the use spell test: it returns the start, duration and enable value for
an item with a cooldown (an item with charges needs one left), else 0, 0, 0. SplitContainerItem(bag, slot, amount) needs the three numbers (else
Usage: SplitContainerItem(index, slot, amount)), a player who has control or the control-flag bit (bit 20 of the unit flags), an
unlocked item and an amount from 1 to the stack count. It then clears the cursor and spell targeting, puts the amount on the cursor (the whole stack when it equals the count) and locks the item.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- ResolveContainerSlot ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetItemInSlot objectlayer
- GetItemCooldown spell
- lua_isnumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.