WoW API: GetTrainerServiceCost

From AddOn Studio
Revision as of 19:47, 6 June 2007 by WoWWiki>Ravas (Added the talent and profession cost variables that are returned.)
Jump to navigation Jump to search

WoW API < GetTrainerServiceCost

GetTradeSkillSelectionIndex -Documentation by Xharze-

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