Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Datei erstellen namens v und 1.0 reinschreiben
- -- Rechter Output: Frame-Door nach unten
- -- Linker Output: Frame-Door nach oben
- -- OPD oben auf den PC
- -- Online = inhalt 1
- -- Offline = inhalt 0
- while true do
- file = fs.open("v", "r")
- inhalt = file.readLine()
- file.close()
- if inhalt == "1.0" then
- if rs.getInput("top") then
- for i = 1, 5, 1 do
- rs.setOutput("right",true)
- sleep(0.5)
- rs.setOutput("right",false)
- sleep(0.5)
- end
- local file = fs.open("v", "w")
- file.write(0)
- file.close()
- end
- end
- if inhalt == "0.0" then
- if not rs.getInput("top") then
- for i = 1, 5, 1 do
- rs.setOutput("left",true)
- sleep(0.5)
- rs.setOutput("left",false)
- sleep(0.5)
- end
- local file = fs.open("v", "w")
- file.write(1)
- file.close()
- end
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment