• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Talkaction

squall14

New Member
Joined
Dec 28, 2007
Messages
34
Reaction score
0
I would like to know how to activate a talkaction while casting a spell, here is my code
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:
Back
Top