WoW:API GetTrainerServiceCost: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added the talent and profession cost variables that are returned.)
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>


Returns the cost of the selected trainer service.
Returns the cost of the selected trainer service.

Revision as of 02:21, 30 November 2007

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