SI

Magias Rox

Por Sir'Falcon, 09 de jan. de 2007 em Globalevents e Spells

3
1.6k
Sir'FalconS
09 de janeiro de 2007 às 16:05

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

Editado Janeiro 10 por Sir&#39;Falcon

NekoN
09 de janeiro de 2007 às 16:45

gostei axo q eu vou add no meu ot axo q vai fica + movimenta parabens pelo seu trbalho

4 meses depois...
skynagerloasS
25 de maio de 2007 às 15:48

Tópico contendo somente 1 ou 2 Spells,

essa seção é para DataPacks com 3 ou mais Npcs,

~o{Tópico Movido}o~,

Abraços.