Lore archive · Warcraft Wiki, 2023 dump
API SetItemRef
Last wiki revision 2010-06-06
Called to handle clicks on Blizzard hyperlinks in chat. SetItemRef(link, text, button);
- link : String - Link to Use, (eg 'item:3577:0:0:0:0: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:0:0: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.
- Do not insecurely hook this function to add your own link types; hook (frame, link, text, button) instead. Hooking this function insecurely will end up tainting Blizzard's combat log, which will taint UIParent's update routines and result in "action has been blocked" messages.
- This function is affected by Shift and Ctrl keys, and depends on what is being clicked, according to the below table:
Source
https://warcraft.wiki.gg/wiki/API_SetItemRef · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.