Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function post()
- http.post(
- "http://phpdesigner.altervista.org/turtle/ricevitore.php",
- "a="..""
- )
- end
- while true do
- local source = http.get("http://phpdesigner.altervista.org/turtle/com.txt")
- local aSource = source.readAll()
- if aSource == "10" then
- turtle.forward()
- post()
- elseif aSource == "065535" then
- turtle.turnRight()
- post()
- elseif aSource == "00" then
- turtle.turnLeft()
- post()
- elseif aSource == "2" then
- turtle.up()
- post()
- elseif aSource == "3" then
- turtle.down()
- post()
- elseif aSource == "1" then
- turtle.digUp()
- post()
- elseif aSource == "4" then
- turtle.digDown()
- post()
- elseif aSource == "6" then
- turtle.dig()
- post()
- elseif aSource == "5" then
- turtle.place()
- post()
- elseif aSource == "11" then
- turtle.back()
- post()
- end
- os.sleep(0.10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement