Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ToggleSpellBook

Last wiki revision 2010-10-30

ToggleSpellBook(bookType);

Shows/Hides the Spellbook.

  • bookType: string containing which spellbook to open. Valid choices are "spell", "pet", "general", "Mounts", "Companions", "Professions", or any spec name (e.g. "assasination", "fire", etc). Only "spell" and "pet" will open the full spellbook (with all the tabs to click on), the rest will open only that tab (with no tabs to click on).
  • nil

ToggleSpellBook("spell");

  • Shows the Spellbook. Equivalent to pressing 'P'. Note that if you do not have any pet spells, passing in "pet" will do nothing.
  • If you want to open the spellbook using Lua, don't use this, use instead.

Source

https://warcraft.wiki.gg/wiki/API_ToggleSpellBook · 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.