WoW:API GetCraftItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
m (fixes spelling mistake)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
=== Arguments ===


:;index : Numeric - 1 to [[API GetNumCrafts|GetNumCrafts()]]
Returns an [[itemLink]] for the specified trade skill item in the current active trade skill.
{{Code/Begin}}
"itemLink" = GetCraftItemLink(index)
{{Code/End}}


=== Returns ===


:;ItemLink
== Arguments ==
;index : Number - The index of the item in the current active trade skill.
 
 
== Returns ==
;"itemLink" : [[itemLink]] - the corresponding item link for that item or
:nil, if the index is invalid or there is no active trade skill.
 
 
== Details ==
: This function works with the trade skill which is currently active. 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. Only these which can generate chat links for a single trade skill, will change the active setting (not to be mixed up with item links for crafted items). At the moment this is only the enchanting trade skill window (and possibly the jewelcraft trade skill, though this has not been verified!).

Revision as of 10:40, 7 May 2007

WoW API < GetCraftItemLink

Returns an itemLink for the specified trade skill item in the current active trade skill. Template:Code/Begin "itemLink" = GetCraftItemLink(index) Template:Code/End


Arguments

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


Returns

"itemLink"
itemLink - the corresponding item link for that item or
nil, if the index is invalid or there is no active trade skill.


Details

This function works with the trade skill which is currently active. 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. Only these which can generate chat links for a single trade skill, will change the active setting (not to be mixed up with item links for crafted items). At the moment this is only the enchanting trade skill window (and possibly the jewelcraft trade skill, though this has not been verified!).