WoW:API GetMerchantItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Link to ItemLink rather than local example, itemlinks are somwhat volatile)
m (Move page script moved page API GetMerchantItemLink to API GetMerchantItemLink without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
:;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
:;[[itemLink]] : String - returns a string that will show as a clickable link to the item


== Example ==
== Example ==

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[edit]

Arguments[edit]

index
Integer - The index of the item in the merchant's inventory

Returns[edit]

itemLink
String - returns a string that will show as a clickable link to the item

Example[edit]

DEFAULT_CHAT_FRAME:AddMessage(GetMerchantItemLink(4));

Result[edit]

A clickable item link will appear in the default chat frame.