Advertisement
Guest User

Spell Strike + SD Action

a guest
Jul 12th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.65 KB | None | 0 0
  1. --// Monsters Settings:
  2. local Monsters = {"Crystal Spider", "Ice Golem"} -- Monsters to Attack with Spells
  3. local MonsterToSD = {"Crystal Spider"} -- Monsters to attack with Sudden Death Runes
  4.  
  5. --// Spells Configuration
  6.  
  7. local SpellStrike = "exori vis"            -- Name of Normal Spell Strike (anyone)
  8. local StrongSpellStrike = "exori gran vis" -- Name of Strong Spell Strike (anyone)
  9. local MaxSpellStrike = "exori max vis"     -- Name of Max Spell Strike (anyone)
  10.  
  11. local StrongStrike = true   -- (true/false) True if you want to use Strong Strike Spell
  12. local MaxStrike = false     -- (true/false) True if you want to use Max Strike Spell
  13.  
  14. local AmmountToUseSD = 4    -- Ammount to start using Sudden Death Runes
  15.  
  16.  
  17. table.lower(MonsterToSD)
  18.  
  19. if (Self.CoolDown(SPELL_GROUP_ATTACK)) == 0 then
  20.     if maround(10, unpack(MonsterToSD)) >= AmmountToUseSD then
  21.         if target.hppc >= 7 and target.id ~= 0 and table.find(MonsterToSD, target.name:lower()) then
  22.                     useitemontarget("sudden death rune", target.id)
  23.                     updateworld()
  24.         end
  25.         if target.hppc < 7 and target.dist <= 3 and target.id ~= 0 then
  26.             if cancast(SpellStrike) then
  27.                 cast(SpellStrike)
  28.             end
  29.         end
  30.     end
  31.     if target.id ~= 0 and target.dist <= 3 then
  32.         if MaxStrike and cancast(MaxSpellStrike) and target.hppc > 30 then
  33.             cast(MaxSpellStrike)
  34.         end
  35.         if StrongStrike and cancast(StrongSpellStrike) and target.hppc > 15 then
  36.             cast(StrongSpellStrike)
  37.         end
  38.         if cancast(SpellStrike) then
  39.             cast(SpellStrike)
  40.         end    
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement