Lore archive · Warcraft Wiki, 2023 dump
API GetNumTrainerServices
Last wiki revision 2022-07-22
Returns the number of trainer services. numTrainerServices = GetNumTrainerServices
- Returns
- numTrainerServices: : Total number of trainer services (used like index). 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.
- Example
Prints the number of trainer services to the chatwindow ChatFrame1:AddMessage(GetNumTrainerServices);
Source
https://warcraft.wiki.gg/wiki/API_GetNumTrainerServices · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.