WoW:API GetItemCooldown: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{wowapi}}__NOTOC__ | {{wowapi}}__NOTOC__ | ||
Returns cooldown information for the item. | Returns cooldown information for the item. | ||
startTime, duration, enable = GetItemCooldown(itemID | startTime, duration, enable = GetItemCooldown(itemID) | ||
=== Arguments === | === Arguments === | ||
:( | :(itemID) | ||
:; | :;itemID : Integer - The numeric ID of the item. ie. 12345 | ||
=== Returns === | === Returns === | ||
Line 17: | Line 15: | ||
:; duration : Number - The number of seconds the cooldown will last, or zero if no cooldown. | :; duration : Number - The number of seconds the cooldown will last, or zero if no cooldown. | ||
:; enable : Number - 1 if the item is ready or on cooldown, 0 if the item is used, but the cooldown didn't start yet (e.g. potion in combat). | :; enable : Number - 1 if the item is ready or on cooldown, 0 if the item is used, but the cooldown didn't start yet (e.g. potion in combat). | ||
== Notes == | |||
As of patch 4.0.1, you can no longer use this function to return the Cooldown of an item link or name, you MUST pass in the itemID. |
Revision as of 23:39, 13 October 2010
Returns cooldown information for the item.
startTime, duration, enable = GetItemCooldown(itemID)
Arguments
- (itemID)
- itemID
- Integer - The numeric ID of the item. ie. 12345
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
- Number - 1 if the item is ready or on cooldown, 0 if the item is used, but the cooldown didn't start yet (e.g. potion in combat).
Notes
As of patch 4.0.1, you can no longer use this function to return the Cooldown of an item link or name, you MUST pass in the itemID.