• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Paralyze rune

Apoccalypse

New Member
Joined
Apr 15, 2017
Messages
114
Solutions
2
Reaction score
4
Hi guys,
I wonder is it possible to make paralyze rune to last at least 500-750 ms even if anyone used haste or healing spell right after being paralyzed?
I am thinking about either making something in paralyze rune script what will block removing the condition by the time or to add any delay in removing the condition to the haste and healing spells?
 
Well I can't think of a healthy way to achieve what you want. At least not in a simple mannor. What you could do is making the paralyzed target exhausted for x time. But then he can't use any spell/rune during that time, and you want the paralyze just to not be disspelled for x time?
 
I want paralyze to not be disspelled by x time.

I made something like this:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -1, 40, -1, 40)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
local paradelay = 2000
local target = getCreatureTarget(cid)
 
  return doCombat(cid, combat, var), exhaustion.set(target, 30030, paradelay/1000), doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
  end

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)

function onCastSpell(cid, var)
 
        if exhaustion.check(cid, 30030) then
            return FALSE
        else
            return doAddCondition(cid, condition), doCombat(cid, combat, var)
        end
end

Presently right after using paralyze rune by x char, char y can instanly use haste spell to remove paralyze condition.
The problem is I think that paralyze rune does not set the storage 30030 on a target.
If anyone could help me to cope with it that would be great :)
 
Last edited:
Back
Top