Lore archive · Warcraft Wiki, 2023 dump
API GetSpellBookItemName
Last wiki revision 2023-01-28
Returns the name of a spellbook item. spellName, spellSubName, spellID = GetSpellBookItemName(spellName) = GetSpellBookItemName(index, bookType)
- spellName: - Name of the spell as it appears in the spell book, e.g. "Lesser Heal"
- spellSubName: - The spell rank or sub type, e.g. "Grand Master", "Racial Passive". This can be an empty string. Note: for the Enchanting trade skill at rank Apprentice, the returned string contains a trailing space, i.e. "Apprentice ". This might be the case for other trade skills and ranks also. Not readily available on function call, see SpellMixin:ContinueOnSpellLoad
- spellID:
- This function will return nested flyout spells, but the names returned may not be functional (a hunter will see "Call " instead of "Call Pet 1" but "/cast Call " will not function in a macro or from the command line). Use care with the results returned.
- Spell book information is first available after the event fires.
Prints all spells in the spellbook for the player, except the profession tab ones.
Prints the spells shown in the profession tab.
Prints the spells shown in the pet tab.
Note that not all spells available from the API are shown in the spellbook.
Source
https://warcraft.wiki.gg/wiki/API_GetSpellBookItemName · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.