Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local RingID = 3098
  2.  
  3. --while true do
  4. --
  5. -- if Self.Ring().id == 0 then
  6. -- Self.Equip(RingID, "ring")
  7. -- end
  8. --
  9. --wait(100,600)
  10. --
  11. --end
  12.  
  13. local targetList = { "Execowtioner", "Moohtant", "Worm Priestess", "Minotaur Amazon" }
  14.  
  15. while (true) do
  16.  
  17. AMOUNT = 0
  18.  
  19. for i = CREATURES_LOW, CREATURES_HIGH do
  20. local c = Creature.GetFromIndex(i)
  21. if c:isMonster() and
  22. c:isOnScreen() and
  23. c:isAlive() and table.contains(targetList, c:Name())and
  24. c:isReachable() then
  25. AMOUNT = AMOUNT+1
  26. end
  27. end
  28.  
  29. if (AMOUNT >= 1) and (Self.Ring().id == 0) then
  30. Self.Equip(RingID, "ring")
  31. end
  32.  
  33. wait(100,600)
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement