• 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 Speedchange vs paralyze

Zoolek

Member
Joined
Jul 3, 2017
Messages
93
Solutions
1
Reaction score
11
How to make healing spells heal from "speedchange" ?
I dont like to make monster paralyze, prefer them to "speedchange" like this:
<attack name="speed" interval="1000" chance="90" range="7" speedchange="-600" duration="40000">


Tested it, but doesnt work:
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_SPEEDCHANGE)


Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.4, 0, 1.6, 0)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end [/lua]
 
Last edited by a moderator:
Make normal spell and under function onCastSpell... put
Lua:
doChangeSpeed(cid, getCreatureBaseSpeed(cid))
 
Back
Top