Advertisement
BarryAllenwhl

Untitled

Feb 22nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_EFFECT, 2)
  3. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
  4. setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 9)
  5. setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -23900000, 0, -26900000)
  6.  
  7. local area = createCombatArea({
  8. {0, 1, 1, 1, 0,},
  9. {0, 1, 3, 1, 0,},
  10. {0, 1, 1, 1, 0,}
  11. })
  12.  
  13. setCombatArea(combat, area)
  14.  
  15. function onUseWeapon(cid, var)
  16. target = getCreatureTarget(cid)
  17. doSendDistanceShoot(getThingPos(cid), {x = getThingPos(cid).x - 1, y = getThingPos(cid).y - 2, z = getThingPos(cid).z}, 2)
  18. doSendDistanceShoot({x = getThingPos(target).x - 11, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 2)
  19. doSendDistanceShoot({x = getThingPos(target).x - 12, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 2)
  20. doSendMagicEffect(getThingPos(cid), 49)
  21. doSendMagicEffect(getThingPos(target), 28)
  22. doSendDistanceShoot({x = getThingPos(target).x - 13, y = getThingPos(target).y - 2, z = getThingPos(target).z}, getThingPos(target), 2)
  23. doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y + 11, z = getThingPos(target).z}, getThingPos(target), 2)
  24. doSendDistanceShoot({x = getThingPos(target).x + 14, y = getThingPos(target).y + 5, z = getThingPos(target).z}, getThingPos(target), 2)
  25. doSendDistanceShoot({x = getThingPos(target).x + 2, y = getThingPos(target).y - 3, z = getThingPos(target).z}, getThingPos(target), 2)
  26. if not isCreature(cid) then return true end
  27. return doCombat(cid, combat, var)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement