Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetInventoryItemCooldown
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Get cooldown information for an inventory item. start, duration, enable = GetInventoryItemCooldown("unit", slotId) == Parameters == === Arguments === :("unit", slotId) :;unit : String - The [[API TYPE UnitId|UnitId]] of the unit whose inventory is to be queried. :;slotId : Numeric - The [[API TYPE InventorySlotID|inventory slot]] to be queried, obtained via [[API GetInventorySlotInfo|GetInventorySlotInfo]]. === Returns === :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. __NOTOC__
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)