Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Code for Sending PC
- function rawread()
- while true do
- local sEvent, param = os.pullEvent("key")
- if sEvent == "key" then
- if param == 28 then
- print("Enter detected")
- break
- end
- end
- end
- end
- local box = "box"
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.blue)
- textutils.slowPrint("Safety deposit box service")
- term.setTextColor(colors.white)
- os.sleep(1)
- print("Please place your items you wish to deposit into the box")
- os.sleep(1)
- print("Press enter when you are ready to continue")
- rawread()
- write("Deposit box: ")
- local input = box..(read())
- local modem = peripheral.wrap("right")
- modem.transmit(3, 1, input)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement