yutaponabe

test bank c892e8923473

Mar 4th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. --設定--
  2.  
  3. --ユーザーID--
  4. id = "0001"
  5. --パスワード--
  6. pass = "1234"
  7. --管理パスワード--
  8. masterpass = "4321"
  9. --サーバーID--
  10. server = "3"
  11. --ユーザー名--
  12. username = "yutaponabe"
  13. --モデムの取り付け位置--
  14. modem = "bottom"
  15. --この世の価値--
  16. kati = "stone"
  17. -------------------------------------------------
  18.  
  19.  
  20. while true do
  21. term.clear()
  22. term.setCursorPos(1,1)
  23. print("Welcam to MINHO Bank!!")
  24. print("Enter Users ID")
  25. okid = read()
  26. term.clear()
  27. term.setCursorPos(1,1)
  28. if okid == id then
  29. term.clear()
  30. term.setCursorPos(1,1)
  31. print("Enter Password")
  32. okpass = read()
  33. term.clear()
  34. term.setCursorPos(1,1)
  35. if okpass == pass then
  36. print("Welcam ", username)
  37. print("What will you do? Withdrawal or Transfer")
  38. orororor = read()
  39. term.clear()
  40. term.setCursorPos(1,1)
  41. if orororor == "transfer" then
  42. print("How many dollars?")
  43. dollars = read()
  44. term.clear()
  45. term.setCursorPos(1,1)
  46. print("Please wait")
  47. sleep(2)
  48. commands.clear(username, kati, dollars)
  49. print("Thank you for using")
  50. elseif orororor == "withdrawal" then
  51. print ("How many dollars?")
  52. dollars = read()
  53. term.clear()
  54. term.setCursorPos(1,1)
  55. print("Please wait")
  56. sleep(2)
  57. commands.give(username, kati, dollars)
  58. print("Thank you for using")
  59. sleep(2)
  60. end
  61. else
  62. print("ERROR_202")
  63. slepp(1000)
  64. end
  65.  
  66. else
  67. print("ERROR_303")
  68.  
  69.  
  70. sleep(1000)
  71.  
  72. end
  73. end
Add Comment
Please, Sign In to add comment