WoW:API GetTrainerServiceCost: Difference between revisions
Jump to navigation
Jump to search
(upgraded deprecated template) |
m (Move page script moved page API GetTrainerServiceCost to API GetTrainerServiceCost without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Returns the cost of the selected trainer service. | Returns the cost of the selected trainer service. | ||
GetTrainerServiceCost(index); | local moneyCost, talentCost, professionCost = GetTrainerServiceCost(index); | ||
---- | ---- | ||
Line 16: | Line 15: | ||
;''Returns'' | ;''Returns'' | ||
: Number serviceCost | : Number serviceCost, Number talentCost, Number professionCost | ||
:; serviceCost : The cost of a specific service in copper. | :; 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. | |||
---- | ---- |
Latest revision as of 04:46, 15 August 2023
← 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));