WoW:API GetMerchantItemLink: Difference between revisions
Jump to navigation
Jump to search
GetMerchantItemLink -Documentation by Fenaoin-
Last updated: Patch 1.6.1
mNo edit summary |
mNo edit summary |
||
Line 34: | Line 34: | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|GetMerchantItemLink]] | |||
[[Category:API Item Functions|GetMerchantItemLink]] | [[Category:API Item Functions|GetMerchantItemLink]] | ||
[[Category:API Merchant Functions|GetMerchantItemLink]] |
Revision as of 18:29, 29 August 2005
Returns a link to the indexed item in the merchant's inventory.
link = GetMerchantItemLink(index);
Parameters
Arguments
- (index)
- index
- Integer - The index of the item in the merchant's inventory
Returns
- Returns
- link
- link
- String - returns a string that will show as a clickable link to the item
Example
local link = GetMerchantItemLink(4); DEFAULT_CHAT_FRAME:AddMessage(link);
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