• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua I NEED MAGIC PARALIZE FOR YUROTS 7.6 XML

VagosClubTM

Active Member
Joined
Aug 16, 2019
Messages
219
Reaction score
32
Location
Chile
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
 
Back
Top