Fandom

WoWWiki

API GetTradeSkillSelectionIndex

104,755pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetTradeSkillSelectionIndex

Returns the index of the currently selected trade skill.

local tradeSkillIndex = GetTradeSkillSelectionIndex();

ParametersEdit

ReturnsEdit

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

ExampleEdit

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.