nap14hockey

Computercraft Keycard Door Page 2

Jun 23rd, 2014
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1.   print("Card Creator By Nap14hockey")
  2. while true do
  3.  local _, side = os.pullEvent("disk")
  4.   term.setCursorPos(1,1)
  5.   if fs.exists('disk/dev') then
  6.     break
  7.     end
  8.   print("Enter A Level Of The New Card; 1, 2, 3, 4")
  9.   local input = read()
  10.   one = 1
  11.   two = 2
  12.   three = 3
  13.   four = 4
  14.   if input == four then
  15.     file = fs.open(“disk\level4”, “w”)
  16.     end
  17.   elseif input == three then
  18.     file = fs.open(“disk\level3”, “w”)
  19.     end
  20.   elseif input == 2 then
  21.     file = fs.open(“disk\level2”, “w”)
  22.     end
  23.   elseif input == 1 then
  24.     file = fs.open(“disk\level1”, “w”)
  25.     end
  26.  
  27.  
  28.   end
Advertisement
Add Comment
Please, Sign In to add comment