v0.13.8

GetInventoryItemCooldown

functionimplementedavailable in: camelot

Get cooldown information for an inventory item.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
unitstringUnitId - The unit whose inventory is to be queried.
invSlotIdnumberInventorySlotId - to be queried, obtained via GetInventorySlotInfo.

Returns

#nametypedescription
1startnumberThe start time of the cooldown period, or 0 if there is no cooldown (or no item in the slot)
2durationnumberThe duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
3enablenumberReturns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.