WoW:API GetNumTrainerServices: Difference between revisions

m
Move page script moved page API GetNumTrainerServices to WoW:API GetNumTrainerServices without leaving a redirect
No edit summary
m (Move page script moved page API GetNumTrainerServices to WoW:API GetNumTrainerServices without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>
{{wowapi}}


Returns the number of trainer services.
Returns the number of trainer services.
Line 13: Line 13:
;''Returns''
;''Returns''


: Number trainerServices.  Note that if you are working with an invalid target (for example, a merchant) 148 will be consistently returned instead of 0.
: 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).
:; trainerServices : Total number of trainer services (used like index).
Line 22: Line 22:
Prints the number of trainer services to the chatwindow
Prints the number of trainer services to the chatwindow
  ChatFrame1:AddMessage(GetNumTrainerServices());
  ChatFrame1:AddMessage(GetNumTrainerServices());
----
{{Template:WoW API}}
[[Category:API TradeSkill Functions|GetTradeskillSelectionIndex]]
Anonymous user