SHARE
TWEET

door

a guest Mar 31st, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("back")
  2. local open = rednet.send(3,"Open")
  3. local close = rednet.send(3, "Close")
  4. term.clear()
  5. term.setTextColor(colors.white)
  6. term.setCursorPos(4,1)
  7. print("!Vault Door Control!")
  8. term.setCursorPos(5,3)
  9. term.setBackgroundColor(colors.lime)
  10. print("Open")
  11. term.setCursorPos(18,3)
  12. term.setBackgroundColor(colors.red)
  13. print("Close")
  14. while true do
  15. event, parm1, x, y = os.pullEvent("mouse_click")
  16. print(x..y)
  17. if x > 5 and x < 8 and y == 2 then
  18. term.write("hello")
  19. rednet.send(3,"Open")
  20. term.print("open")
  21. sleep(2)
  22. end
  23. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top