Wikia

WoWWiki

Watchlist Recent changes

API GetTrainerServiceCost

Main Menue



Returns the cost of the selected trainer service.

local moneyCost, talentCost, professionCost = GetTrainerServiceCost(index);

Arguments
Number index
index 
The index number of a specific trainer service.

Returns
Number serviceCost, Number talentCost, Number professionCost
serviceCost 
The cost of a specific service in copper.
talentCost 
The cost of the service in talent points.
professionCost 
The cost of the service in available professions.

Example

Prints the cost of the service with index 3, in the chatwindow.

ChatFrame1:AddMessage(GetTrainerServiceCost(3));

Pages on WoWWiki

95,750pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki