Wikia

WoWWiki

API GetTrainerSelectionIndex

Talk0
98,585pages on
this wiki

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());
Advertisement | Your ad here

Photos

Add a Photo
62,230photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki