Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
|This is no longer a part of the World of Warcraft API.
Returns the index of the currently selected trade skill.
local tradeSkillIndex = GetTradeSkillSelectionIndex();
- Number - The index of the currently selected trade skill, or 0 if none selected.
if ( GetTradeSkillSelectionIndex() > 1 ) then TradeSkillFrame_SetSelection(GetTradeSkillSelectionIndex()); else if ( GetNumTradeSkills() > 0 ) then TradeSkillFrame_SetSelection(GetFirstTradeSkill()); end; end;