Skymagnum

Untitled

Apr 27th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  3. setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 18)
  4. setCombatParam(combat, COMBAT_PARAM_EFFECT, 49)
  5. setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -8.10, -280, -8.40, -280)
  6.  
  7. combat_arr = {
  8. {1, 1, 1},
  9. {1, 3, 1},
  10. {1, 1, 1}
  11. }
  12.  
  13. local combat_area = createCombatArea(combat_arr)
  14. setCombatArea(combat, combat_area)
  15.  
  16.  
  17. function onCastSpell(cid, var)
  18.  
  19. local pos = getThingPos(cid)
  20. local posy = {x = pos.x, y = pos.y - 1, z = pos.z}
  21. local posy2 = {x = pos.x, y = pos.y + 1, z = pos.z}
  22. local posx = {x = pos.x - 1, y = pos.y, z = pos.z}
  23.  
  24.     doSendDistanceShoot(posy, getThingPos(getCreatureTarget(cid)), 18)
  25.     doSendDistanceShoot(posy2, getThingPos(getCreatureTarget(cid)), 18)
  26.     doSendDistanceShoot(posx, getThingPos(getCreatureTarget(cid)), 18)
  27.  
  28.     return doCombat(cid, combat, var)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment