Advertisement
MrTrala

Exori Combo for Zerks - Not for PVP

Nov 25th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. --[[
  2.     Berserker Combos for ArchLight
  3.     Version 1.0
  4.     by Mr Trala
  5. ]]
  6. -- Configs
  7. local dist = 1 -- Distance from the target to use the spell
  8. local mana = 300 -- Minimum mana to try to use an spell (stop spam)
  9.  
  10. -- Exaus Configuration (for otservers)
  11. local spell1 = "utori kor"
  12. local spell2 = "exori min"
  13. local spell3 = "exori gran"
  14. local spell4 = "exori"
  15. local spell5 = "exori gran ico"
  16. local spell6 = "exura gran ico"
  17.  
  18. -- Spells to use
  19. local words1 = "exori gran thrash"
  20. local words2 = "exori thrash"
  21. local words3 = "exori gran"
  22. local words4 = "exori"
  23. local words5 = "exori gran ico"
  24. local words6 = "utani hura"
  25.  
  26.  
  27. -- Don't touch this.
  28. Module.New('Serker', function(mod)
  29. local creature = Creature.GetByID(Self.TargetID())
  30.         if creature:isValid() and creature:isAlive() and creature:DistanceFromSelf() <= dist then
  31.             if Self.GetSpellCooldown(spell1) == 0 then
  32.                 Self.Cast(words1, mana)
  33.                
  34.             end
  35.            
  36.             if Self.GetSpellCooldown(spell2) == 0 then
  37.                 Self.Cast(words2, mana)
  38.             end
  39.            
  40.             if Self.GetSpellCooldown(spell3) == 0 then
  41.                 Self.Cast(words3, mana)
  42.             end
  43.            
  44.             if Self.GetSpellCooldown(spell4) == 0 then
  45.                 Self.Cast(words4, mana)
  46.             end
  47.            
  48.             if Self.GetSpellCooldown(spell5) == 0 then
  49.                 Self.Cast(words5, mana)
  50.             end
  51.            
  52.         end
  53.             if Self.GetSpellCooldown(spell6) == 0 then
  54.                 Self.Cast(words6, mana)
  55.             end
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement