Hello ppl i've tried to change area effect in tfs 0.4 but it doesn't work :/ I had no idea what is wrong. The code is here
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 60, 90, 160, 90)
setCombatArea(combat9_Brush,createCombatArea({{0, 1, 0, 1, 0, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 2, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 0, 1, 0, 1, 0}}))
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end