m
Move page script moved page API GetTrainerServiceCost to WoW:API GetTrainerServiceCost without leaving a redirect
No edit summary |
m (Move page script moved page API GetTrainerServiceCost to WoW:API GetTrainerServiceCost without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{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 15: | 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. | |||
---- | ---- | ||
| Line 24: | Line 26: | ||
Prints the cost of the service with index 3, in the chatwindow. | Prints the cost of the service with index 3, in the chatwindow. | ||
ChatFrame1:AddMessage(GetTrainerServiceCost(3)); | ChatFrame1:AddMessage(GetTrainerServiceCost(3)); | ||