bank.qsrc 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. # bank
  2. if $ARGS[0] = 'leave':
  3. if $region = 'city':
  4. gt 'city_center'
  5. else
  6. gt 'pav_commercial'
  7. end
  8. end
  9. if $ARGS[0] = 'start':
  10. *clr & cla
  11. $loc = 'bank'
  12. $loc_arg = 'start'
  13. $menu_loc = 'bank'
  14. $menu_arg = 'start'
  15. menu_off = 0
  16. $location_type = 'public_indoors'
  17. minut += 2
  18. gs 'themes', 'indoors'
  19. '<center><b><font color="maroon">Bank</font></b></center>'
  20. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/bank.jpg"></center>'
  21. if week <= 5 and hour = 16 and minut >= 30 and mey_vika['mey_vika_qw'] >= 32: 'Seems like <a href="exec:gs''mey_tamara_events'',''tamara''">Tamara Meynold</a> is heading home.'
  22. if bankAccount = 0:
  23. 'Do you want to open an account?'
  24. if money > 50:
  25. act 'Open account':
  26. cla
  27. bankAccount = 1
  28. karta = 5000
  29. bankDebtLimit = 5000
  30. 'You are led to on open office and a member of the bank staff goes through your details and ID, then takes 50 <b>₽</b> from you before setting up your account'
  31. '"Your account is now open with your 50 <b>₽</b> and an overdraft protection of 5,000 <b>₽</b>"'
  32. gs 'stat'
  33. act 'Continue': gt 'bank', 'start'
  34. end
  35. else
  36. 'You require 50 <b>₽</b> in cash to be able to open an account.'
  37. end
  38. else
  39. if money > 0:
  40. act 'Deposit money':
  41. cla
  42. menu_off = 1
  43. kartaIN = input ("How much money you want to deposit into the account?")
  44. if kartaIN <= 0 or kartaIN > money:
  45. 'That is not a valid operation.'
  46. else
  47. karta += kartaIN
  48. money -= kartaIN
  49. '<br>You deposited <<kartaIN>> <b>₽</b>, your account balance is now ' + iif(karta >= 0,'<<karta>>','<font color="red"><<karta>></font>') + ' <b>₽</b>.'
  50. end
  51. killvar 'kartaIN'
  52. gs 'stat'
  53. act 'Walk away':gt 'bank', 'start'
  54. end
  55. end
  56. if karta > 0:
  57. act 'Withdraw money':
  58. cla
  59. menu_off = 1
  60. kartaOUT = input ("How much do you want to withdraw from account?")
  61. if kartaOUT <= 0 or kartaOUT > karta:
  62. 'That is not a valid operation.'
  63. else
  64. karta -= kartaOUT
  65. money += kartaOUT
  66. if karta > bankDebtLimit:
  67. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have <<karta - bankDebtLimit>> <b>₽</b> left in your bank account.'
  68. elseif karta = bankDebtLimit:
  69. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have no money left in your bank account.'
  70. else
  71. '<br>You withdraw <<kartaOUT>> <b>₽</b>. <font color="red">Your bank account is overdrawn by <b><<bankDebtLimit - karta>> ₽</b>.</font>'
  72. end
  73. end
  74. killvar 'kartaOUT'
  75. gs 'stat'
  76. act 'Walk away':gt 'bank', 'start'
  77. end
  78. if bankDebtLimitRaised = 0 and karta >= 15000:
  79. act 'See about increasing your credit limit':
  80. if $region = 'city':
  81. gt 'bank', 'loan_officer', 'start'
  82. else
  83. 'You approach the teller and say, “Hello, I''d like to talk to someone about increasing my credit limit.”'
  84. *nl
  85. 'The teller nods and tells you, “Unfortunately our credit limit functions are being handled through our Saint Petersburg branch. I''m sure they''d be happy to help you there.”'
  86. delact 'See about increasing your credit limit'
  87. end
  88. end
  89. end
  90. end
  91. if karta >= bankDebtLimit:
  92. 'You have <<karta - bankDebtLimit>> <b>₽</b> in your account.'
  93. 'You can take out a loan of <font color="blue"><<bankDebtLimit>></font>!'
  94. else
  95. 'You hava a debt of <font color="red"><<bankDebtLimit - karta>></font> <b>₽</b>.'
  96. 'You can take out a loan of <font color="blue"><<karta>></font>!'
  97. end
  98. end
  99. act 'Leave': minut += 2 & gt 'bank', 'leave'
  100. if BurgerQW['BankTask'] = 1 and BurgerQW['BankTaskDay'] = daystart:
  101. act 'Show documents':
  102. *clr & cla
  103. menu_off = 1
  104. minut += 15
  105. BurgerQW['BankTask'] = 2
  106. gs 'stat'
  107. 'You went to the office and showed the required documents to the manager.'
  108. act 'Leave': minut += 5 & gt 'bank', 'leave'
  109. end
  110. end
  111. gs 'stat'
  112. end
  113. if $ARGS[0] = 'loan_officer':
  114. if $ARGS[1] = 'start':
  115. *clr & cla
  116. menu_off = 1
  117. minut += 15
  118. gs 'stat'
  119. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  120. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/001.jpg"></center>'
  121. 'You speak to the teller, who tells you to have a seat in the waiting room.'
  122. 'After waiting about 15 minutes, you are called back to an office, where a handsome young executive awaits.'
  123. 'Standing, he extends his hand and says, "Hello, Miss <<$pcs_lastname>>, my name is Filip Karpenko. I''m the Loan Officer here at VTB Bank. How can I help you today?"'
  124. act 'I''d like to talk about increasing my credit limit, please.':
  125. *clr & cla
  126. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  127. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/002.jpg"></center>'
  128. 'Karpenko nods and asks, "How large a loan were you thinking of taking out?"'
  129. 'Marshaling your nerve and trying to appear confident, you say, "I was thinking of maybe... 50.000 rubles?"'
  130. *nl
  131. '"Let me just review your information for a moment," Karpenko says, typing into his computer.'
  132. 'He reads what appears on his monitor, a ghost of a frown appearing on his face. Suddenly you feel rather foolish for asking for so much money when you''re a young girl not even established in the world yet!'
  133. *nl
  134. 'You shift in your chair, and the next couple of minutes seem very long indeed before Karpenko finally looks up from his screen and says, "I''m sorry, but you seem to have very little in the way of assets or collateral, and you''re very young to be taking out such a significant loan. I''m afraid the bank can''t take a risk on this proposition at this time."'
  135. gs 'stat'
  136. act 'Isn''t there some way you could reconsider, Mr. Karpenko?':
  137. *clr & cla
  138. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  139. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/003.jpg"></center>'
  140. '"I''m sorry, Miss <<$pcs_lastname>>, but my decision is final," Karpenko says firmly.'
  141. *nl
  142. 'You rise from your chair, but you don''t turn and walk away. Instead you approach the loan officer and lean in, giving him an excellent view of your cleavage.'
  143. '"It''s true I don''t have any real collateral" you tell him in a soft, sultry voice, "but that doesn''t mean I don''t have something you want. I think if we put our minds to it, we can come up with conditions that benefit us both."'
  144. *nl
  145. 'Karpenko stares at your breasts as they strain against your top, then looks into your eyes. "I suppose there may be some way we can work out a deal, if you''re willing to be... cooperative."'
  146. gs 'bank', 'loan_officer', 'sex_start'
  147. end
  148. act 'Sadly rise and head for the door':
  149. *clr & cla
  150. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  151. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/004.jpg"></center>'
  152. '"Wait, Miss <<$pcs_lastname>>," Karpenko says as you turn away. "You seem like a trustworthy young lady. There may be a way I can arrange this loan if you''re willing to be... cooperative."'
  153. *nl
  154. 'You''re young, but even so there''s little doubt about what sort of cooperation he''s talking about – the way his eyes are undressing you as you stand before him makes his intentions quite plain.'
  155. 'He wants you to use your body as collateral! Is that really something you would consider? Is the loan really worth that much to you?'
  156. gs 'bank', 'loan_officer', 'sex_start'
  157. end
  158. end
  159. act 'Actually, I''ve changed my mind. Sorry to bother you.':
  160. minut += 3
  161. gt 'bank', 'start'
  162. end
  163. elseif $ARGS[1] = 'sex_start':
  164. menu_off = 1
  165. gs 'stat'
  166. if pcs_inhib >= 35 and stat['vaginal'] ! 0:
  167. gs 'willpower', 'sex', 'self', 'medium'
  168. if will_cost <= pcs_willpwr:
  169. act 'I think you''ll find that I can be very cooperative, Mr. Karpenko..." (<<will_cost>> Willpower)':
  170. *clr & cla
  171. gs 'willpower', 'pay', 'self'
  172. gs 'stat'
  173. gs 'npcgeneratec', 0, 'Mr. Karpenko, Loan Officer for VTB Bank', rand(21,27)
  174. $npc_thdick[$npclastgenerated] = 'thick'
  175. npc_dick[$npclastgenerated] = 21
  176. $npc_firstname[$npclastgenerated] = 'Filip'
  177. $npc_nickname[$npclastgenerated] = 'Mr. Karpenko'
  178. $npc_lastname[$npclastgenerated] = 'Karpenko'
  179. $npc_notes[$npclastgenerated] = 'A young Loan Officer for VTB Bank'
  180. gs 'npcpreservec', $npclastgenerated
  181. $boy = $npclastsaved
  182. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  183. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/005.jpg"></center>'
  184. '"Time to put your mouth where my money is, girl," Karpenko says with a grin that''s just a little unnerving. You start to get the sense that you might just be in for more than you bargained for with this man, but it''s too late to back out now.'
  185. *nl
  186. 'Affecting your sultriest walk and your hungriest gaze, you approach him as he rises from his chair. You open your mouth to say some sophisticated-sounding banter, but Karpenko cuts you off by grabbing your waist and pulling you toward him, stopping your speech by filling your mouth with his probing tongue.'
  187. *nl
  188. 'You gasp involuntarily at his forceful approach, but after a moment you regain some sense of composure. You know what you have to do, so you might as well do it. And who knows? You might actually like it too. You begin kissing him back, alternately probing his mouth and sucking his tongue like a miniature cock.'
  189. *nl
  190. gs 'arousal', 'kiss', 10, 'sub'
  191. gs 'stat'
  192. act 'Get his cock ready to fuck you':
  193. *clr & cla
  194. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  195. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/007.jpg"></center>'
  196. 'After a few moments of tangling tongues, Karpenko sits down in his chair with a nasty grin and says, "You came in here to beg for a loan, didn''t you? I think sluts beg best on their knees with their mouths full."'
  197. *nl
  198. '"Yes, sir," you murmur as you sink to your knees and crawl under the table to go between his legs. Fifty thousand rubles is a lot of money, and if Karpenko wants you to perform like a submissive whore for it, then that''s exactly what you''ll do. And if your pussy is getting a little wet at this treatment, well, you can''t be blamed for that. It is rather thrilling!'
  199. *nl
  200. 'His cock is already hard in his pants as you undo his zipper and fish it out. You pause only for a moment to admire the tool – at 21 thick, glorious centimeters, it is worthy of a little admiration – before putting your skilled mouth to work. You run your tongue up the thick vein on the underside, feeling his heat and tasting his salty flavor, until you come to his flaring mushroom head. Your eyes lock with his as you swirl your tongue around the glans before you swallow him into your throat. You spend the next several minutes on your knees and he spends the next several minutes loving your attentions.'
  201. *nl
  202. 'Finally your efforts bear fruit as Karpenko says, "Let''s move over to the sofa. Time to put that pussy of yours to work!"'
  203. gs 'arousal', 'bj', 15, 'sub'
  204. gs 'stat'
  205. act 'Lie on your side':
  206. *clr & cla
  207. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  208. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/008.jpg"></center>'
  209. 'Karpenko leads you to the leather-covered sofa in his room and lies down on it, pulling you in to spoon with him. You barely get settled before he turns your head and puts his mouth on yours, and you''re still kissing him when, a few moments later, he pushes his cock into your tight, hungry pussy. In a single, swift movement he has buried himself into you up to the balls, its thick length making you gasp into his mouth. Without a pause he begins to fuck you, his hips pushing forward into your ass as he plunders your depths, and before long you lose yourself in the pleasure and find yourself pushing back into him to take every millimeter into you.'
  210. *nl
  211. gs 'arousal', 'kiss', -5, 'sub'
  212. gs 'arousal', 'vaginal', 15, 'sub'
  213. gs 'stat'
  214. act 'Climb on top and ride him':
  215. *clr & cla
  216. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  217. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/009.jpg"></center>'
  218. 'With a growled, “I want you on top, you sweet little whore,” Karpenko pulls his dick out of you and rolls to his back. You swing atop him, and he holds your hips as you reach between your legs and grasp his cock to hold it upright, and both of you gasp in unison as you settle down on it and feel it fill your hungry cunt. You take it all the way down until you''re sitting on his balls and then, eyes closed begin to ride him.'
  219. *nl
  220. '"You''re a dirty little slut, Miss <<$pcs_lastname>>," Karpenko muses as you bounce on him, and you can''t really argue the point since you''re fucking him to get a bank loan. And damn but it feels good, with his thick cock stretching you and finding wonderful depths to your pussy. You grind your hips against him putting friction on your clit, then start riding him again, making yourself gasp every time you take him to the hilt.'
  221. *nl
  222. gs 'arousal', 'vaginal', 15, 'sub'
  223. gs 'stat'
  224. act 'Taking it like a bitch': gt 'bank', 'loan_officer', 'sex_finish'
  225. end
  226. end
  227. act 'Get on top':
  228. *clr & cla
  229. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  230. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/009.jpg"></center>'
  231. 'Karpenko leads you to the plush leather sofa and lies down on his back, and you waste no time climbing atop him. He holds your hips as you reach between your legs and grasp his cock to hold it upright, and both of you gasp in unison as you settle down on it and feel it fill your hungry cunt. You take it all the way down until you''re sitting on his balls and then, eyes closed begin to ride him.'
  232. *nl
  233. '"You''re a dirty little slut, Miss <<$pcs_lastname>>," Karpenko muses as you bounce on him, and you can''t really argue the point since you''re fucking him to get a bank loan. And damn but it feels good, with his thick cock stretching you and finding wonderful depths to your pussy. You grind your hips against him putting friction on your clit, then start riding him again, making yourself gasp every time you take him to the hilt.'
  234. *nl
  235. gs 'arousal', 'vaginal', 15, 'sub'
  236. gs 'stat'
  237. act 'Spoon-fucking':
  238. *clr & cla
  239. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  240. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/008.jpg"></center>'
  241. '"On your side now," Karpenko tells you gruffly. You clamber off and let him adjust himself against the back of the sofa before moving to join him. He grabs you roughly, pulling you in to spoon with him. You barely get settled before he turns your head and puts his mouth on yours, and you''re still kissing him when, a few moments later, he pushes his cock into your tight, hungry pussy. In a single, swift movement he has buried himself into you up to the balls, its thick length making you gasp into his mouth. Without a pause he begins to fuck you, his hips pushing forward into your ass as he plunders your depths, and before long you find yourself pushing back into him to take every millimeter into you.'
  242. *nl
  243. gs 'arousal', 'kiss', -5
  244. gs 'arousal', 'vaginal', 15, 'sub'
  245. gs 'stat'
  246. act 'Taking it like a bitch': gt 'bank', 'loan_officer', 'sex_finish'
  247. end
  248. end
  249. end
  250. end
  251. else
  252. act 'I think you''ll find that I can be very cooperative, Mr. Karpenko..." (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  253. end
  254. end
  255. act 'No, sleeping with a man for money is not something you''re willing to do!':
  256. *clr & cla
  257. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  258. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/006.jpg"></center>'
  259. '"I''m sorry, Mr. Karpenko," you say as you pull away, "but I really can''t do this after all I''m just not that sort of girl. I''m sorry to waste your time."'
  260. 'You turn and head for the door, but Karpenko''s voice stops you before you reach it. "Wait a moment, Miss <<$pcs_lastname>>. Before you go, I want you to know that this offer remains open. If you change your mind, you can return at any time and we can arrange the loan you desire."'
  261. '"I... will keep that in mind," you mutter as you throw open the door and run back to the safety of the lobby.'
  262. *nl
  263. gs 'stat'
  264. act 'Flee the room':
  265. minut += 10
  266. gt 'bank', 'start'
  267. end
  268. end
  269. elseif $ARGS[1] = 'sex_finish':
  270. *clr & cla
  271. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  272. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/010.jpg"></center>'
  273. 'After several long, wonderful minutes of railing you hard, Karpenko swats your ass loudly and says, "I want to fuck you from behind now. Bend over the table."'
  274. *nl
  275. 'He''s ordering you around like a whore he paid for, but the whole thing is quite thrilling – and he really knows how to use that big dick he''s swinging! You almost jump off the couch and run to the table, bending over and swinging one leg up onto the surface to brace yourself. An instant later Karepenko''s hands are on your upturned ass and then his cock is back inside you – and this time he''s not holding back a bit! He thrusts so fiercely that your whole body shakes every time his hips collide with your ass, and your pussy sucks fiercely at his rod as it hammers in and out.'
  276. *nl
  277. 'You''re trying to be quiet – it would be mortifying if anyone outside this room heard you being screwed like a cheap prostitute! – but he is too forceful and too skilled, and soon you are giving a loud, moaning gasp with every thrust, too lost in the bliss he is giving you to care a damn what happens after he''s done with you. You don''t even know how long that state lasts, lost in pleasure as you are, but you suddenly become aware that he has given you one last particularly deep thrust and is now still as his cock leaps and jumps inside you.'
  278. *nl
  279. gs 'arousal', 'vaginal', 15, 'sub'
  280. gs 'stat'
  281. act 'What did you do?!':
  282. *clr & cla
  283. '<center><b><font color="maroon">Mr. Karpenko</font></b></center>'
  284. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/bank/sex/011.jpg"></center>'
  285. 'Sudden panic surges in you chest and dispels the pleasure-cobwebs in an instant as you demand, "Did you just come inside me?!?"'
  286. *nl
  287. 'Karpenko steps back and a flood of his spunk pours out of your pussy to run down your thighs, but you have no delusions that all of it came out. With a smug grin he grabs a tissue from his desk and starts wiping his dick off, saying, "You just got a loan of 50.000 rubles. Did you really think I would authorize that sort of loan to a girl like you and not finish inside?"'
  288. *nl
  289. '"But I could get pregnant!" you object.'
  290. *nl
  291. '"You can afford a hell of a lot of morning after pills," he says with a shrug as he tucks his cock away and sits back at his desk. "Remember, you will need to pay this loan back like any other, and don''t think you can come back for another loan like it in the future. Now, if you''ll excuse me, I have work to do. I trust you can see yourself out."'
  292. *nl
  293. 'Feeling humiliated but richer, you adjust your clothing and open the office door to step out into the hallway. The first thing you see is a cluster of three female bank employees looking at you, and you can see from their smirks and how they whisper to each other that they know exactly what you were up to with the loan officer. Cheeks burning with shame, you hurry away.'
  294. *nl
  295. gs 'cum_call', '', $boy, 1, '', '', 110
  296. gs 'cuminsidereact', 'Mr. Karpenko'
  297. gs 'fame', 'city', 'sex', 3
  298. gs 'arousal', 'end'
  299. bankDebtLimit += 45000
  300. money += 45000
  301. bankDebtLimitRaised = 1
  302. minut += 30
  303. gs 'stat'
  304. act 'Head back to the lobby': gt 'bank', 'start'
  305. end
  306. end
  307. end
  308. if $ARGS[0] = 'deposit_cash':
  309. kartaIN = input ("How much money do you want to deposit into your account?")
  310. if kartaIN <= 0 or kartaIN > money:
  311. 'Invalid operation.'
  312. else
  313. atmDeposit[] += kartaINATM - 100
  314. atmDepositDate[] = daystart + 2
  315. money -= kartaINATM
  316. '<br>You deposit <<kartaINATM>> <b>₽</b> into your account.'
  317. 'It will take 2 days for funds to be available. Your new balance will be <<karta - bankDebtLimit + atmDeposit[]>> <b>₽</b>.'
  318. end
  319. end
  320. if $ARGS[0] = 'cikl':
  321. !!------------------------------------------------------------------------------------------------------------
  322. !! Banking
  323. !!------------------------------------------------------------------------------------------------------------
  324. !!MJ: Add some (daily) interest to the bank account.
  325. !!Not very realistic but won''t make anyone too rich.
  326. if bankAccount = 1:
  327. kartatotal = karta - bankDebtLimit
  328. :kartaloop
  329. if kartatotal > 20000000:
  330. kartacount += 1
  331. largekarta[kartacount] = 20000000
  332. kartatotal -= 20000000
  333. jump 'kartaloop'
  334. else
  335. largekarta[0] = kartatotal
  336. end
  337. if karta - bankDebtLimit >= 2000000:
  338. !! yearly interest of 2.3% recalculated into daily interest = 0.006% daily
  339. intrate = 60
  340. elseif karta - bankDebtLimit >= 0:
  341. !! yearly interest of 1.15% recalculated into daily interest = 0.003% daily
  342. intrate = 30
  343. else
  344. !! yearly overdraft interest of 20% recalculated into daily interest = 0.055% daily
  345. intrate = 550
  346. end
  347. :intloop
  348. if kartacount = 0:
  349. smallmoneypos += (largekarta[0] * intrate)
  350. largekarta[0] = 0
  351. if kartacount ! 0: kartacount = 0
  352. else
  353. smallmoneypos += (largekarta[kartacount] * intrate)
  354. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000: karta += smallmoneypos / 1000000 & smallmoneypos = smallmoneypos mod 1000000
  355. largekarta[kartacount] = 0
  356. kartacount -= 1
  357. jump 'intloop'
  358. end
  359. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000:
  360. karta += smallmoneypos / 1000000
  361. smallmoneypos = smallmoneypos mod 1000000
  362. end
  363. bank_i = 0
  364. :atmdeposit_loop
  365. if arrsize('atmDeposit') > 0:
  366. if atmDepositDate[bank_i] <= daystart:
  367. if atmDeposit[bank_i] > 0:
  368. karta += atmDeposit[bank_i]
  369. end
  370. killvar 'atmDeposit', bank_i
  371. killvar 'atmDepositDate', bank_i
  372. else
  373. bank_i += 1
  374. end
  375. jump 'atmdeposit_loop'
  376. end
  377. killvar 'bank_i'
  378. ! Daily Internet and mobile checks
  379. $internet_action_messages = func('internet_mobile', 'check_subscription_actions')
  380. count = arrsize('$internet_action_messages')
  381. bank_i = 0
  382. :loop_messages
  383. if $internet_action_messages[bank_i] ! '': *pl $internet_action_messages[bank_i]
  384. bank_i += 1
  385. if bank_i < count: jump 'loop_messages'
  386. killvar 'bank_i'
  387. killvar 'count'
  388. end
  389. !!------------------------------------------------------------------------------------------------------------
  390. !! Payments
  391. !!------------------------------------------------------------------------------------------------------------
  392. if day ! 25:
  393. if paydayHusb = 1:paydayHusb = 0
  394. if workKafe['job'] = 1 and paydayKafe = 1:paydayKafe = 0
  395. if workSec = 1 and paydaySec = 1:paydaySec = 0
  396. !! No idea what haday is, it does not show up anywhere else beyond this one line
  397. !! All the checks for the whether Sveta owns certain properties make no sense, if it is the 25th, haday, electroday and
  398. !! kabelday are set to 0. The fact that Sveta doesn''t own or rent properties only means that their value is meaningless
  399. !! anyway.
  400. if haday = 1: haday = 0
  401. if electroday = 1: electroday = 0
  402. if kabelday = 1: kabelday = 0
  403. if scholarshipday = 1: scholarshipday = 0
  404. if nopaytanwork = 1: nopaytanwork = 0
  405. if nopaypoly = 1: nopaypoly = 0
  406. if nopaysalon = 1: nopaysalon = 0
  407. if paydaybistrosec = 1: paydaybistrosec = 0
  408. else
  409. !! meynold payment
  410. if mey_vika['mey_vika_qw'] >= 35 and mey_tamara['qw_end'] = 0:
  411. if mey_tamara['help_count'] < 10:
  412. karta += 10000
  413. '<b><font color=green>For your efforts aunt Tamara gave you 10,000 rubles</font></b>'
  414. else
  415. karta += 15000
  416. '<b><font color=green>For your efforts aunt Tamara gave you 15,000 rubles</font></b>'
  417. end
  418. mey_tamara['help_count'] = 0
  419. end
  420. if BurgerQW['Secretary'] = 1 and BurgerQW['SecretaryTimesWorked'] > 0 and paydaybistrosec = 0:
  421. Pay = BurgerQW['SecretaryTimesWorked'] * 1250
  422. BurgerQW['SecretaryTimesWorked'] = 0
  423. karta += Pay
  424. paydaybistrosec = 1
  425. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  426. end
  427. if workKafe['job'] = 1 and paydayKafe = 0:
  428. paydayKafe = 1
  429. pay = smenaKafe * 600
  430. karta += pay
  431. smenaKafe = 0
  432. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a waitress in a cafe.</font></b>'
  433. end
  434. if workhosp = 1 and nopaypoly = 0:
  435. pay = smena * 1000
  436. karta += pay
  437. smena = 0
  438. nopaypoly = 1
  439. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in the clinic.</font></b>'
  440. end
  441. if worksalon = 1 and nopaysalon = 0:
  442. pay = smenaSalon * 1560
  443. karta += pay
  444. smenaSalon = 0
  445. nopaysalon = 1
  446. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in a beauty salon.</font></b>'
  447. end
  448. if tanwork = 1 and nopaytanwork = 0:
  449. nopaytanwork = 1
  450. karta += 10000
  451. '<b><font color="green">Your salary of 10,000 <b>₽</b> has been paid into your bank account for your work as a house maid.</font></b>'
  452. end
  453. if workSec = 1 and paydaySec = 0:
  454. paydaySec = 1
  455. pay = sekDay * 1500
  456. karta += pay
  457. sekDay = 0
  458. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  459. end
  460. if workFabrika = 1:
  461. pay = smenaFabrika * 600
  462. smenaFabrika = 0
  463. karta += pay
  464. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job at the garment factory.</font></b>'
  465. end
  466. if husband > 0 and paydayHusb = 0:
  467. paydayHusb = 1
  468. if husbFin = 0:huspay = 20000
  469. if husbFin = 1:huspay = 30000
  470. if husbFin = 2:huspay = 40000
  471. karta += huspay
  472. '<b><font color="green">Your husband has paid <<huspay>> <b>₽</b> into your bank account.</font></b>'
  473. end
  474. if func('uniutil', 'scholarship' , 'is_active') and scholarshipday = 0:
  475. scholarshipday = 1
  476. karta += func('uniutil', 'scholarship', 'get')
  477. '<b><font color="green">You have received '+func('uniutil', 'scholarship', 'get')+' <b>₽</b> from your scholarship.</font></b>'
  478. end
  479. ! Utilities for all apartments.
  480. if func('homes_properties', 'get_owned_homes_count') > 0 and electroday = 0:
  481. gs 'housing', 'util'
  482. if bankAccount = 1 and karta - bankDebtLimit >= elektro:
  483. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account.</font></b>'
  484. electroday = 1
  485. if elektro >= 2000:
  486. elektro = 2000 + rand(0, 100)
  487. karta -= elektro * hcount_util
  488. end
  489. elseif bankAccount = 1 and karta >= elektro:
  490. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account and overdraw facility. Please contact your bank.</font></b>'
  491. electroday = 1
  492. if elektro >= 2000:
  493. elektro = 2000 + rand(0, 100)
  494. karta -= elektro * hcount_util
  495. end
  496. elseif bankAccount = 0 and money >= elektro:
  497. '<b><font color="red">You currently do not have a bank account setup for automatic utilities payments. <<elektro>> <b>₽</b> has been deducted from your cash holdings.</font></b>'
  498. electroday = 1
  499. if elektro >= 2000:
  500. elektro = 2000 + rand(0, 100)
  501. money -= elektro * hcount_util
  502. end
  503. else
  504. '<b><font color="red">Your card was declined during automatic debit of <<elektro>> <b>₽</b>, for automatic utilities payment.</font></b>'
  505. end
  506. end
  507. ! Cable for all apartments
  508. if kabel > 0 and kabelday = 0:
  509. gs 'housing', 'cable'
  510. if bankAccount = 1 and karta - bankDebtLimit >= (300 * hcount_cable):
  511. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account, for you cable TV subscription.</font></b>'
  512. kabelday = 1
  513. karta -= 300 * hcount_cable
  514. elseif bankAccount = 1 and karta >= (300 * hcount_cable):
  515. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account and overdraw facility, for you cable TV subscription.</font></b>'
  516. kabelday = 1
  517. karta -= 300 * hcount_cable
  518. elseif bankAccount = 0 and money >= (300 * hcount_cable):
  519. '<b><font color="red">You currently do not have a bank account setup for automatic payment of your cable TV subscription. 300 <b>₽</b> has been deducted from your cash holdings.</font></b>'
  520. kabelday = 1
  521. money -= 300 * hcount_cable
  522. else
  523. '<b><font color="red">Your card was declined during automatic debit of 300 <b>₽</b> for cable TV subscription.</font></b>'
  524. end
  525. end
  526. end
  527. !! Checking for tenants moving out
  528. gs 'homes_properties', 'tenant_move_out_check'
  529. !!----------------------------------------
  530. !! Rent
  531. !!----------------------------------------
  532. !! property_rent, property_days, $property_name, $property_display $property_code
  533. gs 'homes_properties', 'get_rented_properties'
  534. bank_count = ARRSIZE('property_name')
  535. if bank_count > 0:
  536. bank_i = 0
  537. :loop_rent_payments
  538. if property_days[bank_i] <= 2:
  539. !From bank
  540. if bankAccount = 1 and karta >= property_rent[bank_i]:
  541. '<b><font color="green">Your rent payment of <<property_rent[bank_i]>> <b>₽</b> for your <<$property_name[bank_i]>>, has automatically been deducted from your bank account' + iif(karta >= bankDebtLimit, '', ' and overdraw facility. Please contact your bank regarding your overdraw repayment') + '.</font></b>'
  542. gs 'homes_properties', 'pay_rent', $property_code[bank_i], 'card'
  543. !karta -= property_rent[bank_i]
  544. !gs 'homes_properties', 'add_rent_days', $property_code[bank_i]
  545. elseif property_days[bank_i] <= 0:
  546. gs 'homes_properties', 'cancel_rent', $property_code[bank_i]
  547. elseif bankAccount = 0:
  548. '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<property_rent[bank_i]>> <b>₽</b> for your <<$property_name[bank_i]>>. To avoid eviction, please make a manual payment as soon as possible.</font></b>'
  549. else
  550. nl
  551. '<b><b><font color="red">Your card was declined during automatic rent deduction of <<property_rent[bank_i]>> <b>₽</b> for your <<$property_name[bank_i]>>. To avoid eviction, please rectify as soon as possible.</font></b>'
  552. end
  553. end
  554. bank_i += 1
  555. if bank_i < bank_count: jump 'loop_rent_payments'
  556. gs 'homes_properties', 'clean_up_property_data'
  557. killvar 'bank_i'
  558. end
  559. killvar 'bank_count'
  560. !!------------------------------------------------------------------------------------------------------------
  561. end
  562. --- bank ---------------------------------