1
0

bank 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # bank
  2. if $ARGS[0] = 'start':
  3. cla
  4. clr
  5. *clr
  6. minut += 5
  7. gs 'stat'
  8. fcolor = rgb(0, 0, 0)
  9. bcolor = rgb(255, 255, 255)
  10. lcolor = rgb(106, 90, 205)
  11. '<center><b><font color="maroon">Bank</font></b></center>'
  12. '<center><img src="images/etogame/bank.jpg"></center>'
  13. if week <= 5 and hour = 16 and minut >= 30 and mey_vika['mey_vika_qw'] >= 32:
  14. !r125
  15. 'Looks like <a href="exec:gs''mey_tamara_events'',''tamara''">Tamara Mikhailovna</a> is going home.'
  16. end
  17. if bankAccount = 0:
  18. 'Do you want to open your account?'
  19. else
  20. if karta >= 0:
  21. 'You have <<karta>> <b>₽</b> in your account.'
  22. 'You have an approved credit of <font color="blue"><<bankDebtLimit>></font>!'
  23. else
  24. 'You hava a debt of <font color="red"><<-1 * karta>></font> <b>₽</b>.'
  25. 'You have an approved credit of <font color="blue"><<bankDebtLimit + karta>></font>!'
  26. end
  27. end
  28. if BankPapper = 1 and dayBankPapper = daystart:
  29. act 'Give documents':
  30. cls
  31. minut += 15
  32. BankPapper = 2
  33. gs 'stat'
  34. 'You went to the office and gave the documents to the manager.'
  35. act 'Leave':
  36. minut += 5
  37. if bankloc = 1:
  38. gt 'down'
  39. else
  40. gt 'pavCommercial'
  41. end
  42. end
  43. end
  44. end
  45. if money > 0:
  46. act 'Deposit money':
  47. cla
  48. minut += 5
  49. kartaIN = input ("How much money you want to deposit into the account?")
  50. if kartaIN <= 0 or kartaIN > money:
  51. 'Not correct operation.'
  52. else
  53. karta += kartaIN
  54. money -= kartaIN
  55. if bankAccount = 0:
  56. bankAccount = 1
  57. bankDebtLimit = 5000
  58. end
  59. '<br>You put on the account <<kartaIN>> <b>₽</b>, now you have <<karta>> <b>₽</b> on it.'
  60. end
  61. act 'Move away':gt 'bank', 'start'
  62. end
  63. end
  64. if karta + bankDebtLimit > 0:
  65. act 'Withdraw money':
  66. cla
  67. minut += 5
  68. kartaOUT = input ("How much do you want to withdraw from account?")
  69. if kartaOUT <= 0 or kartaOUT > karta + bankDebtLimit:
  70. 'Not correct operation.'
  71. else
  72. karta -= kartaOUT
  73. money += kartaOUT
  74. '<br>You debited <<kartaOUT>> <b>₽</b>, now you have <<karta>> <b>₽</b> on it.'
  75. end
  76. act 'Move away':gt 'bank', 'start'
  77. end
  78. end
  79. act 'Leave':
  80. minut += 5
  81. if bankloc = 1:
  82. gt 'down'
  83. else
  84. gt 'pavCommercial'
  85. end
  86. end
  87. end
  88. --- bank ---------------------------------