WoW:API GetTrainerServiceCost: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 24: Line 24:
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));




----
----
{{Template:WoW API}}
{{WoW API}}
 
[[Category:API TradeSkill Functions|GetTradeskillSelectionIndex]]

Revision as of 05:50, 4 January 2006

GetTradeSkillSelectionIndex -Documentation by Xharze-

Returns the cost of the selected trainer service.

GetTrainerServiceCost(index);

Arguments
Number index
index
The index number of a specific trainer service.

Returns
Number serviceCost
serviceCost
The cost of a specific service in copper.

Example

Prints the cost of the service with index 3, in the chatwindow.

ChatFrame1:AddMessage(GetTrainerServiceCost(3));



Template:WoW API