Advertisement
poxipox

Untitled

Jan 4th, 2023
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. local combat1 = createCombatObject()
  2. setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  3. setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 23)
  4. setCombatParam(combat1, COMBAT_PARAM_EFFECT, 175)
  5. setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  6.  
  7. local combat2 = createCombatObject()
  8. setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  9. setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 23)
  10. setCombatParam(combat2, COMBAT_PARAM_EFFECT, 175)
  11. setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  12.  
  13. local combat3 = createCombatObject()
  14. setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  15. setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 23)
  16. setCombatParam(combat3, COMBAT_PARAM_EFFECT, 175)
  17. setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  18.  
  19. local combat4 = createCombatObject()
  20. setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  21. setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 23)
  22. setCombatParam(combat4, COMBAT_PARAM_EFFECT, 175)
  23. setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  24.  
  25. local combat5 = createCombatObject()
  26. setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  27. setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 23)
  28. setCombatParam(combat5, COMBAT_PARAM_EFFECT, 175)
  29. setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  30.  
  31. local combat6 = createCombatObject()
  32. setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  33. setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 23)
  34. setCombatParam(combat6, COMBAT_PARAM_EFFECT, 175)
  35. setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  36.  
  37. local combat7 = createCombatObject()
  38. setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  39. setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 23)
  40. setCombatParam(combat7, COMBAT_PARAM_EFFECT, 175)
  41. setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  42.  
  43. local combat8 = createCombatObject()
  44. setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  45. setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 23)
  46. setCombatParam(combat8, COMBAT_PARAM_EFFECT, 175)
  47. setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.8, -150, -2.8, -200)
  48.  
  49.  
  50. local arr1 = {
  51. {0, 0, 0},
  52. {1, 2, 0},
  53. {0, 0, 0}
  54. }
  55.  
  56. local arr2 = {
  57. {1, 0, 0},
  58. {0, 2, 0},
  59. {0, 0, 0}
  60. }
  61.  
  62. local arr3 = {
  63. {0, 1, 0},
  64. {0, 2, 0},
  65. {0, 0, 0}
  66. }
  67.  
  68. local arr4 = {
  69. {0, 0, 1},
  70. {0, 2, 0},
  71. {0, 0, 0}
  72. }
  73.  
  74. local arr5 = {
  75. {0, 0, 0},
  76. {0, 2, 1},
  77. {0, 0, 0}
  78. }
  79.  
  80. local arr6 = {
  81. {0, 0, 0},
  82. {0, 2, 0},
  83. {0, 0, 1}
  84. }
  85.  
  86. local arr7 = {
  87. {0, 0, 0},
  88. {0, 2, 0},
  89. {0, 1, 0}
  90. }
  91.  
  92. local arr8 = {
  93. {0, 0, 0},
  94. {0, 2, 0},
  95. {1, 0, 0}
  96. }
  97.  
  98. setCombatArea(combat1, createCombatArea(arr1))
  99. setCombatArea(combat2, createCombatArea(arr2))
  100. setCombatArea(combat3, createCombatArea(arr3))
  101. setCombatArea(combat4, createCombatArea(arr4))
  102. setCombatArea(combat5, createCombatArea(arr5))
  103. setCombatArea(combat6, createCombatArea(arr6))
  104. setCombatArea(combat7, createCombatArea(arr7))
  105. setCombatArea(combat8, createCombatArea(arr8))
  106.  
  107. function onCastSpell(cid, var)
  108.  
  109. doCombat(cid, combat1, var, 3)
  110. addEvent(spellRuner, 100, cid, combat2, var, 3)
  111. addEvent(spellRuner, 150, cid, combat3, var, 3)
  112. addEvent(spellRuner, 200, cid, combat4, var, 3)
  113. addEvent(spellRuner, 250, cid, combat5, var, 3)
  114. addEvent(spellRuner, 300, cid, combat6, var, 3)
  115. addEvent(spellRuner, 350, cid, combat7, var, 3)
  116. addEvent(spellRuner, 450, cid, combat8, var, 3, true)
  117.  
  118. return LUA_NO_ERROR
  119. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement