Forum ProstoOTS

Forum dla serwera tibi ProstoOTS htttp://prostoots.mine.nu


#1 2009-03-20 14:20:28

Constantine

Administrator

7113631
Skąd: Katowice
Zarejestrowany: 2009-03-20
Posty: 13
Punktów :   

zengetsu

data/spells/instant/ tworzymy plik o nazwie zengetsu zis.lua i wklejamy:

    Spoiler:

    area = {
        {1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1},
        {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
        {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
        {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
        {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
        {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1},
        {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
        {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
        {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
        {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
        {1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1},
        }

        attackType = ATTACK_ENERGY
        needDirection = false
        areaEffect = NM_ME_ENERGY_AREA
        animationEffect = NM_ANI_NONE

        hitEffect = NM_ME_EXPLOSION_DAMAGE
        damageEffect = NM_ME_ENERGY_DAMAGE
        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 * 3 + maglv * 4) * 3.4 - 43
            -- UltimateExplosionObject.maxDmg = (level * 3 + maglv * 4) * 4.4
        UltimateExplosionObject.minDmg = (level * 2.5 + maglv * 2.5) * 2.2
        UltimateExplosionObject.maxDmg = (level * 2.5 + maglv * 2.5) * 3.3
        end

        return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
        end

data/spells/spells.xml i wklejamy :

<spell name="zengetsu zis"            words="zengetsu zis"            maglv="15"    mana="270"    enabled="1"><vocation id="3" /></spell>

Ostatnio edytowany przez Constantine (2009-03-20 14:43:17)

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi

[ Generated in 0.090 seconds, 11 queries executed ]


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.gangmw.pun.pl www.rlcforumpl.pun.pl www.pysiolandia-minecraft.pun.pl www.lumiraots.pun.pl www.wsti.pun.pl