VagosClubTM
Active Member
Hello friends, I would like to find the magic paralize for 7.6 xml. I will leave you below the formula of the spells, it would be great if you could help me with this.
Lua:
area = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1},
{1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1},
{1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1},
{1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1},
{1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1},
{1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1},
{1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1},
{1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1},
{1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
attackType = ATTACK_PARALYZE
needDirection = false
areaEffect = NM_ME_ENERGY_AREA_MERLIN_PARALIZE
animationEffect = NM_ME_ENERGY_AREA_MERLIN_PARALIZE
hitEffect = NM_ME_ENERGY_AREA_MERLIN_PARALIZE
damageEffect = NM_ANI_SUDDENDEATH
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 * 2 + maglv * 3) * 10.0
UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 12.0
end
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
end