Advertisement
MrTrala

Sorcerer Combo with Restora's included

Nov 25th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.50 KB | None | 0 0
  1. --[[
  2.     Sorcerer Combos for ArchLight (Mas Vis + Gran Vis) - Restora's included
  3.     Version 1.0
  4.     by Mr Trala
  5. ]]
  6.  
  7. -- Configs
  8. local dist = 2 -- Distance from the target to use the spell (recommended 2 sqm for exevo en vis)
  9. local mana = 300 -- Minimum mana to try to use an spell (stop spam)
  10. local monscont = 2 -- How many monster in your screen to use combo
  11.  
  12.  
  13. -- Exaus Configuration (for otservers) -- Don't touch this if you don't know what are you doing.
  14. local spell1 = "utori san"
  15. local spell2 = "exevo gran mas vis"
  16. local spell3 = "utura gran"
  17. local spell4 = "exura san"
  18.  
  19.  
  20. -- Spells to use
  21. local words1 = "exevo en vis"
  22. local words2 = "exevo gran mas vis"
  23. local words3 = "exana gran restora"
  24. local words4 = "exana restora"
  25.  
  26.  
  27. --  Don't touch this if you don't know what are you doing.
  28. Module.New('MageCombo', function(mod)
  29. local creature = Creature.GetByID(Self.TargetID())
  30. local amount = 0
  31. for _, c in Creature.iMonsters(7) do
  32.     if c:isAlive() and c:isOnScreen() then
  33.         amount = amount +1
  34.     end
  35. end
  36.     if creature:isValid() and creature:isAlive()  and creature:isTarget() and amount >= monscont and creature:DistanceFromSelf() <= dist then
  37.             if Self.GetSpellCooldown(spell1) == 0 then
  38.                 Self.Cast(words1, mana)
  39.             end
  40.            
  41.             if Self.GetSpellCooldown(spell2) == 0 then
  42.                 Self.Cast(words2, mana)
  43.             end
  44.            
  45.     end
  46.             if Self.GetSpellCooldown(spell3) == 0 then
  47.                 Self.Cast(words3, mana)
  48.             end
  49.            
  50.             if Self.GetSpellCooldown(spell4) == 0 then
  51.                 Self.Cast(words4, mana)
  52.             end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement