API GameTooltip SetSpellBookItem

Shows the tooltip for the specified spell. GameTooltip:SetSpellBookItem(spellBookId, bookType);

Arguments

 * spellBookId: Number - the id of the spell on the tab from the spellbook - not the same as SpellId
 * bookType: String - Either BOOKTYPE_SPELL ("spell") or BOOKTYPE_PET ("pet").

Details

 * Find the spellBookId as follows:

local i = 1 while true do   local spell = GetSpellBookItemName(i, BOOKTYPE_SPELL) if (not spell) then break end DEFAULT_CHAT_FRAME:AddMessage(i..": "..spell) i = i + 1 end

Returns

 * unknown

Examples
GameTooltip:SetSpellBookItem(46, BOOKTYPE_SPELL)