GetTrainerServiceCost

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the cost of the specified trainer service.

moneyCost, talentCost, professionCost = GetTrainerServiceCost(index)

Arguments
index
The index number of a specific trainer service.

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