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 CraftStore — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| CraftStore | 5,176,147 |
| LibCharacterKnowledge | 1,771,857 |
| AI Research Grid | 1,195,942 |
| TraitBuddy | 1,101,730 |
| Character Knowledge (Research, Motif, Recipe, Furnishing Plan and Scribing Tracker) | 733,709 |
| LibResearch | 652,954 |