• 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!

Slow Rune Help

JohnColner

New Member
Joined
Mar 16, 2013
Messages
23
Reaction score
1
I'm trying to make a rune to slow down the player attacked by it for 3 seconds without utani hurting the effect, could someone help me? dry my test.

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 12)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 19000)

setCombatCondition(combat, condition)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 20000)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

function onCastSpell(cid, var)
addEvent(getCreatureBaseSpeed(cid,-160))
    return doCombat(cid, combat, var)
end
 
In your haste spells check for the condition of CONDITION_PARALYZE with the sub id of that condition and return false if the player has the condition.
 
Back
Top