Witam !
Aby doda? ten czar wchodzimy w plik otsa data/spells/scripts a nast?pnie
kopiujemy jaki? czar i zmieniamy jego nazw? na Song.Wchodzimy w Song.lua
i wklejamy to :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 23)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.8, -800, -2.2, -800)
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, 2, 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 nast?pnie zapisujemy.teraz wchodzimy notatnik i otwieramy plik otsa data/spells i otwieramy spells xml (oczywi?cie dajemy Wszystkie Pliki)
Wchodzimy na sam d?? instant spells i wklejamy t? linijk? :
<instant name="Song" words="song" lvl="50" maglv="5" mana="500" soul="0" exhaustion="1" prem="1" enabled="1" script="Song.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/><vocation id="7"/><vocation id="8"/><vocation id="3"/><vocation id="4"/></instant>
Je?li chcecie skryptera na Ots pisa? na GG : 10618623
Aby doda? ten czar wchodzimy w plik otsa data/spells/scripts a nast?pnie
kopiujemy jaki? czar i zmieniamy jego nazw? na Song.Wchodzimy w Song.lua
i wklejamy to :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 23)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.8, -800, -2.2, -800)
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, 2, 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 nast?pnie zapisujemy.teraz wchodzimy notatnik i otwieramy plik otsa data/spells i otwieramy spells xml (oczywi?cie dajemy Wszystkie Pliki)
Wchodzimy na sam d?? instant spells i wklejamy t? linijk? :
<instant name="Song" words="song" lvl="50" maglv="5" mana="500" soul="0" exhaustion="1" prem="1" enabled="1" script="Song.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/><vocation id="7"/><vocation id="8"/><vocation id="3"/><vocation id="4"/></instant>
Je?li chcecie skryptera na Ots pisa? na GG : 10618623