Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function savetable(a,b,c,d,e,f,g)
- postable = {}
- postable.a = a
- postable.b = b
- postable.c = c
- postable.d = d
- postable.e = e
- postable.f = f
- postable.g = g
- postablestring = (textutils.serialize(postable))
- f = fs.open("lastpos","w")
- f.writeLine(postablestring)
- f.close()
- end
- function readtable()
- f = fs.open("lastpos","r")
- postablestring = f.readLine()
- f.close()
- postable = textutils.unserialize(postablestring)
- status_a = postable.a
- status_b = postable.b
- status_c = postable.c
- status_d = postable.d
- status_e = postable.e
- status_f = postable.f
- status_g = postable.g
- end
- readtable()
- if ((status_f==1)and(status_g==1))then
- for a=status_a,10 do
- for b=status_b,10 do
- shell.run("Cycle")
- for c=status_c,15 do
- status_c=c+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- shell.run("QuarryX-")
- end
- status_c=1
- status_b=b+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- end
- for d=status_d,15 do
- status_d=d+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- shell.run("QuarryZ+")
- end
- for e=status_e,150 do
- status_e=e+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- shell.run("QuarryX+")
- end
- status_e=1
- status_d=1
- status_b=1
- status_a=a+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- end
- end
- for f=status_f,15 do
- status_f=f+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- shell.run("QuarryZ+")
- end
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- for g=status_g,150 do
- status_g=g+1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
- shell.run("QuarryX+")
- end
- status_g = 1
- status_f=1
- status_a=1
- savetable(status_a,status_b,status_c,status_d,status_e,status_f,status_g)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement