WoW:API GetContainerItemCooldown: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Returns: 0? not nil?) |
||
| Line 22: | Line 22: | ||
:;start : the time the cooldown period began | :;start : the time the cooldown period began | ||
:;duration : the duration of the cooldown period | :;duration : the duration of the cooldown period | ||
:;enabled : 1 if the item has a cooldown, 0 otherwise | :;enabled : 1 if the item has a cooldown, 0 otherwise <small>''(0? nil, surely? --[[User:Mikk|Mikk]] 08:31, 29 June 2006 (EDT))''</small> | ||
Revision as of 12:31, 29 June 2006
← WoW API < GetContainerItemCooldown
Returns cooldown information for an item in your inventory
startTime, duration, isEnabled = GetContainerItemCooldown(bagID, slot)
Parameters
Arguments
- (bagID, slot)
- bagID
- number - number of the bag the item is in, 0 is your backpack, 1-4 are the four additional bags
- slot
- number - slot number of the bag item you want the info for.
Returns
- startTime, duration, isEnabled
- start
- the time the cooldown period began
- duration
- the duration of the cooldown period
- enabled
- 1 if the item has a cooldown, 0 otherwise (0? nil, surely? --Mikk 08:31, 29 June 2006 (EDT))