ajuda meu spell que eu criei
ESTA DESCENTRALIZADO
\/ ERA PARA SER ASSIM:
{0,1,1,1,0},
{1,1,1,1,1},
{1,1,3,1,1},
{1,1,1,1,1},
{0,1,1,1,0}
mais ficou assim
{0,1,1,1,0},
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1},
{0,1,3,1,0},
{0,1,1,1,0},
{0,0,0,0,0}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BATS)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 20, 20, 19.5, 27)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -100)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
local area = createCombatArea(AREA_Quadras2X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
<instant name="Dark bats" words="exevo gran mas bat" lvl="8" mana="10" direction="1" prem="1" exhaustion="0" needlearn="0" event="script" value="attack/Dark bats.lua">
<vocation id="1"/>
<vocation id="5"/>
</instant>