API GetSpellBookItemInfo

Retrieves information about a specific spellbook item. skillType, special = GetSpellBookItemInfo(spellName) = GetSpellBookItemInfo(index, bookType)

Arguments

 * spellName : - The localized name of the spell to query.


 * index : - The index into the spellbook.
 * bookType: string -  or   depending on if you wish to query the player or pet spellbook. Internally the game only tests if this value is equal to   and treats any other string value as "spell"

Returns

 * skillType : - The type of the spell (SPELL, FUTURESPELL, PETACTION, FLYOUT).
 * special :
 * For SPELL and FUTURESPELL, the SpellID used in
 * For PETACTION, the ActionID used in ; furthermore, the SpellID can be obtained by applying the bitmask 0xFFFFFF.
 * For FLYOUT, the FlyoutID used in

Example
Prints all spells in the spellbook for the player, except the profession tab ones.