WoW:API GetNumTrainerServices: Difference between revisions
Jump to navigation
Jump to search
GetTradeSkillSelectionIndex -Documentation by Xharze-
m (Returns on valid target vary depending on previous results.) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center> | <center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center> | ||
Line 22: | Line 23: | ||
Prints the number of trainer services to the chatwindow | Prints the number of trainer services to the chatwindow | ||
ChatFrame1:AddMessage(GetNumTrainerServices()); | ChatFrame1:AddMessage(GetNumTrainerServices()); | ||
Revision as of 17:28, 6 January 2007
← 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());