Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- rednet.open("top")
- print ("Hallo")
- print ("Was soll ich Tuhn?")
- write("Befehl:")
- x = io.read()
- ----------------------------------------------
- --Hoch
- if x == "w" then
- rednet.broadcast("w")
- end
- --Runter
- if x == "s" then
- rednet.broadcast("s")
- end
- --Rechts Drehen
- if x == "e" then
- rednet.broadcast("e")
- end
- --Rechts Drehen 2x
- if x == "e1" then
- rednet.broadcast("e1")
- end
- --Links Drehen
- if x == "q" then
- rednet.broadcast("q")
- end
- --Links Drehen 2x
- if x == "q1" then
- rednet.broadcast("q1")
- end
- --Vor Gehen
- if x == "d" then
- rednet.broadcast("d")
- end
- --Zurück Gehen
- if x == "a" then
- rednet.broadcast("a")
- end
- ----------------------------------------------
- --Saugen Vorne
- if x == "sv" then
- rednet.broadcast("sv")
- end
- --Saugen Oben
- if x == "so" then
- rednet.broadcast("so")
- end
- --Saugen Unten
- if x == "su" then
- rednet.broadcast("su")
- end
- ----------------------------------------------
- --Dump
- if x == "dump" then
- rednet.broadcast("dump")
- end
- --Dump Oben
- if x == "dumpoben" then
- rednet.broadcast("dumpOben")
- end
- --Dump Unten
- if x == "dumpunten" then
- rednet.broadcast("dumpUnten")
- end
- shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement