WoW:API GameTooltip SetHyperlink

From AddOn Studio
Revision as of 21:46, 21 September 2005 by WoWWiki>Bdour (→‎Result)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

SetHyperlink( itemID );


Parameters

Arguments

itemID
string - a string representing an ingame item, i.e. "item:16846:0:0:0" is the link id for the Giantstalker's Helm

Returns

unknown, probably nil
If you attempt to reference an item that is not in your local cache, i.e. you've never seen it before, or you attempt to reference a nonexistent item the game will disconnect you. Guessing at this, untested.

Example

GameTooltip:SetHyperlink("item:16846:0:0:0");

Result

this will replace the currently showing tooltip with one containing the information for the Giantstalker Helm