m
no edit summary
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<center>'''GetTradeSkillInfo''' '' | <center>'''GetTradeSkillInfo''' - ''Documentation edited by wowpendium.de''</center> | ||
Retrieves | == Synopsis == | ||
Retrieves information about a specific trade skill. | |||
skillName, skillType, numAvailable, isExpanded = GetTradeSkillInfo(skillIndex) | skillName, skillType, numAvailable, isExpanded = GetTradeSkillInfo(skillIndex) | ||
== Arguments == | |||
:(skillIndex) | |||
:( | |||
:;skillIndex : The id of the skill you want to query. | :;skillIndex : Number - The id of the skill you want to query. | ||
== Returns == | |||
:skillName, skillType, numAvailable, isExpanded | |||
:;skillName : | :;skillName : String - The name of the skill, e.g. "Copper Breastplate" or "Daggers", if the skillIndex references to a heading. | ||
:;skillType : | :;skillType : String - Either "header", if the skillIndex references to a heading, or a string indicating the difficulty to craft the item ("trivial", "easy" (?), "optimal", "difficult"). | ||
:;numAvailable : | :;numAvailable : Number - The number of items the player can craft with his available trade goods. | ||
:;isExpanded : | :;isExpanded : Boolean - Returns if the header of the skillIndex is expanded in the crafting window or not | ||
---- | == Example == | ||
<!-- begin code --> | |||
local tradeSkillsNum; | local tradeSkillsNum; | ||
local name, type; | local name, type; | ||
| Line 29: | Line 29: | ||
end | end | ||
end | end | ||
<!-- end code --> | |||
==== Result ==== | |||
:Displays all items the player is able to craft in the chat windows. | |||
== Details == | |||
: Retrieves the name of the skill, the type of the skill and the amount the player can craft for a specific crafting skill. | |||
---- | ---- | ||
__NOTOC__ | |||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API TradeSkill Functions|GetTradeSkillInfo]] | |||