Exeta Res Tutorial!
1* Vai na pasta data/spells/instant/ copie e cole um arquivo.lua
2*Abra ele apague tudo o que tem escrito, e cole:
area = {{0, 1, 1, 1, 0},
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0}
}
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
needDirection = false
areaEffect = NM_ME_MAGIC_BLOOD
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_BLOOD
animationColor = RED
offensive = false
drawblood = false
EnergieObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
ret = doAreaMagic(cid, centerpos, needDirection, areaEffect, area, EnergieObject:ordered())
if (ret) then
challenge(cid)
end
return ret
end
3* Vá na pasta spells e abra o arquivo spells.xml
e Add isso nos Spells
<spell name="challenge" words="exeta res" maglv="5" mana="90" enabled="1"><vocation id="4" /></spell>
Está Pronto!
Espero ter Ajudado.