C_SpellBook. GetSpellBookItemType
functionimplementedavailable in: camelot
Returns the type of the entry in a spellbook slot and its IDs. · description by wowlua
function C_SpellBook.GetSpellBookItemType( spellBookItemSlotIndex: number, spellBookItemSpellBank: SpellBookSpellBank): (SpellBookItemType?, number?, number?)Parameters
| name | type | description |
|---|---|---|
spellBookItemSlotIndex | number | Spellbook slot index, ranging from 1 through the total number of spells across all tabs and pages |
spellBookItemSpellBank | SpellBookSpellBank | Which spellbook: the player's or the pet's. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | itemType | SpellBookItemType? | |
| 2 | actionID | number? | Represents a base spellID for spells, flyoutID for flyouts, or petActionID for pet actions |
| 3 | spellID | number? | May be nil if item is not a spell; Will be the overriding spellID if spell is overriden, otherwise will match actionID |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.