Posso estar postando em local errado, me desculpem...
é o seguinte... criei uma spell e ela do o erro na distro...
unexpected symbol '=' is near to 'onCastSpell'
e ai a magia não presta queria que vc's corrigissem...
ai vai a magia:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, 4)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 8)
setCombatParam(combat1, COMBAT_PARAM_DISTANCE_EFFECT, 29)
setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 50, -70, 200, -180)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, 4)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 50)
setCombatParam(combat2, COMBAT_PARAM_DISTANCE_EFFECT, 29)
setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 50, -70, 200, -180)
arr1 = {
{1, 0, 0, 0, 1},
{0, 1, 1, 1, 0},
{0, 1, 3, 1, 0},
{1, 1, 1, 1, 0},
{1, 0, 0, 0, 1}}
arr2 = {
{1, 0, 0, 0, 1},
{0, 1, 1, 1, 0},
{0, 1, 3, 1, 0},
{1, 1, 1, 1, 0},
{1, 0, 0, 0, 1}}
setCombatArea(combat1, createCombatArea(area1))
setCombatArea(combat2, createCombatArea(area2))
funcion onCastSpell(cid, var)
addEvent(doCombat, 1, cid, combat1, var)
addEvent(doCombat, 2, cid, combat2, var)
return true
end
e a tag que eu uso:
<instant name="elemental earth attack" words="atari mas tera" lvl="50" mana="105" prem="0" range="3" casterTargetOrDirection="0" blockwalls="1" exhaustion="2000" groups="1" groupexhaustions="2000" icon="101" needlearn="0" event="script" value="attack/tera attack.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>