WoW API: GetSpellBookItemInfo
Synopsis
Retrieves information about a specific SpellBook item
skillType, spellId = GetSpellBookItemInfo(spellName)
or
skillType, spellId = GetSpellBookItemInfo(index, target)
Arguments
- spellName
- String - The name of the spell you want to query
- index
- Number - The index into the spellbook
- target
- String - keyword e.g. "player" or "pet"
Returns
- skillType
- String - The type of the spell (known values: "SPELL", "PETACTION", "FUTURESPELL", "FLYOUT")
- spellId
- Number - The global spell id
If nothing is found or invalid parameters were supplied, nil is returned