darkstaar

Untitled

Nov 12th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local current = 0 --0 is special areas on, 1 is off
  2. local switchTo = 0
  3. while (true) do
  4. for i = CREATURES_LOW, CREATURES_HIGH do
  5. local c = Creature.GetFromIndex(i)
  6. if (c:Name == "Grim Reaper" and c:isOnScreen()) then
  7. switchTo = 0
  8. else
  9. switchTo = 1
  10. end
  11. end
  12.  
  13. if (switchTo ~= current) then
  14. if (switchTo == 0) then
  15. loadSettings("RPYG - Special Areas ON", "Special Areas")
  16. else
  17. loadSettings("RPYG - Special Areas OFF", "Special Areas")
  18. end
  19. current = switchTo
  20. end
  21.  
  22. wait(500)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment