LibCooldown-Item-2.0
Description
Register item cooldowns to more descriptive events.
Callbacks Fired
:LibCooldownInventoryItem_Start(itemID, itemName, startTime, duration, bagID, slotID)
Arguments
- itemID:number - ItemID of triggered item
- itemName:string - Name of triggered item
- startTime:number - Time when cooldown started (as returned by GetTime())
- duration:number - Duration of cooldown until finished
- bagID:number - Bag ID as used by GetContainerItemCooldown(bagID, slotID)
- slotID:number - Bag slot ID as used by GetContainerItemCooldown(bagID, slotID)
Notes
- Fired whenever a cooldown of a (not equipped) item starts
:LibCooldownEquippedItem_Start(itemID, itemName, startTime, duration, slotID)
Arguments
- itemID:number - ItemID of triggered item
- itemName:string - Name of triggered item
- startTime:number - Time when cooldown started (as returned by GetTime())
- duration:number - Duration of cooldown until finished
- slotID:number - Equipment slot as used by GetInventoryItemCooldown("player", slotID)
Notes
- Fired whenever a cooldown of an (equipped) item starts
:LibCooldownInventoryItem_End(itemID, itemName, startTime, duration, bagID, slotID)
Arguments
- itemID:number - ItemID of triggered item
- itemName:string - Name of triggered item
- startTime:number - Time when cooldown started (as returned by GetTime())
- duration:number - Duration of cooldown until finished
- bagID:number - Bag ID as used by GetContainerItemCooldown(bagID, slotID)
- slotID:number - Bag slot ID as used by GetContainerItemCooldown(bagID, slotID)
Notes
- Fired whenever a cooldown of an (not equipped) item ends
:LibCooldownEquippedItem_End(itemID, itemName, startTime, duration, slotID)
Arguments
- itemID:number - ItemID of triggered item
- itemName:string - Name of triggered item
- startTime:number - Time when cooldown started (as returned by GetTime())
- duration:number - Duration of cooldown until finished
- slotID:number - Equipment slot as used by GetInventoryItemCooldown("player", slotID)
Notes
- Fired whenever a cooldown of an (equipped) item ends
Notes
- Callbacks are fired using CallbackHandler-1.0
Comments