Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --設定--
- --ユーザーID--
- id = "0001"
- --パスワード--
- pass = "1234"
- --管理パスワード--
- masterpass = "4321"
- --サーバーID--
- server = "2"
- --ユーザー名--
- username = "yutaponabe"
- --モデムの取り付け位置--
- modem = "bottom"
- -------------------------------------------------
- rednet.open(modem)
- while true do
- rednet.send(server, "open")
- local sender_id, message, distance = rednet.receive()
- if message == "OK" then
- print("Welcam to MINHO Bank!!")
- print("Enter Users ID")
- okid = read()
- if okid == id then
- print("Enter Password")
- okpass = read()
- if okpass == pass then
- print("Welcam ", username)
- print("What will you do? Withdrawal or Transfer")
- or = read()
- if or == "transfer" then
- print("How many dollars?")
- dollars = read()
- print("Please wait")
- sleep(2)
- rednet.send(server, "transfer ", username, dollars)
- print("Thank you for using")
- elseif or == "withdrawal" then
- print ("How many dollars?")
- dollars = read()
- print("Please wait")
- sleep(2)
- rednet.send(server, "withdrawal", username, dollars)
- print("Thank you for using")
- end
- else
- print("ERROR_202")
- end
- else
- print("Please call a clerk. ERROR_NO_101")
- end
- sleep(0.1)
- end
Add Comment
Please, Sign In to add comment