Fragdonut
Banned User
Hello!
I got a trouble with a spell, I want this spell to have 10 seconds exhaustion however I got exhaust="10000" on the spell in xml, but this makes all spells exhaustion to 10 seconds.
example:
I cast the spell.
then i cant do any spells on 10 seconds =S
So is there any other solution for this
?
here's the scripts:
I got a trouble with a spell, I want this spell to have 10 seconds exhaustion however I got exhaust="10000" on the spell in xml, but this makes all spells exhaustion to 10 seconds.
example:
I cast the spell.
then i cant do any spells on 10 seconds =S
So is there any other solution for this
here's the scripts:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 25)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.80, 0, -0.95, 0)
local distanceCombat = createCombatObject()
setCombatParam(distanceCombat, COMBAT_PARAM_TYPE, 1)
setCombatParam(distanceCombat, COMBAT_PARAM_EFFECT, 0)
setCombatParam(distanceCombat, COMBAT_PARAM_DISTANCEEFFECT, 25)
setCombatFormula(distanceCombat, COMBAT_FORMULA_LEVELMAGIC, -0.80, 50, -0.95, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid,distanceCombat, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell1, 1000, parameters)
addEvent(onCastSpell1, 2000, parameters)
addEvent(onCastSpell1, 3000, parameters)
addEvent(onCastSpell1, 4000, parameters)
addEvent(onCastSpell1, 5000, parameters)
addEvent(onCastSpell1, 6000, parameters)
addEvent(onCastSpell1, 7000, parameters)
addEvent(onCastSpell1, 8000, parameters)
addEvent(onCastSpell1, 9000, parameters)
addEvent(onCastSpell1, 10000, parameters)
return TRUE
end