Wikia

WoWWiki

API GetTrainerSelectionIndex

Talk0
101,385pages on
this wiki
Revision as of 17:28, January 6, 2007 by Hobinbot (Talk | contribs)

WoW API < GetTrainerSelectionIndex
GetTradeSkillSelectionIndex -Documentation by Xharze-

Returns the index of the selected trainer service.

GetTrainerSelectionIndex();

Arguments
none

Returns
Number selectionIndex
selectionIndex 
The index of the selected trainer service (the index changes when a subclass header is collapsed or expanded. And the subclass headers are included in the index).

Example

Prints the index of the selected trainer service to the chatwindow.

ChatFrame1:AddMessage(GetTrainerSelectionIndex());

Around Wikia's network

Random Wiki