sxrgini

CC: Slots Installer

Nov 3rd, 2024 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------------------------------------
  2. -- CC: Slots Created by iiAmPanda
  3. -- To start this file make sure there are no other files on the computer
  4. -- DO NOT give it the name startup.lua
  5. ----------------------------------------------------------------
  6. -- Place your computer on a disk drive for Casino Cards (cDaurxvD)
  7. -- Put a lever on the right side of the computer run the program "pastebin run RkRVwZTW"
  8. -- To control it use your up and down arrow keys and enter to confirm
  9. -----------------------------------------------------------------------------------
  10.  
  11. local confirm = false
  12. local install = false
  13. function text()
  14.     term.setCursorPos(13, 7)
  15.     print("This will create a startup.")
  16.     term.setCursorPos(14, 8)
  17.     print("Do you want to continue?")
  18. end
  19. function confirmation()
  20.     term.setCursorPos(18, 10)
  21.     local event, key, isHeld = os.pullEvent("key")
  22.     if key == keys.left then
  23.         write("[Yes]     No ")
  24.         confirm = true
  25.     elseif key == keys.right then
  26.         write(" Yes     [No]")
  27.         confirm = false
  28.     end
  29.  
  30. end
  31.  
  32. term.clear()
  33. term.setCursorPos(18, 10)
  34. print(" Yes     [No]")
  35. while install == false do
  36.     text()
  37.     confirmation()
  38.     local event, key, isHeld = os.pullEvent("key")
  39.     if confirm and key == keys.enter then
  40.         install = true
  41.     end
  42. end
  43. term.clear()
  44. term.setCursorPos(1, 1)
  45. shell.run("pastebin get hVc4XJ0j startup.lua")
  46. shell.run("pastebin get C7mSXvqy images/orange.nfp")
  47. shell.run("pastebin get 7UdcsVhG images/none.nfp")
  48. shell.run("pastebin get JCsUT1nd images/dollar.nfp")
  49. shell.run("pastebin get 3t7A2zNU images/bell.nfp")
  50. shell.run("pastebin get r9Y2Ma0j images/7.nfp")
  51. shell.run("pastebin get 2aagtpwg images/diamond.nfp")
Add Comment
Please, Sign In to add comment