Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Sorcerer Combos for ArchLight (Mas Vis + Gran Vis) - Restora's included
- Version 1.0
- by Mr Trala
- ]]
- -- Configs
- local dist = 2 -- Distance from the target to use the spell (recommended 2 sqm for exevo en vis)
- local mana = 300 -- Minimum mana to try to use an spell (stop spam)
- local monscont = 2 -- How many monster in your screen to use combo
- -- Exaus Configuration (for otservers) -- Don't touch this if you don't know what are you doing.
- local spell1 = "utori san"
- local spell2 = "exevo gran mas vis"
- local spell3 = "utura gran"
- local spell4 = "exura san"
- -- Spells to use
- local words1 = "exevo en vis"
- local words2 = "exevo gran mas vis"
- local words3 = "exana gran restora"
- local words4 = "exana restora"
- -- Don't touch this if you don't know what are you doing.
- Module.New('MageCombo', function(mod)
- local creature = Creature.GetByID(Self.TargetID())
- local amount = 0
- for _, c in Creature.iMonsters(7) do
- if c:isAlive() and c:isOnScreen() then
- amount = amount +1
- end
- end
- if creature:isValid() and creature:isAlive() and creature:isTarget() and amount >= monscont and creature:DistanceFromSelf() <= dist then
- if Self.GetSpellCooldown(spell1) == 0 then
- Self.Cast(words1, mana)
- end
- if Self.GetSpellCooldown(spell2) == 0 then
- Self.Cast(words2, mana)
- end
- end
- if Self.GetSpellCooldown(spell3) == 0 then
- Self.Cast(words3, mana)
- end
- if Self.GetSpellCooldown(spell4) == 0 then
- Self.Cast(words4, mana)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement