Returns the time remaining on a trade skill recipe's cooldown
See also Tradeskill functions.
Signature:
cooldown
=
GetTradeSkillCooldown(index)
Arguments:
index
- Index of a recipe in the trade skill list (between 1 andGetNumTradeSkills()
) (number
)
Returns:
cooldown
- Time remaining before the recipe can be performed again (in seconds), or nil if the recipe is currently available or has no cooldown (number
)
Examples:
-- Print cooldowns for any applicable recipes for i=1,GetNumTradeSkills() do local cooldown = GetTradeSkillCooldown(i) if cooldown then local name = GetTradeSkillInfo(i) print("Cooldown remaining for " .. name .. ": " .. SecondsToTime(cooldown)) end end