ESODecoded

GetSmithingResearchLineTraitTimes

ESO Lua API function — used by 52 of the 3,030 addons we indexed (combined 13,241,610 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetSmithingResearchLineTraitTimes([TradeskillType|#TradeskillType] craftingSkillType, luaindex researchLineIndex, luaindex traitIndex)

Returns: integer:nilable duration, integer:nilable timeRemainingSecs

Real usage — from CraftStore

      if char == CS.CurrentPlayer then
        local _,remain = GetSmithingResearchLineTraitTimes(craft,line,trait)
        table.insert(researching,'|c66FFCC'..char..' ('..CS.GetTime(remain)..')|r')

Short excerpt from the shipping addon CraftStoreits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
CraftStore5,176,147
LibCharacterKnowledge1,771,857
AI Research Grid1,195,942
TraitBuddy1,101,730
Character Knowledge (Research, Motif, Recipe, Furnishing Plan and Scribing Tracker)733,709
LibResearch652,954