daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tid = 379
  2. type = false
  3. rednet.open("right")
  4.  
  5. function s()
  6. sleep(.4)
  7. end
  8.  
  9. while true do
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("Blood-Corp Turtle Systems")
  13. term.setCursorPos(1,2)
  14.  
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. print("Blood-Corp Turtle Systems")
  18. print("Commands : up, down, left, right, forward, back.")
  19. term.setCursorPos(1,3)
  20. write("Enter Command : ")
  21. local command = read()
  22.  
  23. if command == "forward" then
  24. rednet.send(tid, "forward")
  25. print("Sent Forward")
  26. s()
  27.  
  28. elseif command == "right" then
  29. rednet.send(tid, "right")
  30. print("Sent Right")
  31. s()
  32.  
  33. elseif command == "left" then
  34. rednet.send(tid, "left")
  35. print("Sent Left")
  36. s()
  37.  
  38. elseif command == "back" then
  39. rednet.send(tid, "back")
  40. print("Sent Back")
  41. s()
  42.  
  43. elseif command == "up" then
  44. rednet.send(tid, "up")
  45. print("Sent Up")
  46. s()
  47.  
  48. elseif command == "down" then
  49. rednet.send(tid, "down")
  50. print("Sent Down")
  51. s()
  52.  
  53. else
  54. print("Unknown command.")
  55. print("Usage: up, down, left, right, forward, back.")
  56. s()
  57. end
  58. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top