Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CCSuiteUpdater by Teki
- local monitor = term.current()
- local sizeX,sizeY = monitor.getSize()
- monitor.setBackgroundColour(colors.black)
- monitor.setTextColor(colors.white)
- monitor.clear()
- function pmsg(msg)
- --monitor.clear()
- monitor.setCursorPos(1,sizeY)
- monitor.clearLine()
- --monitor.write(msg)
- monitor.scroll(1)
- textutils.slowPrint(msg, 20)
- end
- function CCupdate()
- pmsg("Downloading...")
- fs.delete("pastebin get r6wngjJ1 CCSuite/MethodsLister")
- fs.delete("pastebin get vuGgrHP5 CCSuite/CCAttack")
- fs.delete("pastebin get YhRQzcES CCSuite/CCQuarry")
- fs.delete("pastebin get Ah54eqrt CCSuite/CCRFTDialingDevice")
- fs.delete("pastebin get 3jH5BzuW CCSuite/CCEnderPainter")
- fs.delete("pastebin get 8rEEn773 CCSuite/CCRedstoneAlarm")
- fs.delete("pastebin get zMsFr3ak CCSuite/CCDECClient")
- fs.delete("pastebin get U6ZPitzh CCSuite/CCDECServeur")
- fs.delete("pastebin get J97bpn42 CCSuite/CCClock")
- fs.delete("pastebin get DsZznQvn CCSuite/CCBRClient")
- fs.delete("pastebin get 0KZJ7LHu CCSuite/CCBRServer")
- shell.run("pastebin get r6wngjJ1 CCSuite/MethodsLister")
- shell.run("pastebin get vuGgrHP5 CCSuite/CCAttack")
- shell.run("pastebin get YhRQzcES CCSuite/CCQuarry")
- shell.run("pastebin get Ah54eqrt CCSuite/CCRFTDialingDevice")
- shell.run("pastebin get 3jH5BzuW CCSuite/CCEnderPainter")
- shell.run("pastebin get 8rEEn773 CCSuite/CCRedstoneAlarm")
- shell.run("pastebin get zMsFr3ak CCSuite/CCDECClient")
- shell.run("pastebin get U6ZPitzh CCSuite/CCDECServeur")
- shell.run("pastebin get J97bpn42 CCSuite/CCClock")
- shell.run("pastebin get DsZznQvn CCSuite/CCBRClient")
- shell.run("pastebin get 0KZJ7LHu CCSuite/CCBRServer")
- pmsg("Done !!!")
- monitor.scroll(1)
- monitor.setCursorPos(1,sizeY)
- end
- function CCSuiteupdate()
- pmsg("Downloading...")
- fs.delete("CCSuiteUpdater")
- shell.run("pastebin get NByGus3Z CCSuiteUpdater")
- pmsg("Done !!!")
- monitor.scroll(1)
- monitor.setCursorPos(1,sizeY)
- end
- monitor.clear()
- monitor.setCursorPos(1,sizeY-3)
- write("Press U to update CCSuiteUpdater.")
- monitor.setCursorPos(1,sizeY-2)
- write("Press I to install/update CCSuite.")
- monitor.setCursorPos(1,sizeY-1)
- write("Press any other key to quit.")
- while true do
- event, side, xPos, yPos = os.pullEvent()
- if event == "key" then
- if side == keys.u then
- CCSuiteupdate()
- return 0
- elseif side == keys.i then
- CCupdate()
- return 0
- else
- monitor.clear()
- monitor.setCursorPos(1,1)
- return 0
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement