agentned.qsrc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. # agentned
  2. if $ARGS[0] = 'start':
  3. cla
  4. *clr
  5. CLOSE ALL
  6. frost = 0
  7. gs'stat'
  8. gs'dina'
  9. gs 'housing', 'rent'
  10. '<center><b><font color = maroon>Kirsanova Real Estate Agency</font></b></center>'
  11. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  12. *nl
  13. 'The head office of the largest real estate agency in the area.'
  14. *nl
  15. 'At the reception you notice a banner, which is written in large print:'
  16. '"Please note, that all transactions of purchases and sales are made exclusively through your bank account. Rent payments excluded."'
  17. if home_owned[1] > 1 and ArendHouseSL > 0:
  18. *nl
  19. 'You have <B><<ArendHouseSL>> days</B> rental on your St. Petersburg apartment remaining. '+iif(money >= home_rent[1],'You can make a rent <a href="exec:money -= home_rent[1] & home_owned[1] = 1 & ArendHouseSL += ArendHouseSL_due & gs ''$menu_obnovit''">payment</a> in cash.','You can''t afford to pay rent at the moment')+''
  20. end
  21. if home_owned[4] > 0 and ArendHouseSL4 > 0:
  22. *nl
  23. 'You have <B><<ArendHouseSL4>> days</B> rental on your Pushkin apartment. '+iif(money >= home_rent[4],'You can make a rent <a href="exec:money -= home_rent[4] & home_owned[1] = 1 & ArendHouseSL4 += ArendHouseSL_due & gs ''$menu_obnovit''">payment</a> in cash.','You can''t afford to pay rent at the moment')+''
  24. end
  25. if home_owned[1] = 2 or home_owned[3] > 0 or home_owned[5] = 1:
  26. *nl
  27. 'You own the follwing property:'
  28. *nl
  29. if home_owned[1] = 2: 'An apartment in St. Petersburg residential area'
  30. if home_owned[3] > 0: 'An cottage located in the cooperative village'
  31. if home_owned[5] = 1: 'A plot of land in the St. Petersburg suburbs'
  32. *nl
  33. 'We are at your service if you decide to <a href="exec:GT ''agentned'',''sell''">sell</a>.'
  34. end
  35. act 'View rentals': gt 'agentned', 'rent'
  36. act 'View properties for sale': gt 'agentned', 'buy'
  37. act '<B>Leave</B>':
  38. minut += 5
  39. gt'down'
  40. end
  41. end
  42. if $ARGS[0] = 'buy':
  43. cla
  44. *clr
  45. gs 'housing', 'sale'
  46. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  47. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  48. *nl
  49. minut += 5
  50. gs 'stat'
  51. if home_owned[1] = 0 or home_owned[3] = 0 or home_owned[4] = 0 or home_owned[5] = 0:
  52. if home_owned[1] = 0:
  53. 'There is an apartment in the city residential area available for <<$home_value_txt[1]>> <b>₽</b>.'
  54. *nl
  55. if karta + bankDebtLimit >= home_value[1]:act 'Buy the city residential apartment': gt 'agentned', 'buy_cityres'
  56. elseif home_owned[1] = 1:
  57. 'You could buy your current rental apartment for <<$home_value_txt[1]>> <b>₽</b>.'
  58. *nl
  59. if karta + bankDebtLimit >= home_value[1]:act 'Buy the city residential apartment': gt 'agentned', 'buy_cityres'
  60. end
  61. if home_owned[3] = 0:
  62. 'There is a holiday cottage with an adjacent allotment in the village, for <<$home_value_txt[3]>> <b>₽</b>.'
  63. *nl
  64. if karta + bankDebtLimit >= home_value[3]:act 'Buy the cottage in the village': gt 'agentned','buy_dacha'
  65. end
  66. if home_owned[5] = 0:
  67. 'There is a plot in the suburbs with planning permission for a mansion for <<$home_value_txt[5]>> <b>₽</b>.'
  68. *nl
  69. if karta + bankDebtLimit >= home_value[5]:act 'Buy the plot in the suburbs': gt 'agentned','buy_Mansion'
  70. end
  71. else
  72. 'We currently have no properties listed for sale.'
  73. end
  74. act 'Return':gt'agentned', 'start'
  75. end
  76. if $ARGS[0] = 'sell':
  77. cla
  78. *clr
  79. gs 'housing', 'sale'
  80. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  81. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  82. *nl
  83. if home_owned[1] = 2 and rembedr = 1 and remsitr = 1 and remkorr = 1 and remvanr = 1 and remkuhr = 1:
  84. !Renovated city residential apartment
  85. home_value1 = ((home_value[1] + 250000) + rand(-100000, 100000))
  86. 'We have found a buyer for your renovated apartment in the city residential area. They will offer <<home_value1>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value1/100*95>>'
  87. act 'Sell the renovated apartment':
  88. *clr
  89. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  90. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  91. minut += 30
  92. 'You spend half an hour filling in the paperwork for the sale of your renovated apartment, with a loss of around 5% for fees and taxes. <<home_value1/100*95>> <b>₽</b> has been paid into your bank account.'
  93. home_owned[1] = 0
  94. ArendHouseSL = 0
  95. if bankaccount = 1:
  96. karta += home_value1/100*95
  97. else
  98. money += home_value1/100*95
  99. end
  100. delact 'Sell the renovated apartment'
  101. gs 'stat'
  102. end
  103. end
  104. if home_owned[1] = 2:
  105. !City residential apartment
  106. home_value1 = (home_value[1] + rand(-100000, 100000))
  107. 'We have found a buyer for your apartment in the city residential area. They will offer <<home_value1>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value1/100*95>>'
  108. act 'Sell the city apartment':
  109. *clr
  110. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  111. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  112. minut += 30
  113. 'You spend half an hour filling in the paperwork for the sale of your apartment, with a loss of around 5% for fees and taxes. <<home_value1/100*95>> <b>₽</b> has been paid into your bank account.'
  114. home_owned[1] = 0
  115. ArendHouseSL = 0
  116. if bankaccount = 1:
  117. karta += home_value1/100*95
  118. else
  119. money += home_value1/100*95
  120. end
  121. delact 'Sell the city apartment'
  122. gs 'stat'
  123. end
  124. end
  125. if home_owned[3] = 1:
  126. !Communal cottage
  127. home_value3 = (home_value[3] + rand(-5000, 5000))
  128. 'We have found a buyer for your small communal cottage. They will offer <<home_value3>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value3/100*95>>'
  129. act 'Sell the holiday cottage':
  130. *clr
  131. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  132. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  133. minut += 30
  134. 'You spend half an hour filling in the paperwork for the sale of your small cottage, with a loss of around 5% for fees and taxes. <<home_value3/100*95>> <b>₽</b> has been paid into your bank account.'
  135. home_owned[3] = 0
  136. if bankaccount = 1:
  137. karta += home_value3/100*95
  138. else
  139. money += home_value3/100*95
  140. end
  141. delact 'Sell the holiday cottage'
  142. gs 'stat'
  143. end
  144. end
  145. if home_owned[3] = 2:
  146. !Renovated communal cottage
  147. home_value3 = ((home_value[3] + 200000) + rand(-10000, 10000))
  148. 'We have found a buyer for your small renovated communal cottage. They will offer <<home_value3>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value3/100*95>>'
  149. act 'Sell the renovated cottage':
  150. *clr
  151. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  152. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  153. minut += 30
  154. 'You spend half an hour filling in the paperwork for the sale of the renovated cottage, with a loss of 1around 5% for fees and taxes. <<home_value3/100*95>> <b>₽</b> has been paid into your bank account.'
  155. home_owned[3] = 0
  156. if bankaccount = 1:
  157. karta += home_value3/100*95
  158. else
  159. money += home_value3/100*95
  160. end
  161. delact 'Sell the renovated cottage'
  162. gs 'stat'
  163. end
  164. end
  165. if home_owned[5] = 1:
  166. !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
  167. home_value5 = (home_value[5] + rand(-50000, 50000))
  168. 'We have found a buyer for your vacant plot of land in the suburbs. They will offer <<home_value5>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value5/100*95>>'
  169. act 'Sell the vacant plot':
  170. *clr
  171. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  172. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  173. minut += 30
  174. 'You spend half an hour filling in the paperwork for the vacant plot, with a loss of around 5% for fees and taxes. <<home_value5/100*95>> <b>₽</b> has been paid into your bank account.'
  175. home_owned[5] = 0
  176. if bankaccount = 1:
  177. karta += home_value5/100*95
  178. else
  179. money += home_value5/100*95
  180. end
  181. delact 'Sell the vacant plot'
  182. gs 'stat'
  183. end
  184. end
  185. if home_owned[5] = 2:
  186. !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
  187. 'Sorry, we are unable to find a buyer for your property at this time.'
  188. end
  189. if home_owned[5] = 3:
  190. !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
  191. 'Sorry, we are unable to find a buyer for your property at this time.'
  192. end
  193. if home_owned[1] = 0 and home_owned[3] = 0 and home_owned[4] = 0 and home_owned[5] = 0:
  194. 'You don''t currently own any property.'
  195. end
  196. act 'Return':gt'agentned', 'start'
  197. end
  198. if $ARGS[0] = 'rent':
  199. cla
  200. *clr
  201. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  202. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  203. *nl
  204. minut += 5
  205. gs 'stat'
  206. if home_owned[1] > 0 and home_owned[4] > 0:
  207. 'We currently have no properties for rent.'
  208. elseif home_owned[1] = 0 and home_owned[4] = 0:
  209. ''
  210. 'There are two properties available for rent.'
  211. *nl
  212. 'There is an apartment in the city residential area, and an apartment in Pushkin available'
  213. act 'View the city apartment details': gt 'agentned', 'rent_cityres'
  214. act 'View the Pushkin apartment details': gt 'agentned', 'rent_pushkin'
  215. elseif home_owned[1] = 0:
  216. 'There is a property for rent in the city residential area'
  217. act 'View the city apartment details': gt 'agentned', 'rent_cityres'
  218. elseif home_owned[4] = 0:
  219. 'There is a property for rent in the old town of Pushkin'
  220. act 'View the Pushkin apartment details': gt 'agentned', 'rent_pushkin'
  221. end
  222. act 'Return':gt'agentned', 'start'
  223. end
  224. if $ARGS[0] = 'rent_cityres':
  225. cla
  226. *clr
  227. gs 'housing', 'rent'
  228. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  229. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  230. *nl
  231. '“We have a flat available right now in the residential area of St. Petersburg.” The receptionist says as he starts pulling out the paperwork. “Rent is <<$home_rent_txt[1]>> ₽ and leases have to be renewed every 30 days, which can be taken automatically from your account or you can come in and pay directly. Last but not least, you have to make your first payment up front at signing.”'
  232. '<br>He pulls out a pen and slides the paperwork onto the counter. “Interested? We can get you moved in right away.”'
  233. if money >= home_rent[1]:
  234. act 'Agree and pay':
  235. cla
  236. *clr
  237. cls
  238. minut += 30
  239. money -= home_rent[1]
  240. home_owned[1] = 1
  241. ArendHouseSL += ArendHouseSL_due
  242. gs'stat'
  243. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  244. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  245. *nl
  246. 'You take the pen and start filling out the paperwork. Half an hour later, you’re handing over the money and getting the keys to your new apartment.'
  247. act 'Return':gt'agentned', 'start'
  248. end
  249. else
  250. *nl
  251. 'You do not have enough money with you to rent this now.'
  252. end
  253. act 'Decline':
  254. cla
  255. *clr
  256. minut += 5
  257. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  258. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  259. *nl
  260. 'You shake your head, “Actually, I need more time to think about this.”'
  261. '<br>The receptionist seems a bit miffed, but says nothing as he grabs the paperwork and stuffs it back in a drawer.'
  262. act 'Return':gt'agentned', 'start'
  263. end
  264. end
  265. if $ARGS[0] = 'rent_pushkin':
  266. cla
  267. *clr
  268. gs 'housing', 'rent'
  269. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  270. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  271. *nl
  272. '“We have a small apartment available right now in Pushkin’s city center. It’s a little bit pricey, but it’s been recently renovated to be more modern, and it looks quite nice. You won’t find a place like that outside of Pushkin.” The receptionist says as he starts pulling out the paperwork. “Rent is <<$home_rent_txt[4]>> ₽ and leases have to be renewed every 30 days, which can be taken automatically from your account or you can come in and pay directly. Last but not least, you have to make your first payment up front at signing.”'
  273. '<br>He pulls out a pen and slides the paperwork onto the counter. “Interested? We can get you moved in right away.”'
  274. if money >= home_rent[4]:
  275. act 'Agree and pay':
  276. cla
  277. *clr
  278. minut += 30
  279. money -= home_rent[4]
  280. home_owned[4] = 1
  281. ArendHouseSL4 += ArendHouseSL_due
  282. gs'stat'
  283. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  284. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  285. *nl
  286. 'You take the pen and start filling out the paperwork. An hour later, you’re handing over the money and getting the keys to your new apartment.'
  287. act 'Return':gt'agentned', 'start'
  288. end
  289. else
  290. *nl
  291. 'You do not have enough money with you to rent this now.'
  292. end
  293. act 'Decline':
  294. cla
  295. *clr
  296. minut += 5
  297. gs 'stat'
  298. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  299. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
  300. *nl
  301. 'You shake your head, “Actually, I need more time to think about this.”'
  302. '<br>The receptionist seems a bit miffed, but says nothing as he grabs the paperwork and stuffs it back in a drawer.'
  303. act 'Return':gt'agentned', 'start'
  304. end
  305. end
  306. if $ARGS[0] = 'buy_cityres':
  307. cla
  308. *clr
  309. gs 'housing', 'sale'
  310. minut += 30
  311. karta -= home_value[1]
  312. home_owned[1] = 2
  313. gs'stat'
  314. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  315. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  316. *nl
  317. 'You spend half an hour filling in the paperwork to buy an apartment in the residential area. <<$home_value_txt[1]>> <b>₽</b> has been removed from your bank account.'
  318. act 'Return':gt'agentned', 'start'
  319. end
  320. if $ARGS[0] = 'buy_dacha':
  321. cla
  322. *clr
  323. gs 'housing', 'sale'
  324. minut += 30
  325. karta -= home_value[3]
  326. home_owned[3] = 1
  327. etoexhib = 0
  328. gs'stat'
  329. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  330. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  331. *nl
  332. 'You spend half an hour filling in the paperwork for the purchase of a cottage with a garden on the co-op 5km up the north road. <<$home_value_txt[3]>> <b>₽</b> has been removed from your bank account.'
  333. act 'Return':gt'agentned', 'start'
  334. end
  335. if $ARGS[0] = 'buy_Mansion':
  336. cla
  337. *clr
  338. gs 'housing', 'sale'
  339. minut += 30
  340. karta -= home_value[5]
  341. home_owned[5] = 1
  342. gs'stat'
  343. '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
  344. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
  345. *nl
  346. 'You spend half an hour filling in the paperwork for the purchase of a lot for building a mansion 1km up the north road. <<$home_value_txt[5]>> <b>₽</b> has been removed from your bank account.'
  347. act 'Return':gt'agentned', 'start'
  348. end
  349. --- agentned ---------------------------------