yutaponabe

test bank 32134357825857894

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