Wikia

WoWWiki

API GetTrainerServiceCost

Talk0
98,518pages on
this wiki
Revision as of 02:21, November 30, 2007 by Pcj (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

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));
Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki