WoW:API GetCraftInfo: Difference between revisions
Jump to navigation
Jump to search
GetCraftInfo -Documentation by Dalf-
(added more return values (Found in Blizzard_CraftUI.lua)) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center> | <center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center> | ||
craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index) | craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index) | ||
Line 22: | Line 23: | ||
:;requiredLevel : The required level for your pet. | :;requiredLevel : The required level for your pet. | ||
Revision as of 17:29, 6 January 2007
← WoW API < GetCraftInfo
craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)
Parameters
Arguments
- index
- Numeric - 1 to GetNumCrafts()
Returns
- craftName
- craftSubSpellName
- craftType
- String - "header" or something else
- numAvailable
- This is the number of enchants you can perform with the reagents you got in your inventory (the number is also shown in the UI).
- isExpanded
- trainingPointCost
- This is the number of training points your pet needs to train this skill.
- requiredLevel
- The required level for your pet.