WoW:API GetCraftInfo: Difference between revisions

-Credit to Dalf (look at the history for contributors), changed 'materials' to 'reagents'
(-Credit to Dalf (look at the history for contributors), changed 'materials' to 'reagents')
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
<center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center>
<center>'''GetCraftInfo''' </center>
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)


Line 10: Line 10:
=== Returns ===
=== Returns ===


:;craftName
:;craftName : Name of the item you can craft


:;craftSubSpellName
:;craftSubSpellName


:;craftType : String - "header" or something else
:;craftType : String - "header" or how hard it is to create the item; trivial, easy, medium or optimal.


:;numAvailable : This is the number of enchants you can perform with the reagents you have in your inventory (the number is also shown in the UI).
:;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
:;isExpanded : Only applies to headers. Indicates wether they are expanded or contracted.  Nil if not applicable.


:;trainingPointCost : This is the number of training points your pet needs to train this skill.
:;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 for your pet.
:;requiredLevel : The required level to train this skill if at a trainer. Nil if the craft window is not a trainer.
Anonymous user