darkstaar

Untitled

Nov 20th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. while true do
  2. local count = 0
  3. local creatures = {}
  4. for i = CREATURES_LOW, CREATURES_HIGH do
  5. local c = Creature.GetFromIndex(i)
  6. if c:isAlive() and c:isVisible() and c:isAdjacent() and not c:isPlayer() then
  7. count = count + 1
  8. table.insert(creatures, c:Name())
  9. end
  10. end
  11.  
  12. if count >= 2 then
  13. if Self.CanCastSpell('exori') then
  14. Self.Cast('exori', 150)
  15. print(table.serialize(creatures))
  16. end
  17. end
  18. wait(50)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment