Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the index of the currently selected trade skill.

local tradeSkillIndex = GetTradeSkillSelectionIndex()

Parameters[]

Returns[]

tradeSkillIndex
number - The index of the currently selected trade skill, or 0 if none selected.

Example[]

if ( GetTradeSkillSelectionIndex() > 1 ) then
  TradeSkillFrame_SetSelection(GetTradeSkillSelectionIndex());
else
  if ( GetNumTradeSkills() > 0 ) then
    TradeSkillFrame_SetSelection(GetFirstTradeSkill());
  end;
end;
Advertisement