Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.clear()
- local image = paintutils.loadImage("bank")
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(16, 8)
- term.write("Please input card")
- while not disk.hasData("top") do
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.clear()
- local image = paintutils.loadImage("bank")
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(16, 8)
- term.write("Please enter code")
- code = ""
- for i=1, 4 do
- ponies=false
- while not ponies do
- local event, key = os.pullEvent("key")
- if key>1 and key<11 then
- amount = key-1
- ponies = true
- end
- end
- code = code..amount
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(16, 10)
- term.setBackgroundColor(colors.lightBlue)
- term.write(code)
- end
- shell.run("delete", "disk/temp")
- shell.run("cp", "disk/money", "disk/temp")
- file = fs.open("disk/temp", "r")
- stringcode = file.readLine()
- file.close()
- shell.run("delete", "disk/temp")
- stringcode = string.sub(stringcode, 5, -5)
- file = fs.open("disk/temp", "w")
- file.writeLine(stringcode)
- file.close()
- shell.run("decrypt", "disk/temp", code)
Advertisement
Add Comment
Please, Sign In to add comment