Relix - 2009-03-15 13:19:08

Eloo mam do zaprezentowania spell który wali dookoła nas stzałami. Jest on dla paladyna 45lvl+ i zabiera 500 many. Silny coś jak Hell's Core (exevo gran mas flam). A więc tak:
Najpierw w data/spells/scripts robimy plik Arrow Rain a  w nim:

Spoiler:


    -- Arrow Rain --
    local acombat = createCombatObject()
    local combat = createCombatObject()
    setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat, COMBAT_PARAM_EFFECT, 255)
    setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 2)
    setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.8, -120, -1.5, -120)

    local arr = {
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 1, 1, 1, 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, 3, 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, 1, 1, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
    }

    local area = createCombatArea(arr)
    setCombatArea(acombat, area)

    function onTargetTile(cid, pos)
        doCombat(cid,combat,positionToVariant(pos))
    end

    setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

    function onCastSpell(cid, var)
        return doCombat(cid, acombat, var)
    end

Potem w data/spells/spells.xml dodajemy linijke:


Spoiler:


    <instant name="Arrow Rain" words="exevo con hur" lvl="45" maglv="16" mana="500" soul="0" exhaustion="0" prem="1" enabled="1" script="arrow rain.lua"><vocation id="3"/><vocation id="7"/></instant>

skrypt nie mój

przegrywanie kaset vhs łódz ekogroszek mikołów