Advertisement
poxipox

Untitled

Mar 23rd, 2023
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_EFFECT, 703, 1 ,0)
  3. setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
  4.  
  5. local condition = createConditionObject(CONDITION_HASTE)
  6. setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
  7. setConditionFormula(condition, 0.85, 50, 0.85, 50)
  8. setCombatCondition(combat, condition)
  9.  
  10. local combat2 = createCombatObject()
  11. setCombatParam(combat2, COMBAT_PARAM_EFFECT, 703, 1 ,0)
  12. setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
  13.  
  14. local condition2 = createConditionObject(CONDITION_HASTE)
  15. setConditionParam(condition2, CONDITION_PARAM_TICKS, 33000)
  16. setConditionFormula(condition2, 1.3, 100, 1.4, 100)
  17. setCombatCondition(combat2, condition2)
  18.  
  19.  
  20. function onCastSpell(cid, var)
  21. doRemoveCondition(cid, CONDITION_PARALYZE)
  22. if getPlayerLevel(cid) <= 50 then
  23. doCreatureAddPercentHPMana(cid, 0.2, 0, true) -- 20%
  24. else
  25. doCreatureAddPercentHPMana(cid, 0.4, 0, true) -- 40%
  26. end
  27. return LUA_NO_ERROR
  28. end
  29.  
  30. function onCastSpell(cid, var)
  31. doRemoveCondition(cid, CONDITION_PARALYZE)
  32. if getPlayerLevel(cid) <= 50 then
  33. doCombat(cid, combat, var, 0, true)
  34. else
  35. doCombat(cid, combat2, var, 0, true)
  36. end
  37.  
  38. return LUA_NO_ERROR
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement