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
| name | type | description |
|---|---|---|
unit | string | UnitId - The unit whose inventory is to be queried. |
invSlotId | number | InventorySlotId - to be queried, obtained via GetInventorySlotInfo. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | start | number | The start time of the cooldown period, or 0 if there is no cooldown (or no item in the slot) |
| 2 | duration | number | The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty. |
| 3 | enable | number | Returns 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 ↗.