WoW:API GetCraftReagentItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (→‎Arguments: spelling corrections)
Line 9: Line 9:
:(index, n)
:(index, n)


:;index : Numeric - index of the requested craft receipt, where 1 is the top-most listed receipt.
:;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 receipt, where 1 is the first reagent.
:;n : Numeric - index of the Nth reagent for the recipe, where 1 is the first reagent.


=== Returns ===
=== Returns ===

Revision as of 23:53, 8 January 2007

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)

Parameters

Arguments

(index, n)
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

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