Wszystko o OTS
Jest to podobny czar do "Exana Pox" lecz leczy porażenie prądem.
Tworzymy plik :
data/spells/scripts/energy.lua i wklejamy to:
Spoiler:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_ENERGY)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I w data/spells/spells.xml dodajemy linijkę:
Spoiler:
<instant name="Energy" words="exana energy" selftarget="1" aggressive="0" lvl="10" maglv="2" mana="30" soul="0" exhaustion="1" prem="0" enabled="1" script="fire.lua"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/></instant>
Offline