Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- THIS IS A AUTODOWNLOAD TOOL BY KNUX14
- term.clear()
- term.setCursorPos(1, 1)
- function splitString(input, sep)
- if sep == nil then
- sep = "%s"
- end
- t= {} ; i = 1
- for str in string.gmatch(input, "([^"..sep.."]+)") do
- t[i] = str
- i = i + 1
- end
- return t
- end
- m = http.get("http://pastebin.com/raw.php?i=b1N5shQM")
- txt = m.readAll()
- tab = splitString(txt, "_")
- tabName = {} ; tabCode = {}
- noDL=true
- for i = 0, #tab do
- if i%2 ~= 0 then
- tabName[#tabName + 1] = tab[i]
- else
- tabCode[#tabCode + 1] = tab[i]
- end
- end
- for k, v in pairs(tabName) do
- print(k .. " " .. v)
- end
- print("")
- id = read()
- term.clear()
- term.setCursorPos(1, 1)
- print("Name: ")
- name = read()
- shell.run("pastebin get " .. tabCode[tonumber(id)] .. " " .. name)
Add Comment
Please, Sign In to add comment