WoW:API GetInventoryItemCooldown: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetInventoryItemCooldown to API GetInventoryItemCooldown without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<center>'''GetInventoryItemCooldown''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Get cooldown information for an inventory item.
Get cooldown information for an inventory item.
Line 17: Line 17:
:;duration : Numeric - The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
:;duration : Numeric - The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
:;enable : Numeric - Returns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.
:;enable : Numeric - Returns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetInventoryItemCooldown

Get cooldown information for an inventory item.

start, duration, enable = GetInventoryItemCooldown("unit", slotId)

Parameters[edit]

Arguments[edit]

("unit", slotId)
unit
String - The UnitId of the unit whose inventory is to be queried.
slotId
Numeric - The inventory slot to be queried, obtained via GetInventorySlotInfo.

Returns[edit]

start, duration, enable
start
Numeric - The start time of the cooldown period, or 0 if there is no cooldown (or no item in the slot)
duration
Numeric - The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
enable
Numeric - Returns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.