Acabei de criar minha primeira magia dêem uma olhada e falem se ficou boa e etc.
Aki vai ela:
Crie um bloco chamada explosion em Pasta do seu ot/data/spells/instant e coloque issu dentro dele.
area = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
{1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1},
{0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
attackType = ATTACK_PARALYZE
needDirection = false
areaEffect = NM_ME_HIT_AREA
animationEffect = NM_ANI_ENERGY
hitEffect = NM_ME_POISEN
damageEffect = NM_ME_PUFF
animationColor = DARK_BLUE
offensive = true
drawblood = true
SpellObject = 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}
SpellObject.minDmg = 10000
SpellObject.maxDmg = 20000
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, SpellObject:ordered())
end
_________________________________________________________________
Depois dissu vai em Pasta do Ot/data/spells/spells.xml e edite e colke issu em instant:
<spell name="explosao total" words="explosion" maglv="100" mana="5000" enabled="1"><vocation id="1" /><vocation id="2" /></spell>
depois eh so aproveitar!!!!!
By ME