WoW:API GetMerchantItemLink: Difference between revisions
(Returns a link to the indexed item in the merchant's inventory) |
m (Move page script moved page API GetMerchantItemLink to API GetMerchantItemLink without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns a link to the indexed item in the merchant's inventory. | |||
link = GetMerchantItemLink(index); | link = GetMerchantItemLink(index); | ||
== Parameters == | |||
=== Arguments === | |||
:;index : Integer - The index of the item in the merchant's inventory | |||
=== Returns === | |||
:;[[itemLink]] : String - returns a string that will show as a clickable link to the item | |||
:;index : | |||
:; | |||
== Example == | |||
DEFAULT_CHAT_FRAME:AddMessage(GetMerchantItemLink(4)); | |||
===Result=== | |||
A clickable [[ItemLink|item link]] will appear in the default chat frame. | |||
Latest revision as of 04:46, 15 August 2023
← 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
- itemLink
- 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.