Retrieves information about a specific SpellBook item


See also Spell functions.

Signature:

skillType, spellId = GetSpellBookItemInfo(index, "bookType") or GetSpellBookItemInfo("spellName")

Arguments:

  • index - Index of a spell in the spellbook (number, spellbookID)

  • bookType - Type of spellbook (string)

    • pet - The pet's spellbook
    • spell - The player's spellbook

  • spellName - Name of a spell to query (string)

Returns:

  • skillType - The type of the spell (known values: 'SPELL', 'PETACTION', 'FUTURESPELL', 'FLYOUT' (string)
  • spellId - The global spell id (number)