Advertisement
marko_rus

card writer

Jun 9th, 2018
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local com =require("component")
  2. local cardw =com.os_cardwriter
  3. local ccolor
  4. io.write("данные: ")
  5. local data =io.read()
  6. io.write("Имя карты: ")
  7. local name =io.read()
  8. io.write("уровень карты: ")
  9. local color =io.read()
  10.  
  11. if color == "1" then ccolor = 5 end
  12. if color == "2" then ccolor = 13 end
  13. if color == "3" then ccolor = 4 end
  14. if color == "4" then ccolor = 1 end
  15. if color == "5" then ccolor = 14 end
  16.  
  17. cardw.write(data, name, true, ccolor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement