Fandom

WoWWiki

API GetTrainerServiceCost

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetTrainerServiceCost

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));

Also on Fandom

Random Wiki