GetItemCooldown
function · spell · orchestration
- Address
0x6e2ed0· 152 bytes, up to0x6e2f67- Signature
uint32_t __fastcall (uint32_t itemId, int32_t *duration, int32_t *start, uint32_t *enabled)- Meaning
- Queries the player history for an item's first on-use spell, fetching the item record through the cache
- Confidence
- verified, proof one
- Finding
- spell/records#cooldown-queries
Finding: Cooldown queries in spell: records
0x6e2ea0(spellId, pet, &duration, &start, &enabled) returns 0x6e13e0 on the selected history
for the id and item 0. 0x6e2ed0(itemId, &duration, &start, &enabled) fetches the item record
from the item cache, naming 0x6e2f70 as the callback for a record not yet cached, and queries
the player's history for the first of its five spells with an id above 0 and trigger 0, with the
item id; it returns 0 otherwise. 0x6e2f70, given a found record, re-queries with null outputs
and, on a running cooldown, calls 0x4b31b0 and 0x4f93d0. 0x6e2fa0(spell, pet) returns
0x6e1690 for the record's id and item 0.
The derivation is in the doc.
Callers 7
- Script::GetInventoryItemCooldown ui
- GetActionSlotCooldown ui
- Script::GetContainerItemCooldown ui
- GameTooltip::SetInventoryItem ui
- GameTooltip::SetBagItem ui
- CheckCasterStateForSpell objectlayer
- OnItemCooldownRecord spell
Callees 3
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- SpellHistory::GetCooldown spell
Calls and jumps by a bare address, from tables/calls.tsv.