View difference between Paste ID: VALtThRQ and pP0p19FU
SHOW: | | - or go back to the newest paste.
1
print "Welcome to the GFly installer."
2
3
local mod = peripheral.find "neuralInterface"
4
5
function checkModule(name, err)
6
	if not mod.hasModule(name) then error(err) end
7
end
8
9
checkModule("plethora:kinetic", "A kinetic augment is necessary. How did you expect it to work?")
10
checkModule("plethora:sensor", "An entity sensor is necessary in order to get player metadata.")
11
12
local metaownerAPI = http.get "https://pastebin.com/raw/wAExThgp"
13
14
if metaownerAPI then
15
    local rawContent = metaownerAPI.readAll()
16
    
17
    write "Enter username: "
18
    local username = read()
19
	-- write supplied username into the API
20
    local content = string.gsub(rawContent, "ownergoeshere", username)
21
    
22
    local f = fs.open("metaowner.lua", "w")    
23
    f.write(content)
24
    f.close()
25-
To start flying, simply run fly.lua.
25+
26
    print "metaowner.lua installed."
27
else
28
    error "metaowner.lua could not be downloaded."
29
end
30
31
shell.run "pastebin get EKV6u1HK fly.lua"
32-
print(docs)
32+
33
34
local docs = [[
35
To start flying, run fly.lua.
36
Simply hold shift to fly in the direction you're looking in.
37
If you are moving downwards too fast, you should be slowed down.
38
This system is not infallible, especially in high-lag environments like SwitchCraft.
39
Please do not copy GFly or related programs without permission.
40
]]
41
42
write(docs)