Ir para conteúdo

Posts Recomendados

Galera tava sem nada pra fazer e resolve fazer 2 magias rox.

 

Aki vai a 1ª:

Nome: Super LOL

 

----- Super LOL 100% By Sir Falcon -----

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

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

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

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

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

 

hitEffect = NM_ME_ENERGY_DAMAGE

damageEffect = NM_ME_ENERGY_AREA

animationColor = LIGHT_BLUE

offensive = true

drawblood = true

 

magia = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onCast(cid, CreateurePos, level, maglv, var)

centerpos = {x=CreateurePos.x, y=CreateurePos.y, z=CreateurePos.z}

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

if n ~= nil then

-- bugged

-- magia.minDmg = var+0

-- magia.maxDmg = var+0

 

magia.minDmg = 10

magia.maxDmg = 25

else

magia.minDmg = (level * 1 + maglv * 1) * 1.2

magia.maxDmg = (level * 1 + maglv * 1) * 2

end

 

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

end

 

Agora vamos para a Tag:

 

<spell name="Super LOL" words="super lol" maglv="10" mana="100" enabled="1"><vocation id="1" /></spell>

 

-----------------------------------------------------------------------------------------------

 

Segunda Magia:

Nome: Sorc Exori

 

----- Sorc Exori 100% By Sir Falcon -----

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

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

{0, 0, 0, 0, 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, 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_ME_MAGIC_ENERGIE

 

hitEffect = NM_ME_ENERGY_DAMAGE

damageEffect = NM_ME_ENERGY_AREA

animationColor = LIGHT_BLUE

offensive = true

drawblood = true

 

magia = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onCast(cid, CreateurePos, level, maglv, var)

centerpos = {x=CreateurePos.x, y=CreateurePos.y, z=CreateurePos.z}

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

if n ~= nil then

-- bugged

-- magia.minDmg = var+0

-- magia.maxDmg = var+0

 

magia.minDmg = 0

magia.maxDmg = 0

else

magia.minDmg = (level * 1 + maglv * 1) * 2.2

magia.maxDmg = (level * 1 + maglv * 1) * 3.0

end

 

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

end

 

Agora Vamos A Tag:

 

<spell name="Sorc Exori" words="sorc exori" maglv="10" mana="100" enabled="1"><vocation id="1" /></spell>

 

-----------------------------------------------------------------------------------------------

 

Bom Galera é isso e espero q tenham gostado, respondam pelo menos por consideração.

FLWS

Link para o comentário
https://xtibia.com/forum/topic/38248-magias-rox/
Compartilhar em outros sites

  • 4 months later...
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...