I would like to know how to activate a talkaction while casting a spell, here is my code
lead is the talkaction, it works but the talkaction dosent activate
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.8, 0, 1.6, 0)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onCastSpell(cid, var)
getPlayerPosition(cid)
doCreatureSay(cid, "lead", 1)
return doCombat(cid, combat, var)
end
lead is the talkaction, it works but the talkaction dosent activate
Last edited: