In the next few weeks, your wiki will be migrated to a Fandom.com domain. Learn more here.

CastSpellByName

Casts the specified spell.

CastSpellByName("spellName"[, "target"]) 

Arguments

name 
String - Name of the spell to cast, e.g. "Alchemy".
target 
String - unit to cast the spell on. If omitted, "target" is assumed for spells that require a target.

Details

  • You can still use this function to open trade skill windows and to summon mounts even from a tainted execution path.

Patch history

Bc icon.gif Patch 2.0.1 (2006-12-05): Protected.
Community content is available under CC BY-SA 3.0 unless otherwise noted.