WoW:API GetCraftInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(added more return values (Found in Blizzard_CraftUI.lua))
Line 1: Line 1:
<center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center>
<center>'''GetCraftInfo''' ''-Documentation by [[user:Dalf|Dalf]]-''</center>
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded = GetCraftInfo(index)
   craftName, craftSubSpellName, craftType, numAvailable, isExpanded, trainingPointCost, requiredLevel = GetCraftInfo(index)


== Parameters ==
== Parameters ==
Line 19: Line 19:
:;isExpanded
:;isExpanded


:;trainingPointCost : This is the number of training points your pet needs to train this skill.


:;requiredLevel : The required level for your pet.
----
----
{{WoW API}}
{{WoW API}}

Revision as of 23:17, 29 December 2006

GetCraftInfo -Documentation by Dalf-
 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.

Template:WoW API