Auto-translated
UnitCastAimedSpell(unit, spell, target)
UnitCastGlobalSpell(unit, spell)
UnitCastAreaSpell(unit, spell, x, y)
commandDoSpecial(unit, ability, x, y)
unit - script name of the hero/creature using the ability or spell
spell - spell ID
target - script name of the target
ability - ability ID
x, y - position where the action will be directed