Hello
My healing spells doesn't remove paralyze from monsters. I've searched the forum but I didn't find anything helpfull.
My first thought was that the healing-spell-script didn't contain a remove paralyze function, but it did.
So I'm thinkin that maybe the monsters are using the wrong spell? Is the attack name suppose to be "Speed" or should it be "paralyze"?
Here is the light-healing script:
And here is the attack spell monsters use:
I would be so thankful if someone could help me!
//Ferion
My healing spells doesn't remove paralyze from monsters. I've searched the forum but I didn't find anything helpfull.
My first thought was that the healing-spell-script didn't contain a remove paralyze function, but it did.
So I'm thinkin that maybe the monsters are using the wrong spell? Is the attack name suppose to be "Speed" or should it be "paralyze"?
Here is the light-healing script:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
local min = ((level/5)+(maglevel*1.5))
local max = ((level/5)+(maglevel*2))
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
And here is the attack spell monsters use:
Code:
<attack name="speed" interval="2000" chance="18" range="7" speedchange="-600" duration="5000">
I would be so thankful if someone could help me!
//Ferion