Sir'Falcon 0 Postado Janeiro 9, 2007 Share Postado Janeiro 9, 2007 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 More sharing options...
Neko 0 Postado Janeiro 9, 2007 Share Postado Janeiro 9, 2007 gostei axo q eu vou add no meu ot axo q vai fica + movimenta parabens pelo seu trbalho Link para o comentário https://xtibia.com/forum/topic/38248-magias-rox/#findComment-215828 Compartilhar em outros sites More sharing options...
skynagerloas 1 Postado Maio 25, 2007 Share Postado Maio 25, 2007 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. Link para o comentário https://xtibia.com/forum/topic/38248-magias-rox/#findComment-305461 Compartilhar em outros sites More sharing options...
Posts Recomendados