Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pastebin_get( name, code )
- local response = http.get("http://pastebin.com/raw.php?i="..textutils.urlEncode(code))
- if response then
- local file = fs.open(name,"w")
- local sCode = response.readAll()
- response.close()
- file.write(sCode)
- file.close()
- else
- error("Error getting the file " .. name, 0)
- end
- end
- print ("please dont forget to label this bot. its defualt name will be BBB =BASA Builder Bot=")
- sleep(4.0)
- term.clear()
- for slot = 1,16 do
- turtle.select(slot)
- turtle.refuel(1)
- turtle.drop(1)
- if slot == 8 then
- print("50% complete")
- end
- end
- turtle.select(1)
- print("refuel done")
- sleep(3.0)
- term.clear()
- print ("predicted fuel, 16000")
- sleep(2.0)
- print ("current fuel level",turtle.getFuelLevel())
- sleep(2.0)
- term.clear()
- print ("getting BASA Builder Bot programs ... please hold.")
- sleep(3.0)
- term.clear()
- pastebin_get( "startup", "wiC47VDr" )
- textutils.slowPrint (" standard startup downloaded...")
- sleep(1)
- pastebin_get( "Shape_Builder", "gtdt3t0i" )
- textutils.slowPrint ("Shape_Builder downloaded...")
- sleep(1)
- pastebin_get( "adv_mine", "9WuGM99n" )
- textutils.slowPrint ("advanced mine downloaded...")
- sleep(3.0)
- term.clear()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement