Ola Gente Do Xtibia quero cria magias novas para meu ot serv entao nao sei onde boto as coisas sempre quando faço da erro entao quero q vcs me ajudem
Aonde Boto Isso: local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ANI_NONE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)
setCombatFormula(combat, COMBAT_FORMULA_UNDEFINED, 500, 500, 1000, 1000)
local arr= {
{1,0,0,0,0,0,0,0,0,0,1},
{0,1,0,0,0,0,0,0,0,1,0},
{0,0,1,1,1,1,1,1,1,0,0},
{0,0,0,1,1,1,1,1,0,0,0},
{0,0,0,1,1,1,1,1,0,0,0},
{0,0,0,1,1,2,1,1,0,0,0},
{0,0,0,1,1,1,1,1,0,0,0},
{0,0,0,1,1,1,1,1,0,0,0},
{0,0,1,0,0,0,0,0,1,0,0},
{0,1,0,0,0,0,0,0,0,1,0},
{1,0,0,0,0,0,0,0,0,0,1},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid,
combat, var)
end
E Aonde Boto Isso: <instant name="Morre Porra" words="Morre Porra" aggressive="1" lvl="450" maglv="2" mana="100" soul="10" needtarget="0" direction="0" exhaustion="0" prem="0" enabled="1" needlearn="0" script=".lua"><vocation name="Elite Knight"/></instant>