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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.1
max = (level * 2 + maglevel * 3) * 2.5
if min < 250 then
min = 250
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
if exhaustion.check(cid, 30030) then
doPlayerSendCancel(cid, "You are exhausted.")
else
exhaustion.set(cid, 30030, 1)
return doCombat(cid, combat, var)
end
end
I put a paralyze rune and went to test it, I cast the paralyze spell on the player, but he can't walk or move at all. It got stuck in place. I already tried using "uh", "exura vita", etc., but nothing removes the "condition_paralyze" state, hahah... Could it be a bug in the game?setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
so you leave him very close to zero speed or less than zero, this is impossible to walk, his paralyze will only be removed when the character complete the movement towards the sqm you walked!I put a paralyze rune and went to test it, I cast the paralyze spell on the player, but he can't walk or move at all. It got stuck in place. I already tried using "uh", "exura vita", etc., but nothing removes the "condition_paralyze" state, hahah... Could it be a bug in the game?
There I add this that was in the Exura Vita and it worked! Tyso you leave him very close to zero speed or less than zero, this is impossible to walk, his paralyze will only be removed when the character complete the movement towards the sqm you walked!
function onCastSpell(cid, var)
if exhaustion.check(cid, 30030) then
doPlayerSendCancel(cid, "You are exhausted.")
else
exhaustion.set(cid, 30030, 1)
doRemoveCondition(cid, CONDITION_PARALYZE)
return doCombat(cid, combat, var)
end
end