→ WoW API
|This function is protected, and cannot be called from insecure code while in in combat.
Picks up a skill from spellbook so that it can subsequently be placed on an action bar.
PickupSpellBookItem(spellName or index, "bookType")
- String - The name of the spell you want to query
- Number - Spellbook slot index to pick up the spell from.
- String - Spell book type; one of the following global constants:
- BOOKTYPE_SPELL ("spell")
- BOOKTYPE_PROFESSION ("professions")
- BOOKTYPE_PET ("pet")
The following sequence of macro commands places the Cat Form ability into the current action bar's first slot.
/run PickupSpellBookItem("Cat Form") /click ActionButton1 /run ClearCursor()