Widget API: GameTooltip:GetSpell

Revision as of 03:26, 7 May 2009 by WoWWiki>Joequincy (Created page with '{{widgetmethod}} <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> spellName, spellRank, spellID = ''GameTooltip'':...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← GameTooltip < GetSpell


spellName, spellRank, spellID = GameTooltip:GetSpell();

Returns the name and link of the item displayed on a GameTooltip.


Arguments
none

Returns
spellName, spellRank, spellID
spellName
Plain text spell name (e.g. "Explosive Shot").
spellRank
Plain text spell rank (e.g. "Rank 4").
spellID
Integer spell ID (e.g. "60053").