WoW:API SetItemRef

Revision as of 15:09, 19 April 2006 by WoWWiki>Kaso
SetItemRef -Documentation by Deathshadow-

Handles Links in Chat, orginally just Itemlinks but now also handles PlayerLinks.

SetItemRef(link, text, button);

Parameters

Arguments

link
String - Link to Use, (eg 'item:3577:0:0:276308480' is a [Gold Bar], 'player:Kaso' is [Kaso]).
text
String - The Text of the link, including Text Colour Infomation and itemlinks (eg The previous two examples :
'|cff1eff00|Hitem:3577:0:0:276308480|h[Gold Bar]|h|r'
'|Hplayer:Kaso|h[Kaso]|h'
button
String - The button used to click the notes 'LeftButton' or 'RightButton' Apparently, See Notes.

Returns

Returns nil

Notes

This function is affected by ShiftKey, Ctrl Key and Depending On button Variable as shown in the following table:

Ctrl Key Shift Key None

Left Button Right Button Left Button Right Button Left Button Right Button
Player Link # # Send Player /who Send Player /who Open Tell Open Drop Down Tooltip
Item Link Show Dressing Room For Item Show Dressing Room For Item Link Item in Chat Link Item in Chat Show ItemRefToolTip Show ItemRefToolTip


Last updated: Patch 1.10.1

Template:WoW API