Fandom

WoWWiki

API GetNumTrainerServices

104,633pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetNumTrainerServices

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());

Also on Fandom

Random Wiki