Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local swap_between =
- {
- {words='exori ico', range=1, use=true},
- {words='exori hur', range=5, use=true},
- {words='exori con', range=7, use=false},
- {words='exori gran con',range=7, use=false},
- {words='exori san', range=4, use=false}
- }
- local mobs = {'Nightmare', 'Tormentor'} -- Case Sensitive!
- ------ Don't edit anything down from here :)
- local attack = { }
- for i = 1, #swap_between do
- if swap_between[i].use then
- table.insert(attack, swap_between[i])
- end
- end
- while (true) do
- local creature = Creature.GetByID(Self.TargetID())
- for _, x in ipairs(attack)do
- if table.find(mobs, creature:Name(), false) then
- if creature:isValid() and creature:isAlive() and creature:DistanceFromSelf() <= x.range and Self.CanCastSpell(x.words) then
- Self.Say(x.words)
- end
- end
- end
- sleep(math.random(900, 1000))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement