robertorb12
New Member
- Joined
- Jan 15, 2020
- Messages
- 65
- Reaction score
- 3
hello, my problem is that the paralyze rune does not remove the spell of utani tempo hur.
although it has a speed set if it goes down to the speed of 40. and even if it has utani hur, but if it has utani tempo hur it only lowers the speed to 300 of 750 that it had because the spell is not deactivated
here my script:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 20000)
condition:setFormula(-1, 40, -1, 40)
combat:addCondition(condition)
function onCastSpell(creature, var)
if not combat:execute(creature, var) then
return false
end
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
return true
end
im use tfs 1.3
although it has a speed set if it goes down to the speed of 40. and even if it has utani hur, but if it has utani tempo hur it only lowers the speed to 300 of 750 that it had because the spell is not deactivated
here my script:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 20000)
condition:setFormula(-1, 40, -1, 40)
combat:addCondition(condition)
function onCastSpell(creature, var)
if not combat:execute(creature, var) then
return false
end
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
return true
end
im use tfs 1.3