WoW:API GetCraftReagentItemLink: Difference between revisions
Jump to navigation
Jump to search
m (→Arguments: spelling corrections) |
m (Move page script moved page API GetCraftReagentItemLink to API GetCraftReagentItemLink without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]].}} | |||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
This command returns a required reagent (as an [[itemLink]]) for a specific craftable item from the currently visible tradeskill window. | This command returns a required reagent (as an [[itemLink]]) for a specific craftable item from the currently visible tradeskill window. | ||
Line 4: | Line 5: | ||
reagentLink = GetCraftReagentItemLink(index, n) | reagentLink = GetCraftReagentItemLink(index, n) | ||
== | == Arguments == | ||
;index : Numeric - index of the requested craft recipe, where 1 is the top-most listed recipe. | |||
;n : Numeric - index of the Nth reagent for the recipe, where 1 is the first reagent. | |||
== Returns == | |||
;reagentLink : String - [[itemLink]] for the requested reagent. | |||
== Details == | == Details == |
Latest revision as of 04:45, 15 August 2023
This is no longer a part of the World of Warcraft API.
|
← WoW API < GetCraftReagentItemLink
This command returns a required reagent (as an itemLink) for a specific craftable item from the currently visible tradeskill window.
reagentLink = GetCraftReagentItemLink(index, n)
Arguments[edit]
- index
- Numeric - index of the requested craft recipe, where 1 is the top-most listed recipe.
- n
- Numeric - index of the Nth reagent for the recipe, where 1 is the first reagent.
Returns[edit]
- reagentLink
- String - itemLink for the requested reagent.
Details[edit]
- If you specify an invalid index, nil is returned.
- If there is no visible tradeskill window, nil is returned.