Forum ProstoOTS

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


#1 2009-03-20 15:18:01

Constantine

Administrator

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

exevo gran mas suosu

data/spells/instant/robimy plik o nazwie exevo gran mas suosu.lua i wklejamy:

Spoiler:

    area = {
        {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
        {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},
        {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
        }

        attackType = ATTACK_PHYSICAL
        needDirection = false
        areaEffect = NM_ME_MORT_AREA
        animationEffect = NM_ANI_SUDDENDEATH

        hitEffect = NM_ME_MORT_AREA
        damageEffect = NM_ME_MORT_AREA
        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.3 - 40
            -- UltimateExplosionObject.maxDmg = (level * 3 + maglv * 4) * 4.0
        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

teraz data/spells/spells.xml i wklejamy :

Spoiler:

<spell name="exevo gran mas suosu"            words="exevo gran mas suosu"            maglv="45"    mana="1200"    enabled="1"><vocation id="1" /><vocation id="2" /></spell>

Ostatnio edytowany przez Constantine (2009-03-20 15:44:01)

Offline

 

#2 2009-03-20 17:32:03

Gazur

Administrator

Zarejestrowany: 2009-03-20
Posty: 2
Punktów :   

Re: exevo gran mas suosu

powiedz kiedy bedzie na otsie

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.sobolew-offroad.pun.pl www.forumgry.pun.pl www.mfporadnik.pun.pl www.graopokemon.pun.pl www.maxinf.pun.pl