WoW API: GetSpellBookItemInfo

From AddOn Studio
Revision as of 01:50, 14 October 2010 by WoWWiki>Caytchen (firt)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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