Advertisement
Guest User

kil

a guest
Nov 17th, 2013
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Super Assassin Turtle v0.90")
  4. print("made by Landstryder")
  5. print("...")
  6. print("Starting the endless cycle of killing for you!")
  7.  
  8. local totalkills=0
  9. local itemcount=0
  10. local kills=0
  11. local items=0
  12. local killed=0
  13. local totalkilled=0
  14.  
  15. while true do --start the program loop
  16. kills=0
  17. for it=1,60 do --set how many repeats each cycle
  18. if turtle.attack() then sleep(1)
  19. --print(enemy detected...")
  20. kills=kills+1
  21. else sleep(5)
  22. --print("waiting for enemy...")
  23. end
  24. end
  25. totalkills=kills+totalkills
  26.  
  27. items=0 --set the item count ot 0 for the cycle
  28.  
  29. for it =1,16 do
  30. items=items+turtle.getItemCount(it)
  31. turtle.select(it)
  32. turtle.dropDown()
  33. end
  34. itemcount=itemcount+items
  35. killed=kills/2
  36. totalkilled=totalkills/2
  37. print("Killed about "..killed.." enemies this cycle")
  38. print("Collected "..items.." items this cycle")
  39. print("Killed about "..totalkilled.." enemies so far")
  40. print("Collected "..itemcount.." items so far")
  41. print("back to work...")
  42. print("...")
  43.  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement