Wikia

WoWWiki

API GetTradeSkillSelectionIndex

Talk0
101,697pages on
this wiki
Revision as of 05:50, January 4, 2006 by Muert (Talk | contribs)

GetTradeSkillSelectionIndex -Documentation by Goldark-

Returns the index of the currently selected trade skill.

local tradeSkillIndex = GetTradeSkillSelectionIndex();

Arguments
none

Returns
Number tradeSkillIndex
tradeSkillIndex 
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;



Template:WoW API

Around Wikia's network

Random Wiki