daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
  3. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
  4. setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
  5. setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
  6.  
  7. local condition = createConditionObject(CONDITION_CURSED)
  8. setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
  9. addDamageCondition(condition, 0.005, 0.008, -0.0002)
  10. setCombatCondition(combat, condition)
  11.  
  12. local mult = 2222222
  13. local baseDamage = 10000000
  14.  
  15. function onCastSpell(cid, var)
  16.     if isPlayer(cid) then
  17.         local damage = baseDamage + (getPlayerRebirth(cid)*mult)
  18.         local attacker = variantToNumber(var)
  19.         if isCreature(attacker) then
  20.             return doCombat(cid, combat, var) and doTargetCombatHealth(0, attacker, COMBAT_DEATHDAMAGE, -(damage), -(damage), CONST_ME_MORTAREA)
  21.         end
  22.     end
  23.     return true
  24. end
RAW Paste Data
Top