WoW API: GetCraftReagentItemLink

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetCraftReagentItemLink to API GetCraftReagentItemLink without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

ArgumentsEdit

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.

ReturnsEdit

reagentLink
String - itemLink for the requested reagent.

DetailsEdit

  • If you specify an invalid index, nil is returned.
  • If there is no visible tradeskill window, nil is returned.