Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is protected.
|
Casts the specified spell.
CastSpell(spellIndex, "spellbookType")
Arguments
- spellIndex
- Number - index of the spell to cast.
- spellbookType
- String - spellbook to cast the spell from; one of
- BOOKTYPE_SPELL ("spell") for player spells
- BOOKTYPE_PET ("pet") for pet abilities
Details
- This function cannot be used from insecure execution paths except to "cast" trade skills (e.g. Cooking, Alchemy).
Patch history
Patch 2.0.1 (2006-12-05): Protected.