1. rednet.open("top")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print ("Please enter the # of the floor you want go to")
  5. print ("4 - Storage Floor 1")
  6. print ("3 - Mage Tower")
  7. print ("2 - Ground Floor")
  8. print ("1 – Basement")
  9.  
  10. local input = read()
  11.  
  12. if input == "1" then
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. print ("Going to the Basement")
  16. os.sleep(1)
  17. rednet.send(54,"BL 1")
  18. os.sleep(1)
  19. os.reboot()
  20. end
  21.  
  22. if input == "2" then
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. print ("Going to Ground Floor")
  26. os.sleep(1)
  27. rednet.send(54,"floor 1")
  28. os.sleep(1)
  29. os.reboot()
  30. end
  31.  
  32. if input == "3" then
  33. term.clear()
  34. term.setCursorPos(1,1)
  35. print ("Going to the Mage Tower")
  36. os.sleep(1)
  37. rednet.send(54,"mage tower")
  38. os.sleep(1)
  39. os.reboot()
  40. end
  41.  
  42. if input == "4" then
  43. term.clear()
  44. term.setCursorPos(1,1)
  45. print ("Going to Storage Floor 1")
  46. os.sleep(1)
  47. rednet.send(54,"storage 1")
  48. os.sleep(1)
  49. os.reboot()
  50. end
  51.  
  52. if input == "Service" then
  53. term.clear()
  54. term.setCursorPos(1,1)
  55. print ("Going to Storage Floor 1")
  56. os.sleep(1)
  57. rednet.send(54,"service")
  58. os.sleep(1)
  59. os.reboot()
  60. end