Wikia

WoWWiki

Changes: API GetNumTrainerServices

Edit

Back to page

(upgraded deprecated template)
m
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>
 
   
 
Returns the number of trainer services.
 
Returns the number of trainer services.

Latest revision as of 02:20, November 30, 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());

Around Wikia's network

Random Wiki