WoW:API GetCraftRecipeLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(removedapi)
m (Move page script moved page API GetCraftRecipeLink to API GetCraftRecipeLink 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]].
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill|Tradeskill API]].
* Equivalent function: {{api|GetTradeSkillRecipeLink}}}}
* Equivalent function: {{api|GetTradeSkillRecipeLink}}}}
{{wowapi}}
{{wowapi}}


Returns the [[EnchantLink]] for a craft.
Gets the an 'enchantLink' for a craft.
link = GetCraftRecipeLink(index)


== Arguments ==
local enchantLink = GetCraftRecipeLink(index)
;index : Number - The index of the item in the current active trade skill.


== Returns ==
== Parameters ==
;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.
=== Arguments ===
* index (number) - The index of the item in the current active trade skill
 
=== Returns ===
* {{api|enchantLink|t=t}} (string) - A special color coded link with href, which can be included in chat messages to show the reagents and the items the craft creates.


== Details ==
== 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.
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 [[API GetTradeSkillRecipeLink|GetTradeSkillRecipeLink]] for the other professions.
 
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 [[API GetTradeSkillRecipeLink|GetTradeSkillRecipeLink]] for the other professions.
 
== Notes ==
* Removed in patch 3.0. Use {{api|GetTradeSkillRecipeLink}} instead.

Latest revision as of 04:45, 15 August 2023

WoW API < GetCraftRecipeLink

Gets the an 'enchantLink' for a craft.

local enchantLink = GetCraftRecipeLink(index)

Parameters[edit]

Arguments[edit]

  • index (number) - The index of the item in the current active trade skill

Returns[edit]

  • enchantLink (string) - A special color coded link with href, which can be included in chat messages to show the reagents and the items the craft creates.

Details[edit]

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.

Notes[edit]