Fandom

WoWWiki

API GetCraftInfo

104,642pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetCraftInfo
 craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)

Parameters Edit

Arguments Edit

index 
Numeric - 1 to GetNumCrafts()

Returns Edit

craftName 
Name of the item you can craft
craftSubSpellName
craftType 
String - "header" or how hard it is to create the item; trivial, easy, medium or optimal.
numAvailable 
This is the number of items you can create with the reagents you have in your inventory (the number is also shown in the UI).
isExpanded 
Only applies to headers. Indicates whether they are expanded or contracted. Nil if not applicable.
trainingPointCost 
This is the number of training points needed to train this skill if at a trainer. Nil if the craft window is not a trainer.
requiredLevel 
The required level to train this skill if at a trainer. Nil if the craft window is not a trainer.

Also on Fandom

Random Wiki