Advertisement
Guest User

ZanqualIntallerCopyright

a guest
Dec 13th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. -- Clear screen
  2. term.setBackgroundColor(colors.black)
  3. term.clear()
  4. term.setCursorPos(1,1)
  5.  
  6. -- If isnt installed
  7. if not fs.exists("/ZanqualScript") then
  8.   -- Copy all the files to computer
  9.   fs.copy("/disk/ZanqualScript","/ZanqualScript")
  10.   -- ^ anything in /disk/ZanqualScript is copied
  11.   -- Print successfully installed
  12.   print([[
  13.  
  14.   Successfully installed Zanqual Script
  15.   Press any key to exit
  16.   ]])
  17. -- If is installed
  18. else
  19.   -- Printalready installed
  20.   print([[
  21.  
  22.   Already installed Zanqual Script
  23.   Press any key to exit
  24.   ]])
  25. end
  26.  
  27. -- Waits for any key
  28. os.pullEventRaw("key")
  29.  
  30. -- Ejects the disk
  31. peripheral.find("drive").ejectDisk()
  32.  
  33. -- Clear screen
  34. term.setBackgroundColor(colors.black)
  35. term.clear()
  36. term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement