Brad
Mapper
Whenever i put in a custom spell
Like this
the spell has NO exhaust. I put it in as exori con
And ALL other spells work perfectly.
But yet normal players can spam it AND the name of the spell doesn't appear when they use it. =\ Any help would be nice
Btw I'm using The Forgotten Server 0.3.6pl1 (Crying Damson)
Like this
Code:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 9)
setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 1.0, -900, 3.2, -1100)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 9)
setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 1.0, -900, 3.2, -1100)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }
addEvent(onCastSpell1, 500, parameters)
addEvent(onCastSpell2, 1000, parameters)
end
the spell has NO exhaust. I put it in as exori con
And ALL other spells work perfectly.
Code:
<instant name="Ethereal Spear" words="exori con" lvl="23" mana="25" prem="1" range="5" needtarget="1" exhaustion="2000" blockwalls="1" needlearn="0" event="script" value="attack/ethereal spear.lua">
<vocation id="3"/>
<vocation id="7"/>
</instant>
But yet normal players can spam it AND the name of the spell doesn't appear when they use it. =\ Any help would be nice
Btw I'm using The Forgotten Server 0.3.6pl1 (Crying Damson)