WoW:API GetNumTrainerServices: Difference between revisions
Jump to navigation
Jump to search
GetTradeSkillSelectionIndex -Documentation by Xharze-
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
;''Returns'' | ;''Returns'' | ||
: Number trainerServices | : Number trainerServices. Note that if you are working with an invalid target (for example, a merchant) 148 will be consistently returned instead of 0. | ||
:; trainerServices : Total number of trainer services (used like index). | :; trainerServices : Total number of trainer services (used like index). | ||
Revision as of 10:39, 5 November 2005
Returns the number of trainer services.
GetNumTrainerServices();
- Arguments
- none
- Returns
- Number trainerServices. Note that if you are working with an invalid target (for example, a merchant) 148 will be consistently returned instead of 0.
- trainerServices
- Total number of trainer services (used like index).
- Example
Prints the number of trainer services to the chatwindow
ChatFrame1:AddMessage(GetNumTrainerServices());