Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_EFFECT, 703, 1 ,0)
- setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
- local condition = createConditionObject(CONDITION_HASTE)
- setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
- setConditionFormula(condition, 0.85, 50, 0.85, 50)
- setCombatCondition(combat, condition)
- local combat2 = createCombatObject()
- setCombatParam(combat2, COMBAT_PARAM_EFFECT, 703, 1 ,0)
- setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
- local condition2 = createConditionObject(CONDITION_HASTE)
- setConditionParam(condition2, CONDITION_PARAM_TICKS, 33000)
- setConditionFormula(condition2, 1.3, 100, 1.4, 100)
- setCombatCondition(combat2, condition2)
- function onCastSpell(cid, var)
- doRemoveCondition(cid, CONDITION_PARALYZE)
- if getPlayerLevel(cid) <= 50 then
- doCreatureAddPercentHPMana(cid, 0.2, 0, true) -- 20%
- else
- doCreatureAddPercentHPMana(cid, 0.4, 0, true) -- 40%
- end
- return LUA_NO_ERROR
- end
- function onCastSpell(cid, var)
- doRemoveCondition(cid, CONDITION_PARALYZE)
- if getPlayerLevel(cid) <= 50 then
- doCombat(cid, combat, var, 0, true)
- else
- doCombat(cid, combat2, var, 0, true)
- end
- return LUA_NO_ERROR
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement