GetNumSmithingResearchLines

From ESOUI Wiki

Jump to: navigation, search

GetNumSmithingResearchLines returns the number of lines that are available within a given profession. Lines are item types, such as Dagger, Axe, Sword.

Arguments

GetNumSmithingResearchLines(TradeskillType craftingSkillType)

TradeskillType craftingSkillType - This is one of the following

Returns

integer numLines - the number of "Lines" that are available within this profession.

Example

DisplayBlacksmithingItems(CRAFTING_TYPE_BLACKSMITHING)
 
function DisplayBlacksmithingItems(thisCraft)
  local i,maxLines
  maxLines = GetNumSmithingResearchLines(thisCraft)
  for i = 1, maxLines do
    name, icon, numTraits, timeRequiredForNextResearchSecs = GetSmithingResearchLineInfo(thisCraft, i)  -- Get info on that specific item
    d(name)
  end
end
</syntaxhighlight
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox