wv1106

slotmachiene installer computercraft open file for more info

Apr 13th, 2021 (edited)
1,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.81 KB | None | 0 0
  1. ----------------------------------------------------------------
  2. --to start this file make sure there are no other files on the computer
  3. --and when you install this file don't give it the name startup.lua
  4. ----------------------------------------------------------------
  5. --      manual
  6. --
  7. -- when you use this place your computer on a disk drive for Mcards from the cashier (one of my previous scripts)
  8. -- Also put a lever on the right of the computer
  9. -- to control it use your up and down arrow keys and enter to confirm
  10. -- if you have anymore questions please contact me wv116#1224 on discord
  11. -----------------------------------------------------------------------------------
  12.  
  13. local confirm = false
  14. local install = false
  15. function text()
  16.     term.setCursorPos(13, 7)
  17.     print("this will create a startup.")
  18.     term.setCursorPos(14, 8)
  19.     print("do you want to continue?")
  20. end
  21. function confirmation()
  22.     term.setCursorPos(18, 10)
  23.     local event, key, isHeld = os.pullEvent("key")
  24.     if key == keys.left then
  25.         write(">Yes<     No ")
  26.         confirm = true
  27.     elseif key == keys.right then
  28.         write(" Yes     >No<")
  29.         confirm = false
  30.     end
  31.  
  32. end
  33.  
  34. term.clear()
  35. term.setCursorPos(18, 10)
  36. print(" Yes     >No<")
  37. while install == false do
  38.     text()
  39.     confirmation()
  40.     local event, key, isHeld = os.pullEvent("key")
  41.     if confirm and key == keys.enter then
  42.         install = true
  43.     end
  44. end
  45. term.clear()
  46. term.setCursorPos(1, 1)
  47. shell.run("pastebin get aR4fQHTP startup.lua")
  48. shell.run("pastebin get C7mSXvqy images/orange.nfp")
  49. shell.run("pastebin get 7UdcsVhG images/none.nfp")
  50. shell.run("pastebin get JCsUT1nd images/dollar.nfp")
  51. shell.run("pastebin get 3t7A2zNU images/bell.nfp")
  52. shell.run("pastebin get r9Y2Ma0j images/7.nfp")
  53. shell.run("pastebin get 2aagtpwg images/diamond.nfp")
Add Comment
Please, Sign In to add comment