Hello
I've got a spell:
It paralysis target.
I want to add magic effect when target is paralyzed by this spell and it moves, the magic effect = id: 32 = appear on target with every move a paralyzed target
Anyone can do that ?
I've got a spell:
LUA:
local paralyze = createConditionObject(CONDITION_PARALYZE)
setConditionParam(paralyze, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(paralyze, -0.9, 0, -0.9, 0)
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_KIDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
function uf(cid, level, maglevel)
local min = -(level * 5)
local max = -(level * 5)
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "uf")
setCombatCondition(combat, paralyze)
AREA_UF = {
{0, 0, 3, 0, 0}
}
local area = createCombatArea(AREA_UF)
setCombatArea(combat, area)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
return true
end
It paralysis target.
I want to add magic effect when target is paralyzed by this spell and it moves, the magic effect = id: 32 = appear on target with every move a paralyzed target
Anyone can do that ?