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

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 19000)
setConditionFormula(condition, -0.9, -40, -0.9, -40)
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)
	return doCombat(cid, combat, var)
end
 
Try this

Change :

Code:
setConditionParam(condition, CONDITION_PARAM_TICKS, 19000)

to :

Code:
setConditionParam(condition, CONDITION_PARAM_TICKS, 50000)
 
I'm not sure but this
Lua:
setConditionFormula(condition, mina, minb, maxa, maxb)
should work like that
Code:
speed = speed * random(mina, maxa) - random(minb, maxb)
 
Thanks, but I dont want a random function.
New PARALYZE: If you get paralyzed you should get 50 as speed.
Old PARALYZE: When I paralyze someone who is lvl 200+ he has more movementspeed then a level 80 char.

I tried it but the low lvl char is always to slow like speed -50 and the high level char got 50 when they are paralyzed.

Regards
Black Pearl
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

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)
	setConditionFormula(condition, 0, -(getCreatureSpeed(cid) + 50), 0, -(getCreatureSpeed(cid) + 50))
	return doCombat(cid, combat, var)
end
 
Back
Top