Zoolek
Member
- Joined
- Jul 3, 2017
- Messages
- 93
- Solutions
- 1
- Reaction score
- 11
Hey i want paralyze rune work as "speedchange -500" instaed of "paralyze"
just like monsters example:
I want something like this:
<attack name="speed" interval="1000" chance="8" target="1" speedchange="-500" duration="60000"> -- something like this i want
This V suck:
<attack name="paralyze" interval="3000" chance="40" target="1">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
I found something like this but doesnt work:
just like monsters example:
I want something like this:
<attack name="speed" interval="1000" chance="8" target="1" speedchange="-500" duration="60000"> -- something like this i want
This V suck:
<attack name="paralyze" interval="3000" chance="40" target="1">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
I found something like this but doesnt work:
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
Last edited: