Rah Vook - 2008-02-24 11:14:35

Do spells.xml dodajemy linijke:

<instant name="Exori Mas" words="exori mas" lvl="33" maglv="4" mana="160" exhaustion="1" prem="1" enabled="1" script="gs.lua"><vocation name="Knight"/><vocation name="Elite Knight"/></instant>

W spells\scripts tworzymy nowy plik o nazwie gs.lua i w nim dajemy to:


Kod:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 34)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -0.2, -20, -0.5, 0)

local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}

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

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

www.speedwaymenagzuzlowy.pun.pl www.tibiamaster.pun.pl www.mazdatuning.pun.pl www.tlumacz.pun.pl www.csbendusz.pun.pl