WoW:API GetNumTrainerServices

From AddOn Studio
Revision as of 15:30, 28 February 2006 by WoWWiki>Starlightblunder (Returns on valid target vary depending on previous results.)
Jump to navigation Jump to search
GetTradeSkillSelectionIndex -Documentation by Xharze-

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) the return value will be the last valid value, rather than 0.
trainerServices
Total number of trainer services (used like index).

Example

Prints the number of trainer services to the chatwindow

ChatFrame1:AddMessage(GetNumTrainerServices());



Template:WoW API