View difference between Paste ID: Bp4bQJb7 and RLq0E2TP
SHOW: | | - or go back to the newest paste.
1-
local initScriptID = "RLq0E2TP"
1+
local initScriptID = "Bp4bQJb7"
2
local scripts = {}
3
4-
--[[
4+
5-
	Register scripts as scripts[<pastebin_code>]="<name>"
5+
scripts["iPW77diY"]	= "miner"
6-
	Run:
6+
7-
		pastebin get RLq0E2TP init
7+
8-
]]
8+
9
10-
scripts["hwZXFWRE"]	= "t"
10+
11-
scripts["V46V5dSW"] = "json"
11+
12-
scripts["GnFzX6HF"]	= "area"
12+
13-
scripts["0hejcfq6"]	= "room"
13+
14-
scripts["w2fFVnAi"]	= "platform"
14+
15-
scripts["gkz5sgZ8"]	= "OCM"
15+
16-
scripts["ctDZxPUy"]	= "go"
16+
17-
scripts["2nVVg7Ak"]	= "treefarm"
17+
18-
scripts["j8cdrVFf"]	= "quarry"
18+
19-
scripts["VDEU15qB"] = "fly"
19+
20-
scripts["S5gHj9vN"] = "oreHUD"
20+
21-
scripts["HMfxKQT1"] = "quarry2"
21+
22-
scripts["Fd3hEPbk"] = "autocraft"
22+
23-
-- no touchey from here
23+
24
				term.clear()
25
				term.setCursorPos(0,0)
26
				print("\nLoading Script ["..name.."]")
27-
-- load function
27+
28
	 			break
29
			end
30
		end	
31
		if not found then
32
			print("\nFailed to load script ["..name.."]")
33
			return
34
		end
35-
-- get
35+
36
		local progress = 0
37
		local qty = table.getn(scripts)
38
		for code, name in pairs(scripts) do
39-
		-- get single
39+
40
			term.setCursorPos(0,0)
41
			print("\nLoading Scripts: [ "..progress.." of "..qty.." ]")
42
		 	pcall(loadScript, code, name)
43
		 	progress = progress + 1
44
		end
45
	end
46
47
	os.reboot()
48
else
49
	term.clear()
50
	term.setCursorPos(0,0)
51
	print("\nUpdating Self ...")
52
53
	pcall(loadScript, initScriptID, "init")
54
	shell.run("init", "get")
55
end