WoW API: GetNumTrainerServices

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetNumTrainerServices to API GetNumTrainerServices without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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