Advertisement
Kiliandeca

DecaMiner - Recup Run

Aug 5th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. if not turtle then
  2.     for i, side in pairs(rs.getSides()) do
  3.         if disk.isPresent(side) then
  4.             disk.setLabel(side, "Recup Floppy")
  5.             shell.run("cd disk")
  6.             shell.run("delete startup")        
  7.             shell.run("pastebin get zSam4h0N startup")
  8.             shell.run("move startup disk/startup")
  9.             shell.run("cd ..")
  10.             shell.run("delete startup")
  11.             print("La disquette est prete, vous pouvez retirer le computer")
  12.         end
  13.     end
  14.  
  15. else
  16.  
  17.     bool , errorstr = turtle.dig()
  18.  
  19.     if errorstr == "No tool to dig with" then
  20.         -- place
  21.         shell.run("pastebin get SnEJWiR6 startup")
  22.         os.reboot()
  23.     else
  24.         -- recup
  25.         shell.run("pastebin get UYMdRsNR startup")
  26.         os.reboot()
  27.     end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement