Ir para conteúdo
Entre para seguir isso  
SlipknOtxt

Outra magia q eu esqueci de por

Recommended Posts

SlipknOtxt    0
SlipknOtxt

Primeiro passo :

 

Vá em data/spells/instant , crie um arquivo e dentro coloque :

 

area = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},

{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},

{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},

{0, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

attackType = ATTACK_ENERGY

needDirection = false

areaEffect = NM_ME_ENERGY_AREA

animationEffect = NM_ANI_NONE

 

hitEffect = NM_ME_EXPLOSION_AREA

damageEffect = NM_ME_ENERGY_AREA

animationColor = RED

offensive = true

drawblood = true

 

UltimateExplosionObject = 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}

n = tonumber(var) -- try to convert it to a number

if n ~= nil then

-- bugged

-- ultimateExplosionObject.minDmg = var+0

-- UltimateExplosionObject.maxDmg = var+0

 

UltimateExplosionObject.minDmg = 0

UltimateExplosionObject.maxDmg = 0

else

-- UltimateExplosionObject.minDmg = (level * 6 + maglv * 4) * 3.3 - 30

-- UltimateExplosionObject.maxDmg = (level * 6 + maglv * 4) * 6.0

UltimateExplosionObject.minDmg = (level * 4.0 + maglv * 4.0) * 5.0

UltimateExplosionObject.maxDmg = (level * 4.0 + maglv * 4.0) * 6.0

end

 

return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())

end

 

 

 

SEGUNDO PASSO :

 

Vá em data/spells/ spells.xml

 

Coloque lá :

 

 

<spell name="Ultimate power" words="ultimate power" maglv="70" mana="2000" enabled="1" premium="0"><vocation id="1" /><vocation id="2" /></spell>

 

 

ESPERO QUE GOSTEM !!!

Compartilhar este post


Link para o post
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×