arti1194
New Member
- Joined
- Jun 6, 2009
- Messages
- 96
- Reaction score
- 3
Hi, I need paralyze delay like in real tibia.
This script Spell - Paralyze Rune (just like in RL), delay added is fail because i don't have data.lua
Maybe if player is paralyze then can't cast spells for 1,5 second? Is this posible to write in lua?
tfs 0.4 3777
paralyze rune.lua
Thanks
This script Spell - Paralyze Rune (just like in RL), delay added is fail because i don't have data.lua
Maybe if player is paralyze then can't cast spells for 1,5 second? Is this posible to write in lua?
tfs 0.4 3777
paralyze rune.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -1, 80, -1, 80)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Thanks