Advertisement
nnimos

Untitled

May 5th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. -- Code for Sending PC
  2. function rawread()
  3. while true do
  4. local sEvent, param = os.pullEvent("key")
  5. if sEvent == "key" then
  6. if param == 28 then
  7. print("Enter detected")
  8. break
  9. end
  10. end
  11. end
  12. end
  13.  
  14. local box = "box"
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. term.setTextColor(colors.blue)
  18. textutils.slowPrint("Safety deposit box service")
  19. term.setTextColor(colors.white)
  20. os.sleep(1)
  21. print("Please place your items you wish to deposit into the box")
  22. os.sleep(1)
  23. print("Press enter when you are ready to continue")
  24. rawread()
  25.  
  26. write("Deposit box: ")
  27. local input = box..(read())
  28. local modem = peripheral.wrap("right")
  29. modem.transmit(3, 1, input)
  30. os.reboot()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement