WoW:API GameTooltip SetHyperlink: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 15: | Line 15: | ||
: unknown, probably nil | : 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. | : 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. - Edit: You will not be disconnected, it will read the data from the server cache, but the requests seems to be limited to certain number per time. | ||
== Remarks == | == Remarks == |
Revision as of 18:20, 16 May 2006
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. - Edit: You will not be disconnected, it will read the data from the server cache, but the requests seems to be limited to certain number per time.
Remarks
- Calling this function with the same item which is currently shown, will close the Tooltip.
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