WoW:API GetCraftInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetCraftInfo to API GetCraftInfo without leaving a redirect)
 
(10 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center>
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]].
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded = GetCraftInfo(index)
* Equivalent function: {{api|GetTradeSkillInfo}}.}}
{{wowapi}}
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)


== Parameters ==
== Parameters ==
Line 9: Line 11:
=== 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
:;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 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.
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

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.