Wikia

WoWWiki

Changes: API GetTrainerSelectionIndex

Edit

Back to page

(upgraded deprecated template)
m
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>
 
   
 
Returns the index of the selected trainer service.
 
Returns the index of the selected trainer service.

Latest revision as of 02:22, November 30, 2007

WoW API < GetTrainerSelectionIndex

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