1º passo. Vá até "data\spells\instant" e copie algum arquivo LUA e renomeie p/ "protego master" em seguida abra-o e apague tudo que houver nele e coloque isto:
area = {
{1, 1, 1},
{1, 0, 1},
{1, 1, 1}
}
attackType = ATTACK_NONE
needDirection = false
areaEffect = NM_ME_MAGIC_ENERGIE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = ORANGE
offensive = false
drawblood = false
minDmg = 0
maxDmg = 0
WallofProtectionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
SubWallofProtectionObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, minDmg, maxDmg)
SubWallofProtectionObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
return doAreaGroundMagic(cid, centerpos, needDirection, areaEffect, area, WallofProtectionObject:ordered(),
0, 1, SubWallofProtectionObject1:ordered(),
5000, 5, SubWallofProtectionObject2:ordered(),
2, 50000, 2108, 1)
end
OBS: o ID 2108 é igual o da parede da runa de Magic Wall do ots 7.5 mas esta spell tbm serve em outros tipos de ots basta mudar o ID.
2º passo. Vá até "data\spells" e abra o arquivo "spells.xml" e coloque isto em spell Instant
<spell name="Master Wall of Protection" words="protego master" maglv="5" mana="300" enabled="1"><vocation id="1" /><vocation id="2" /><vocation id="3" /><vocation id="4" />
</spell>
Apos terminar, estara pronto sua Spell Protego Master
Comentem plx é meu 1 post aqui. :icon1: