GetCraftRecipeLink

From Warcraft Wiki
Jump to navigation Jump to search
BTNTemp.png C_TradeSkillUI.GetRecipeLink TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.png + 7.0.3
Wowprogramming.png  BTNTemp.png GetTradeSkillRecipeLink Cata-Logo-Small.pngWoW Icon update.png + 2.1.0
BTNTemp.png GetCraftRecipeLink Cata-Logo-Small.pngWoW Icon update.png + 2.1.0

Returns the EnchantLink for a craft.

link = GetCraftRecipeLink(index)

Arguments

index
number - The index of the item in the current active trade skill.

Returns

link
string - An EnchantLink (color coded with href) which can be included in chat messages to show the reagents and the items the craft creates.

Details

This function works with the trade skill which is currently active and only the trade skills that use the CraftFrame, not the TradeSkillFrame. Initially there is no active trade skill. A trade skill becomes active when a trade skill window is opened, for instance.
Note that not all trade skills will change the active trade skill for this function. At the moment only enchanting and hunter's train-pet window use CraftFrame. Use GetTradeSkillRecipeLink for the other professions.

Patch changes

Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Removed.