WoW:API GetMerchantItemLink: Difference between revisions
Jump to navigation
Jump to search
m (cat) |
(Link to ItemLink rather than local example, itemlinks are somwhat volatile) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns a link to the indexed item in the merchant's inventory. | Returns a link to the indexed item in the merchant's inventory. | ||
link = GetMerchantItemLink(index); | link = GetMerchantItemLink(index); | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:;index : Integer - The index of the item in the merchant's inventory | :;index : Integer - The index of the item in the merchant's inventory | ||
=== Returns === | === Returns === | ||
:;link : String - returns a string that will show as a clickable link to the item | :;link : String - returns a string that will show as a clickable link to the item | ||
== Example == | == Example == | ||
DEFAULT_CHAT_FRAME:AddMessage(GetMerchantItemLink(4)); | |||
===Result=== | |||
A clickable [[ItemLink|item link]] will appear in the default chat frame. | |||
Revision as of 23:25, 23 December 2006
← WoW API < GetMerchantItemLink
Returns a link to the indexed item in the merchant's inventory.
link = GetMerchantItemLink(index);
Parameters
Arguments
- index
- Integer - The index of the item in the merchant's inventory
Returns
- link
- String - returns a string that will show as a clickable link to the item
Example
DEFAULT_CHAT_FRAME:AddMessage(GetMerchantItemLink(4));
Result
A clickable item link will appear in the default chat frame.