GetSpellBookItemInfo

From Wowpedia
Jump to: navigation, search

Retrieves information about a specific spellbook item.

skillType, special = GetSpellBookItemInfo(spellName)
                   = GetSpellBookItemInfo(index, bookType)

Arguments

spellName 
string - The localized name of the spell to query.

or

index 
number - The index into the spellbook.
bookType 
string - Spell book type. Although intended to be BOOKTYPE_PET ("pet") or BOOKTYPE_SPELL ("spell"), the game currently only tests if this value is equal to "pet" and treats any other value as "spell".

Returns

skillType 
string?Optional. Could be nil. - The type of the spell (SPELL, FUTURESPELL, PETACTION, FLYOUT).
special 
number?Optional. Could be nil.
  • For SPELL and FUTURESPELL, the SpellID used in GetSpellInfo(spellID)
  • For PETACTION, the ActionID used in C_ActionBar.HasPetActionButtons(petActionID); furthermore, the SpellID can be obtained by applying the bitmask 0xFFFFFF.
  • For FLYOUT, the FlyoutID used in GetFlyoutInfo(flyoutID)

Details

  • If nothing is found or invalid parameters were supplied, nil is returned.

External links