Advertisement
RobotBubble

CClickHelp

Nov 30th, 2017
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local x, y = 1,4
  2. local x2, y2 = 1,6
  3. local x3, y3 = 1,8
  4. local x4, y4 = 1,10
  5. local x5, y5 = 1,12
  6. local x6, y6 = 1,14
  7.  
  8. local choice1 = "[ ] Options "
  9. local choice2 = "[ ] Emotional Error "
  10. local choice3 = "[ ] Program Error "
  11. local choice4 = "[ ] Upgrade Computer "
  12. local choice5 = "[ ] Disclaimer "
  13. local choice6 = "[ ] S.B.R. "
  14.  
  15. term.clear()
  16. term.setCursorPos(1, 1)
  17. term.setTextColor(colors.lightGray)
  18. print("--------------------------")
  19. print("---")
  20. term.setTextColor(colors.lightBlue)
  21. term.setCursorPos(4, 2)
  22. print("Bubble Bot Computers")
  23. term.setTextColor(colors.lightGray)
  24. term.setCursorPos(24, 2)
  25. print("---")
  26. print("--------------------------")
  27. local function drawMenu()
  28. sleep(.1)
  29. term.setCursorPos(x, y)
  30. term.setTextColor(colors.white)
  31. write(choice1)
  32. term.setCursorPos(x2, y2)
  33. write(choice2)
  34. term.setCursorPos(x3, y3)
  35. write(choice3)
  36. term.setCursorPos(x4, y4)
  37. write(choice4)
  38. term.setCursorPos(x5, y5)
  39. write(choice5)
  40. term.setCursorPos(x6, y6)
  41. write(choice6)
  42. end
  43.  
  44. drawMenu()
  45.  
  46. while true do
  47. local event, button, cx, cy = os.pullEvent()
  48. if event == "mouse_click" then
  49. if cx >= x and cx < choice1:len() and cy == y and button == 1 then
  50. term.clear()
  51. term.setCursorPos(1, 1)
  52. term.setTextColor(colors.white)
  53. shell.run("options")
  54. elseif cx >= x2 and cx < choice2:len() and cy == y2 and button == 1 then
  55. term.clear()
  56. term.setCursorPos(1, 1)
  57. textutils.slowPrint("Keep your chin up")
  58. sleep(2)
  59. textutils.slowPrint("It'll get better I promise")
  60. sleep(2)
  61. textutils.slowPrint("1.800.273.8255")
  62. sleep(2)
  63. textutils.slowPrint("If it gets worse call this")
  64. sleep(1)
  65. textutils.slowPrint("Listen to some Yellowcard")
  66. sleep(2.5)
  67. textutils.slowPrint("They're a great/happy band")
  68. sleep(2.5)
  69. textutils.slowPrint("or blink182, they are")
  70. sleep(.5)
  71. textutils.slowPrint("fucking brilliant")
  72. sleep(3)
  73. textutils.slowPrint("Anyway")
  74. sleep(2.5)
  75. textutils.slowPrint("Stay strong, mate")
  76. sleep(3)
  77. term.setCursorPos(19, 10)
  78. term.setTextColor(colors.red)
  79. textutils.slowPrint("<3")
  80. sleep(15)
  81. term.setTextColor(colors.white)
  82. print("Returning to menu...")
  83. sleep(5)
  84. shell.run("help")
  85. elseif cx >= x3 and cx < choice3:len() and cy == y3 and button == 1 then
  86. term.clear()
  87. term.setCursorPos(1, 1)
  88. print("Please inform Robot Bubble")
  89. sleep(3)
  90. shell.run("help")
  91. elseif cx >= x4 and cx < choice4:len() and cy == y4 and button == 1 then
  92. term.clear()
  93. term.setCursorPos(1, 1)
  94. print("Speak to Bubble")
  95. sleep(5)
  96. shell.run("help")
  97. elseif cx >= x5 and cx < choice5:len() and cy == y5 and button == 1 then
  98. term.clear()
  99. term.setCursorPos(1, 1)
  100. textutils.slowPrint("The following programs")
  101. textutils.slowPrint("were NOT developed by")
  102. textutils.slowPrint("Robot Bubble")
  103. sleep(5)
  104. term.clear()
  105. term.setCursorPos(1, 1)
  106. print("Chat - JDU4wJxX")
  107. print("Calculator - 0wkqTE1A")
  108. print("Notes - mga8qSsW")
  109. print("2048 - xyGMBBBk")
  110. print("Stackerz - HC1MjHVq")
  111. print("ReactionTime - WLHFC6v6")
  112. print("TypeTest - AH002ptP")
  113. sleep(20)
  114. shell.run("help")
  115. elseif cx >= x6 and cx < choice6:len() and cy == y6 and button == 1 then
  116. term.clear()
  117. term.setCursorPos(1, 1)
  118. term.setTextColor(colors.white)
  119. print("sbrgaming.com")
  120. sleep(5)
  121. shell.run("help")
  122. end
  123. end
  124. end
Advertisement
RAW Paste Data Copied
Advertisement