Kamss - 2008-03-21 21:05:58

W data/spells/scripts dodajemy plik exevo gran max frigo.lua i w nim piszemy:

-------------------------------------------------

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 52)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.1, -151, -1.7, -151)

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

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

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


-----------------------------------------------

A do data/spells/spells.xml dodajemy:

-----------------------------------------------

<instant name="exevo gran maX frigo" words="exevo gran max frigo" lvl="60" maglv="40" mana="1200" soul="0" exhaustion="1" prem="1" enabled="1" script="exevo gran max frigo.lua"><vocation id="1"/><vocation id="5"/><vocation id="2"/><vocation id="6"/></instant>

CZAR NIE JEST MÓJ ZNALAZŁEM GO NA INNYM FORUM !!!

www.fiz2011.pun.pl www.fizjoterapia07.pun.pl www.cs-biedronka.pun.pl www.sp1-gw.pun.pl www.kmboss18.pun.pl