Wikia

WoWWiki

Watchlist Recent changes

API GetNumTrainerServices

Main Menue



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

Pages on WoWWiki

95,739pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,022photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki