Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version =
- 3.0
- -- Program pro prijem zprav pres modem
- -- Pri zmene programu je treba na radku 2 zmenit verzi, aby se program automaticky aktualizoval
- -- local code je treba zmenit dle potreby
- local code = "ri7vNDyr"
- --check version
- term.clear()
- term.setCursorPos(1,1)
- print("Program loading...")
- print("Current version: "..version)
- local updateSite= http.get("http://pastebin.com/raw.php?i="..code)
- updateSite.readLine()
- local newVersion = updateSite.readLine()
- if tonumber(newVersion) > version then
- print("Update required. Updating now...")
- local updateSite = http.get("http://pastebin.com/raw.php?i="..code)
- local siteFile = updateSite.readAll()
- local writeFile = fs.open(shell.getRunningProgram(),"w")
- writeFile.write(siteFile)
- writeFile.close()
- print("The program will now restart your computer.")
- sleep(1)
- os.reboot()
- end
- -- start
- -- turtla A (P0) položí disk drive před sebe
- turtle.select(1)
- turtle.place()
- -- turtla A vloží do disk drive disketu D1 s programem P1
- turtle.select(2)
- turtle.drop(1)
- -- poté se turtla A posune doprava položí bednu a do ní dropne stack Enderchest
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.select(3) -- vyber chest
- turtle.place() -- polozeni chest
- turtle.select(4) -- vyber chest
- turtle.drop(64) -- vlozeni do bedny(chest) Enderchest
- turtle.select(6)
- turtle.drop(64) -- vlozeni uhli na refuel
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.select(5)
- turtle.place()-- polozeni turtly
- -- nyni postupne polozime 9 ks turtly..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement