v0.13.8

C_SpellBook.GetSpellBookItemType

functionimplementedavailable in: camelot

Returns the type of the entry in a spellbook slot and its IDs. · description by wowlua

signaturewowlua
function C_SpellBook.GetSpellBookItemType(    spellBookItemSlotIndex: number,    spellBookItemSpellBank: SpellBookSpellBank): (SpellBookItemType?, number?, number?)

Parameters

nametypedescription
spellBookItemSlotIndexnumberSpellbook slot index, ranging from 1 through the total number of spells across all tabs and pages
spellBookItemSpellBankSpellBookSpellBankWhich spellbook: the player's or the pet's.

Returns

#nametypedescription
1itemTypeSpellBookItemType?
2actionIDnumber?Represents a base spellID for spells, flyoutID for flyouts, or petActionID for pet actions
3spellIDnumber?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 ↗.