Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print ("Select the time for the staircase to be open for:")
- term.setCursorPos(1,3)
- print ("[10 Seconds]")
- print ("[15 Seconds]")
- print ("[20 Seconds]")
- print ("[Maintenance Mode (permanent)]")
- event,button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos >= 1 and xPos <= 12 and yPos == 3 then
- rs.setOutput("bottom", true)
- sleep(10)
- rs.setOutput("bottom", false)
- end
- if xPos >= 1 and xPos <= 12 and yPos == 4 then
- rs.setOutput("bottom", true)
- sleep(15)
- rs.setOutput("bottom", false)
- end
- if xPos >= 1 and xPos <= 12 and yPos == 5 then
- rs.setOutput("bottom", true)
- sleep(20)
- rs.setOutput("bottom", false)
- end
- if xPos >= 1 and xPos <= 30 and yPos == 6 then
- rs.setOutput("bottom", true)
- local exitMaintenanceMode = io.read()
- if exitMaintenanceMode == ABORT then
- rs.setOutput("bottom", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement