Advertisement
paramus

Receptor

Sep 30th, 2022 (edited)
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | Gaming | 0 0
  1. --local request = http.get("http://88.21.50.163:8278")
  2.  
  3. bandera = true
  4. while bandera
  5. do
  6.     request = http.get("")
  7.     txt = request.readAll()
  8.    
  9.     print(txt)
  10.    
  11.     if txt == "Salir"
  12.     then
  13.     bandera = false
  14.     elseif txt == "PicarRecto"
  15.     then
  16.     turtle.dig()
  17.     elseif txt == "PicarArriba"
  18.     then
  19.     turtle.digUp()
  20.     elseif txt == "PicarAbajo"
  21.     then
  22.     turtle.digDown()
  23.     elseif txt == "Recto"
  24.     then
  25.     turtle.forward()
  26.     elseif txt == "GiraDerecha"
  27.     then
  28.     turtle.turnRight()
  29.     elseif txt == "GiraIzquierda"
  30.     then
  31.     turtle.turnLeft()
  32.     elseif txt == "Abajo"
  33.     then
  34.     turtle.down()
  35.     elseif txt == "Arriba"
  36.     then
  37.     turtle.up()
  38.     end
  39.    
  40.    
  41. end
  42.  
  43. request.close()
Tags: Cc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement