Guest User

skrypt

a guest
Mar 29th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. --[[Mages Multiple Strike Spells]]--  
  2. local targets = {"Dragon Lord", "Dragon Lord Hatchling"} -- Moby na ktore ma uzywac spelli
  3. -- Just change below to suit your needs.
  4.     local spells = {}
  5.     spells[1] = { spell = "exori" } --Max spell  
  6. Module.New("Multiple Strike Spells", function(module)
  7. for _, data in ipairs(spells) do
  8.     local c = Creature.GetByID(Self.TargetID())
  9.         if table.contains(targets, c:Name()) then
  10.             if c:DistanceFromSelf() <= 3 then
  11.                 if Self.TargetID() ~= 0 then
  12.                     if c:HealthPercent() >= 2 then
  13.                         for x=1, #spells do
  14.                             if Self.CanCastSpell(data.spell) then
  15.                                 Self.Say(data.spell)
  16.                                 wait(200, 1500)
  17.                             end
  18.                         end
  19.                     elseif c:HealthPercent() <= 2 then
  20.                             if Self.CanCastSpell(data.spell[2]) then
  21.                                 Self.Say(data.spell[2])
  22.                                 wait(200, 1500)
  23.                             end
  24.                     end
  25.                 end
  26.             end
  27.         end
  28.     end
  29.     module:Delay(1000)
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment