Forum o ZiutekOTS.
ok daje ci skrypcik; pierw do data/spells/scripts:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -300, -1.7, 0)
local arr = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 1, 0},
{0, 3, 0},
}
local arrDiag = {
{1, 1, 1, 0, 0},
{1, 1, 0, 0, 0},
{1, 0, 1, 0, 0},
{0, 0, 0, 1, 0},
{0, 0, 0, 0, 3},
}
local area = createCombatArea(arr, arrDiag)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
potem w spells.xml :
<instant name="Streath" words="streath" direction="1" lvl="150" maglv="100" mana="2000" soul="0" exhaustion="1" prem="1" enabled="1" learnable="0" script="streath.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/></instant>
--tu mozesz se konfigurowac jak chcesz --
Offline