Wowpedia

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

READ MORE

Wowpedia
m (removed unncessary semicolons and fixed a minor mistake)
m (updated arguments to better fit the boilerplate)
Line 7: Line 7:
   
 
== Arguments ==
 
== Arguments ==
:("[[itemString]]" or "[[itemLink]]")
+
:("itemString" or "itemLink")
:;"[[itemString]]" - a string representing an in-game item or enchant. For instance:
+
:;"itemString" - [[itemString]] - Representing an in-game item or enchant. For instance:
 
:: "item:16846:0:0:0:0:0:0:0" is the link id for the "Giantstalker's Helm".
 
:: "item:16846:0:0:0:0:0:0:0" is the link id for the "Giantstalker's Helm".
 
:: "enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect".
 
:: "enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect".
:;"[[itemLink]]" - a clickable string of an in-game item.
+
:;"itemLink" - [[itemLink]] - A clickable string of an in-game item.
   
 
== Returns ==
 
== Returns ==

Revision as of 11:45, 6 May 2007

Changes the item which is displayed in the tooltip according to the passed argument.

GameTooltip:SetHyperlink("itemString" or "itemLink")


Arguments

("itemString" or "itemLink")
"itemString" - itemString - Representing an in-game item or enchant. For instance
"item:16846:0:0:0:0:0:0:0" is the link id for the "Giantstalker's Helm".
"enchant:23804" is the link id for "Enchant Weapon - Mighty Intellect".
"itemLink" - itemLink - A clickable string of an in-game item.

Returns

nil

Example

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

Result

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

Details

Calling this function with the same link which is currently shown, will close the Tooltip.
If you attempt to reference an item that is not in your local cache, i.e. you've never seen it before, the client will query the server for information about that item. If that particular item has not been seen since last server restart, the server will disconnect the client.
Calling this function with an enchant id that does not exist, will give the error message "Unknown link type".