Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- term.clear()
- term.setCursorPos(1,1)
- print ("Please enter the # of the floor you want go to")
- print ("4 - Storage Floor 1")
- print ("3 - Mage Tower")
- print ("2 - Ground Floor")
- print ("1 – Basement")
- local input = read()
- if input == "1" then
- term.clear()
- term.setCursorPos(1,1)
- print ("Going to the Basement")
- os.sleep(1)
- rednet.send(54,"BL 1")
- os.sleep(1)
- os.reboot()
- end
- if input == "2" then
- term.clear()
- term.setCursorPos(1,1)
- print ("Going to Ground Floor")
- os.sleep(1)
- rednet.send(54,"floor 1")
- os.sleep(1)
- os.reboot()
- end
- if input == "3" then
- term.clear()
- term.setCursorPos(1,1)
- print ("Going to the Mage Tower")
- os.sleep(1)
- rednet.send(54,"mage tower")
- os.sleep(1)
- os.reboot()
- end
- if input == "4" then
- term.clear()
- term.setCursorPos(1,1)
- print ("Going to Storage Floor 1")
- os.sleep(1)
- rednet.send(54,"storage 1")
- os.sleep(1)
- os.reboot()
- end
- if input == "Service" then
- term.clear()
- term.setCursorPos(1,1)
- print ("Going to Storage Floor 1")
- os.sleep(1)
- rednet.send(54,"service")
- os.sleep(1)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement