Advertisement
poxipox

Untitled

Mar 23rd, 2024
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. local combat1 = createCombatObject()
  2. setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  3. setCombatParam(combat1, COMBAT_PARAM_EFFECT, 27)
  4. setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.5, -100, -1.6, -200)
  5.  
  6. local combat2 = createCombatObject()
  7. setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)  
  8. setCombatParam(combat2, COMBAT_PARAM_EFFECT, 27)
  9. setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.5, -100, -1.6, -200)  
  10.  
  11. local arr1 = {
  12.     {1, 1, 1},
  13.     {1, 2, 1},
  14.     {1, 1, 1},
  15. }
  16.  
  17. local arr2 = {
  18.     {0, 1, 1, 1, 0},
  19.     {1, 0, 0, 0, 1},
  20.     {1, 0, 2, 0, 1},
  21.     {1, 0, 0, 0, 1},
  22.     {0, 1, 1, 1, 0},
  23. }
  24.  
  25. setCombatArea(combat1, createCombatArea(arr1))
  26. setCombatArea(combat2, createCombatArea(arr2))
  27.  
  28. function onCastSpell(cid, var)
  29.     doCombat(cid, combat1, var, 3)
  30.     addEvent(doCombat, 300, cid, combat2, var, 3, true)
  31.     return LUA_NO_ERROR
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement