Pro Warbringer
Retired with developing
Well here it is.
Exorimana.lua
Put in spells.xml
Hope it worked its my first!
Add me some rep if you feel like it
Kind Regard's,
Pro Warbringer
Exorimana.lua
Code:
area = {
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
}
attackType = ATTACK_MANADRAIN
needDirection = false
areaEffect = NM_ME_FIRE_AREA
animationEffect = NM_ANI_FIRE
hitEffect = NM_ME_FIRE_AREA
damageEffect = NM_ME_HITBY_FIRE
animationColor = BLUE
offensive = true
drawblood = false
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
UltimateManaDrainObject.minDmg = 0
UltimateManaDrainObject.maxDmg = 0
else
-- UltimateExplosionObject.minDmg = (level * 5 + maglv * 6) * 2.3 - 30
-- UltimateExplosionObject.maxDmg = (level * 5 + maglv * 6) * 3.0
UltimateManaDrainObject.minDmg = (level * 3 + maglv * 3) * 1.2
UltimateManaDrainObject.maxDmg = (level * 3 + maglv * 3) * 2.3
end
return 1
end
end
end
Put in spells.xml
Code:
<spell name="Exorimana" words="exorimana" maglv="8" mana="500" enabled="1"><vocation id="1" /></spell>
Hope it worked its my first!
Add me some rep if you feel like it
Kind Regard's,
Pro Warbringer
Last edited: