Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attacks = {'exori max vis', 'exori max flam', 'exori gran flam', 'exori gran vis', 3155}
- ErrorMessageProxy.OnReceive('Spells', function(_, key)
- if key == "Sorry, not possible." then
- mana, can, level = Self.Mana(), Self.GetSpellCooldown, Self.Level()
- if Self.TargetID() ~= 0 then
- c = Creature.GetByID(Self.TargetID())
- if c:HealthPercent() > 0 then
- if c:DistanceFromSelf() <= 3 then
- if mana >= 100 and can(attacks[1]) == 0 and level >= 100 then
- Self.Say(attacks[1])
- elseif mana >= 100 and can(attacks[2]) == 0 and level >= 90 then
- Self.Say(attacks[2])
- elseif mana >= 80 and can(attacks[3]) == 0 and level >= 70 then
- Self.Say(attacks[3])
- elseif mana >= 80 and can(attacks[4]) == 0 and level >= 80 then
- Self.Say(attacks[4])
- end
- end
- if c:DistanceFromSelf() > 3 and can('exori frigo') == 0 and level >= 45 then
- Self.UseItemWithTarget(attacks[5])
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement