WoW:API GetItemCooldown: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Robot: Automated text replacement (-\[\[\s*(\w[^]|]*\w)\s*\|\s*\1\s*]] +1)) |
||
Line 12: | Line 12: | ||
;: itemName : String - The Name of the Item, ex: "Hearthstone". | ;: itemName : String - The Name of the Item, ex: "Hearthstone". | ||
;: "[[ | ;: "[[itemLink]]" : String - The itemLink, when Shift-Clicking items. | ||
=== Returns === | === Returns === |
Revision as of 18:35, 22 January 2007
Returns cooldown information for the item.
startTime, duration, enable = GetItemCooldown("itemLink");
Parameters
Arguments
(itemID | "name" | "item link")
- itemId
- Integer - The numeric ID of the item. ie. 12345
- itemName
- String - The Name of the Item, ex: "Hearthstone".
- "itemLink"
- String - The itemLink, when Shift-Clicking items.
Returns
(startTime, duration, enable)
- startTime
- Number - The time when the cooldown started (as returned by GetTime()) or zero if no cooldown.
- duration
- Number - The number of seconds the cooldown will last, or zero if no cooldown.
- enable
- Boolean - 0 if no cooldown, 1 if item got cooldown.