Returns the time remaining on a trade skill recipe's cooldown
See also Tradeskill functions.
index- Index of a recipe in the trade skill list (between 1 and
cooldown- Time remaining before the recipe can be performed again (in seconds), or nil if the recipe is currently available or has no cooldown (
-- 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