Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Ce programme [cree pas TriiNoxYs] est libre de droits ;)
- -- Si vous le modifier/publiez/presentez/etc, SVP pensez a citer son auteur.
- -- Consultez tout les autres scripts de TriiNoxys sur le lien pastein.com/benjfn71
- -- Ou sur la page de TriiNoxYs: pastebin.com/u/TriiNoxYs
- rednet.open("left")
- term.clear()
- term.setCursorPos(1,1)
- print("COMMANDES: ")
- print(" 8 ")
- print(" | ")
- print(" 4----5----6 ")
- print(" | ")
- print(" 2 ")
- print(" ")
- print(" ")
- print("8 --> Avancer ")
- print("5 --> Casser le bloc ")
- print("4 --> Tourner a gauce")
- print("6 --> Tourner a droite")
- print("2 --> Reculer ")
- print("+ --> Monter ")
- print("- --> Descendre ")
- print("stop --> Quitter ")
- term.setCursorPos(1,100)
- local ordre = read(" ")
- if ordre=="5" then
- rednet.send(36,"5")
- elseif ordre=="8" then
- rednet.send(36,"8")
- elseif ordre=="4" then
- rednet.send(36,"4")
- elseif ordre=="2" then
- rednet.send(36,"2")
- elseif ordre=="6" then
- rednet.send(36,"6")
- elseif ordre=="+" then
- rednet.send(36,"+")
- elseif ordre=="-" then
- rednet.send(36,"-")
- elseif ordre=="stop" then
- rednet.send(36,"stop")
- os.reboot()
- else
- print(ordre.."n'est pas reconnu en tant que commande.")
- end
- shell.run("wifi-server")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement