Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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

The item from slot four's name will appear in the chat window in brackets. Clicking on it will open a small window with information about the item. An example of the string itself looks like this:

|cffffffff|Hitem:3771:0:0:0|h[Wild Hog Shank]|h|r
Advertisement