SHOW:
|
|
- or go back to the newest paste.
1 | function ininstaller(code,name) | |
2 | local response = http.get( | |
3 | "http://pastebin.com/raw/"..code | |
4 | ) | |
5 | ||
6 | if response then | |
7 | ||
8 | local sResponse = response.readAll() | |
9 | response.close() | |
10 | h = fs.open(name,"w") | |
11 | h.write(sResponse) | |
12 | h.close() | |
13 | return sResponse | |
14 | else | |
15 | print( "Failed." ) | |
16 | end | |
17 | end | |
18 | term.clear() | |
19 | term.setCursorPos(1, 1) | |
20 | print("Installing...") | |
21 | if not fs.exists("mine") == true then | |
22 | ininstaller("1bmsfiGY","mine") | |
23 | sleep(0.3) | |
24 | end | |
25 | sleep(0.25) | |
26 | if not fs.exists("mine2") == true then | |
27 | ininstaller("Hbd0kc4x","mine2") | |
28 | sleep(0.3) | |
29 | end | |
30 | ||
31 | sleep(0.25) | |
32 | if not fs.exists("mine3") == true then | |
33 | ininstaller("SQ1A6VEH","mine3") | |
34 | sleep(0.3) | |
35 | end | |
36 | ||
37 | sleep(0.25) | |
38 | if not fs.exists("mine4") == true then | |
39 | ininstaller("06TJ4CzZ","mine4") | |
40 | sleep(0.3) | |
41 | end | |
42 | ||
43 | sleep(0.25) | |
44 | if not fs.exists("torch") == true then | |
45 | ininstaller("FRTx44fd","torch") | |
46 | sleep(0.3) | |
47 | end | |
48 | ||
49 | if not fs.exists("detect") == true then | |
50 | ininstaller("rmsahPUu","detect") | |
51 | sleep(0.3) | |
52 | end | |
53 | sleep(0.25) | |
54 | if not fs.exists("stripmine") == true then | |
55 | ininstaller("QQMwafG5","stripmine") | |
56 | sleep(0.3) | |
57 | end | |
58 | sleep(0.25) | |
59 | term.clear() | |
60 | term.setCursorPos(1, 1) | |
61 | print("Installed Stripmine program by Jey0") | |
62 | sleep(2) |