Advertisement
charlesthepenguin

www

Jul 28th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local c = require("component")
  2. local term = require("term")
  3. local component = require("component")
  4. local event = require("event")
  5. local serialization = require("serialization")
  6. local gpu = component.gpu
  7. local tun = component.tunnel
  8. local w, h = gpu.getResolution()
  9. gpu.fill(1, 1, w, h, " ")
  10. local asd = 1
  11. local os = require("os")
  12.  
  13. local address
  14. repeat
  15. term.clear(true)
  16. print("Warp Computer")
  17. print("")
  18. print("Travel between dimensions? y/n")
  19. answer = io.read()
  20. print()
  21. if answer == "y" then
  22. print("Before travel you need to empty the reactor of its fuel, have you done so? y/n")
  23. answer = io.read()
  24. print()
  25. if answer == "y" then
  26. print("Traveling.")
  27. tun.send("warp")
  28. print("Command sent.")
  29.  
  30. elseif answer == "n" then
  31. print("Aborted, empty the reactor and try again.")
  32. end
  33. os.sleep(5)
  34.  
  35. elseif answer == "n" then
  36. print("Aborted")
  37. os.sleep(5)
  38.  
  39.  
  40. end
  41. until asd == 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement