Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ----------
  2. rednet.open("back")
  3. print("Zadaj kod")
  4. kod = read("*")
  5. term.setBackgroundColor(colors.lightBlue)
  6. term.clear()
  7. term.setBackgroundColor(colors.gray)
  8. term.setCursorPos(3,3)
  9. print(">")
  10. term.setCursorPos(3,5)
  11. print(">")
  12. term.setCursorPos(3,7)
  13. print(">")
  14. term.setCursorPos(1,1)
  15. print(" Mordapan System 3 ")
  16. term.setBackgroundColor(colors.lightBlue)
  17. term.setTextColor(colors.black)
  18. term.setCursorPos(5,3)
  19. print("Prebyt")
  20. term.setCursorPos(5,5)
  21. print("Vystrelit")
  22. term.setCursorPos(5,7)
  23. print("Ukoncit program")
  24. ----------
  25. while true do
  26. local event, button, xpos, ypos = os.pullEvent("mouse_click")
  27. if xpos==3 and ypos==3 then
  28. rednet.broadcast(1*kod)
  29. elseif xpos==3 and ypos==5 then
  30. rednet.broadcast(2*kod)
  31. elseif xpos==3 and ypos==7 then
  32. os.exit()
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement