Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = Combat()
- combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
- combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_INSECTS)
- combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
- function getDamage(player, i)
- return (player:getMagicLevel() * (1+(0.20 * i)))
- end
- function onCastSpell(creature, var)
- local condition = Condition(CONDITION_BLEEDING)
- condition:setParameter(CONDITION_PARAM_DELAYED, 1)
- local player = Player(creature)
- for i = 1, 5 do
- condition:addDamage(1, 1000, getDamage(player, i))
- end
- combat:setCondition(condition)
- return combat:execute(creature, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment