API GetItemCooldown

101,547pages on
this wiki
Revision as of 23:39, October 13, 2010 by DrDoom (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetItemCooldown

Returns cooldown information for the item.

startTime, duration, enable = GetItemCooldown(itemID)

Arguments Edit

Integer - The numeric ID of the item. ie. 12345

Returns Edit

startTime, duration, enable
Number - The time when the cooldown started (as returned by GetTime()) or zero if no cooldown.
Number - The number of seconds the cooldown will last, or zero if no cooldown.
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 Edit

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.

Around Wikia's network

Random Wiki