scattergun

Goldcube System Patcher

Aug 4th, 2024 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(0,2)
  3. term.setTextColor(colors.orange)
  4. write(" Goldcube System Patch")
  5. term.setTextColor(colors.yellow)
  6. write("\n\n Type 'OK' to download APIs\n to 'gcpatch' folder.")
  7. term.setCursorPos(5,7)
  8. term.setTextColor(colors.white)
  9. local input = read()
  10. if input == nil or input == "" then input = " " end
  11. input = input:upper()
  12. if input == "OK" then
  13. term.setTextColor(colors.gray)
  14. shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/gcstart gcpatch/gcstart")
  15. sleep(0.25)
  16. shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/template/game.lua gcpatch/game.lua")
  17. sleep(0.25)
  18. shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/apis/goldcubeapi gcpatch/goldcubeapi")
  19. term.setTextColor(colors.lime)
  20. write("Done. Press any button to return to shell.")
  21. repeat
  22. event, button, x, y = os.pullEvent()
  23. until event == "key"
  24. term.clear()
  25. term.setCursorPos(1,1)
  26. shell.run("rom/programs/shell.lua")
  27. shell.exit()
  28. else
  29. term.clear()
  30. term.setCursorPos(1,1)
  31. term.setTextColor(colors.red)
  32. write("Console patch cancelled.\n")
  33. term.setTextColor(colors.white)
  34. end
  35.  
Add Comment
Please, Sign In to add comment