Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 4.0.1 / 1.13.2

Picks up a skill from spellbook so that it can subsequently be placed on an action bar.

PickupSpellBookItem(spellName or index, "bookType")

Arguments

spellName
String - The name of the spell you want to query

or

index 
number - Spellbook slot index to pick up the spell from.
bookType 
string - Spell book type; one of the following global constants:
  • BOOKTYPE_SPELL ("spell")
  • BOOKTYPE_PROFESSION ("professions")
  • BOOKTYPE_PET ("pet")

Example

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()

Patch history

Cataclysm Patch 4.0.1 / API (2010-10-12): Original PickupSpell syntax renamed to PickupSpellBookItem.

Advertisement