Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- function msg(gap, line, text)
- mon.setCursorPos(gap,line)
- text = mon.write(text)
- end
- function clear()
- mon.setCursorPos(1,1)
- mon.clear()
- end
- clear()
- msg(03,01,"Repair your Miniumstones")
- msg(03,02,"~~~~~~~~~~~~~~~~~~~~~~~~")
- msg(01,04,"1. Open Trade-O-Mat")
- msg(01,05,"2. Insert 4 Shard of Minium")
- msg(01,06,"3. Insert also a Miniumstone")
- msg(01,07," no matter how broken it is")
- msg(01,08,"4. Now you get a new Stone")
- msg(01,11," problem ? -> click here <-")
- x = 0
- while true do
- a = 1
- local event, side, X, Y = os.pullEvent("monitor_touch")
- if X >= 01 and X <= 30 and Y >= 10 and Y <= 12 and side == "front" and a == 1 then
- clear()
- a = 2
- msg(01,01,"Press Reboot: ")
- msg(01,02,"~~~~~~~~~~~~~ ")
- msg(01,04,"To get back Shard of Minium ")
- msg(01,05,"and Miniumstones. ")
- msg(01,07,"If System is frozen. ")
- msg(01,09," --> REBOOT <-- ")
- msg(01,12," -> back")
- local event, side, X, Y = os.pullEvent("monitor_touch")
- if X >= 01 and X <= 22 and Y >= 08 and Y <= 10 and side == "front" and a == 2 then --reboot
- rs.setOutput("top", true)
- rs.setOutput("left", true)
- sleep(1.5)
- rs.setOutput("top", false)
- rs.setOutput("left", false)
- os.reboot()
- elseif X >= 23 and X <= 29 and Y >= 11 and Y <= 12 and side == "front" and a == 2 then --back
- os.reboot()
- end
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement