Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
Paralyze rune
I want the paralyze rune to only work if your target has exhaustion id 1020.
PHP:
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, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
if(not doCombat(cid, combat, var)) then
return false
end
doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
return true
end
I want the paralyze rune to only work if your target has exhaustion id 1020.
PHP:
if(isPlayer(cid)) and exhaustion.check(cid, 1020) then
Last edited: