Advertisement
Birog

Fahrstuhl

Mar 23rd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1.     a=true
  2.     while a == true do
  3.     rednet.open("back")
  4.     sleep(1)
  5.     shell.run("clear")
  6.     print("**********************")
  7.     print("*      [2] 2. OG     *")
  8.     print("*      [1] 1. OG     *")
  9.     print("*      [E] EG        *")
  10.     print("*      [U] UG        *")
  11.     print("**********************")
  12.     write(" Auswahl : ")
  13.     auswahl = io.read()
  14.     if auswahl =="U" then
  15.      rednet.send(236,"up")
  16.     -- y,x,z = rednet.receive()
  17.     -- print(x)
  18.     elseif auswahl == "D" then
  19.      rednet.send(236,"down")
  20.     -- y,x,z = rednet.receive()
  21.     -- print(x)
  22.     elseif auswahl == "1" then
  23.      rednet.send(236,"1OG")
  24.     elseif auswahl == "2" then
  25.      rednet.send(236,"2OG")
  26.     elseif auswahl == "E" then
  27.      rednet.send(236,"eg")
  28.     elseif auswahl == "U" then
  29.      rednet.send(236,"ug")
  30.     else
  31.      return
  32.     end
  33.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement