shopdacha.qsrc 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. # shopdacha
  2. clr
  3. gs 'stat'
  4. gs 'themes', 'indoors'
  5. '<center><b><font color="maroon">Ilyich and Biryukov construction</font></b></center>'
  6. '<center><img <<$set_imgh>> src="images/locations/shared/store/shopdacha.jpg"></center>'
  7. 'In this storefront office you can upgrade your existing properties, or start a new construction project upon any land you may own.'
  8. 'All payments must be made from you bank account. Current balance - <<karta>> <b>₽</b>.'
  9. act 'Leave': minut += 3 & gt 'torgcentr'
  10. if hour < 8 or hour > 20:
  11. 'Shop closed.'
  12. else
  13. if karta + bankDebtLimit >= 50000 and (home_owned[1] = 2 or home_owned[1] = 3):
  14. if rembedr = 0:
  15. act 'Renovate city apartment bedroom (50,000 <b>₽</b>)':
  16. cla
  17. if karta + bankDebtLimit >= 50000:
  18. rembedr = 1
  19. karta -= 50000
  20. 'You have upgraded your apartment bedroom'
  21. else
  22. 'Unfortunately, you do not have enough money in your bank account.'
  23. end
  24. act 'Return':gt 'shopdacha'
  25. end
  26. end
  27. if remsitr = 0:
  28. act 'Renovate city apartment living room (50,000 <b>₽</b>)':
  29. cla
  30. if karta + bankDebtLimit >= 50000:
  31. remsitr = 1
  32. karta -= 50000
  33. 'You have upgraded your apartment living room'
  34. else
  35. 'Unfortunately, you do not have enough money in your bank account.'
  36. end
  37. act 'Return':gt 'shopdacha'
  38. end
  39. end
  40. if remkorr = 0:
  41. act 'Renovate city apartment hallway (50,000 <b>₽</b>)':
  42. cla
  43. if karta + bankDebtLimit >= 50000:
  44. remkorr = 1
  45. karta -= 50000
  46. 'You have upgraded your apartment hallway'
  47. else
  48. 'Unfortunately, you do not have enough money in your bank account.'
  49. end
  50. act 'Return':gt 'shopdacha'
  51. end
  52. end
  53. if remvanr = 0:
  54. act 'Renovate city apartment bathroom (50,000 <b>₽</b>)':
  55. cla
  56. if karta + bankDebtLimit >= 50000:
  57. remvanr = 1
  58. karta -= 50000
  59. 'You have upgraded your apartment bathroom'
  60. else
  61. 'Unfortunately, you do not have enough money in your bank account.'
  62. end
  63. act 'Return':gt 'shopdacha'
  64. end
  65. end
  66. if remkuhr = 0:
  67. act 'Renovate city apartment kitchen (50,000 <b>₽</b>)':
  68. cla
  69. if karta + bankDebtLimit >= 50000:
  70. remkuhr = 1
  71. karta -= 50000
  72. 'You have upgraded your apartment kitchen'
  73. else
  74. 'Unfortunately, you do not have enough money in your bank account.'
  75. end
  76. act 'Return':gt 'shopdacha'
  77. end
  78. end
  79. end
  80. if karta + bankDebtLimit >= 200000 and home_owned[3] = 1:
  81. act 'Upgrade your cottage (200,000 <b>₽</b>)':
  82. cls
  83. karta -= 200000
  84. home_owned[3] = 2
  85. minut += 15
  86. gs 'stat'
  87. 'You upgraded you dacha in the cooperative.'
  88. act 'Return': gt 'shopdacha'
  89. end
  90. end
  91. if karta + bankDebtLimit >= 500000 and home_owned[5] = 1:
  92. act 'Connect water, electricity (500,000 <b>₽</b>)':
  93. cls
  94. karta -= 500000
  95. home_owned[5] = 2
  96. minut += 5
  97. gs 'stat'
  98. 'You paid for a connection of services to the site.'
  99. act 'Return': gt 'shopdacha'
  100. end
  101. end
  102. if karta + bankDebtLimit >= 1500000 and home_owned[5] = 2:
  103. act 'Build Mansion''s shell for (1,500,000 <b>₽</b>)':
  104. cls
  105. karta -= 1500000
  106. home_owned[5] = 3
  107. minut += 5
  108. gs 'stat'
  109. 'You paid for the construction of the Mansion''s shell.'
  110. act 'Return': gt 'shopdacha'
  111. end
  112. end
  113. if karta + bankDebtLimit >= 500000 and home_owned[5] = 3 and ymanrem[3] = 0:
  114. act 'Build internal walls (500, 000 <b>₽</b>)':
  115. cls
  116. karta -= 500000
  117. ymanrem[3] = 1
  118. minut += 5
  119. gs 'stat'
  120. 'You paid for the construction of the Mansion''s internal walls.'
  121. act 'Return': gt 'shopdacha'
  122. end
  123. end
  124. if home_owned[5] >= 2:
  125. if karta + bankDebtLimit >= 800000 and home_owned[5] >= 2 and banaMansion = 0:
  126. act 'Install electrics and plumbing (800,000 <b>₽</b>)':
  127. cls
  128. karta -= 800000
  129. banaMansion = 1
  130. minut += 5
  131. gs 'stat'
  132. 'You paid for the electrics and plumbing to be installed.'
  133. act 'Return': gt 'shopdacha'
  134. end
  135. end
  136. if karta + bankDebtLimit >= 500000 and home_owned[5] >= 2 and bassMansion = 0:
  137. act 'Build a pool (500,000 <b>₽</b>)':
  138. cls
  139. karta -= 500000
  140. bassMansion = 1
  141. minut += 5
  142. gs 'stat'
  143. 'You paid for the construction of the Mansion''s pool.'
  144. act 'Return': gt 'shopdacha'
  145. end
  146. end
  147. end
  148. if home_owned[5] = 3:
  149. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[3] = 1:
  150. act 'Build hallways (250,000 <b>₽</b>)':
  151. cls
  152. karta -= 250000
  153. ymanrem[3] = 2
  154. minut += 5
  155. gs 'stat'
  156. 'You pay for hallways to be built.'
  157. act 'Return': gt 'shopdacha'
  158. end
  159. elseif karta + bankDebtLimit >= 150000 and home_owned[5] = 3 and ymanrem[3] = 2:
  160. act 'Buy lounge furniture (150,000 <b>₽</b>)':
  161. cls
  162. karta -= 150000
  163. ymanrem[3] = 3
  164. minut += 5
  165. gs 'stat'
  166. 'You bought lounge furniture.'
  167. act 'Return': gt 'shopdacha'
  168. end
  169. end
  170. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[4] = 0:
  171. act 'Build main bedroom (250,000 <b>₽</b>)':
  172. cls
  173. karta -= 250000
  174. ymanrem[4] = 1
  175. minut += 5
  176. gs 'stat'
  177. 'You pay for the main bedroom to be built.'
  178. act 'Return': gt 'shopdacha'
  179. end
  180. elseif karta + bankDebtLimit >= 300000 and home_owned[5] = 3 and ymanrem[4] = 1:
  181. act 'Buy bedroom furniture (300,000 <b>₽</b>)':
  182. cls
  183. karta -= 300000
  184. ymanrem[4] = 2
  185. minut += 5
  186. gs 'stat'
  187. 'You bought bedroom furniture.'
  188. act 'Return': gt 'shopdacha'
  189. end
  190. end
  191. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[5] = 0:
  192. act 'Pay for bathroom (250,000 <b>₽</b>)':
  193. cls
  194. karta -= 250000
  195. ymanrem[5] = 1
  196. minut += 5
  197. gs 'stat'
  198. 'You pay for the bathroom to be built.'
  199. act 'Return': gt 'shopdacha'
  200. end
  201. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[5] = 1:
  202. act 'Pay for bathroom fixtures and fittings (250,000 <b>₽</b>)':
  203. cls
  204. karta -= 250000
  205. ymanrem[5] = 2
  206. minut += 5
  207. gs 'stat'
  208. 'You purchase the bathroom suite.'
  209. act 'Return': gt 'shopdacha'
  210. end
  211. end
  212. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[6] = 0:
  213. act 'Pay for kitchen installation (250,000 <b>₽</b>)':
  214. cls
  215. karta -= 250000
  216. ymanrem[6] = 1
  217. minut += 5
  218. gs 'stat'
  219. 'You pay for the kitchen installation.'
  220. act 'Return': gt 'shopdacha'
  221. end
  222. elseif karta + bankDebtLimit >= 350000 and home_owned[5] = 3 and ymanrem[6] = 1:
  223. act 'Pay for kitchen units (350,000 <b>₽</b>)':
  224. cls
  225. karta -= 250000
  226. ymanrem[6] = 2
  227. minut += 5
  228. gs 'stat'
  229. 'You purchase the kitchen units.'
  230. act 'Return': gt 'shopdacha'
  231. end
  232. end
  233. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[7] = 0:
  234. act 'Pay for the living room (250,000 <b>₽</b>)':
  235. cls
  236. karta -= 250000
  237. ymanrem[7] = 1
  238. minut += 5
  239. gs 'stat'
  240. 'You pay for your living room.'
  241. act 'Return': gt 'shopdacha'
  242. end
  243. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[7] = 1:
  244. act 'Buy furniture for the living room (250,000 <b>₽</b>)':
  245. cls
  246. karta -= 250000
  247. ymanrem[7] = 2
  248. minut += 5
  249. gs 'stat'
  250. 'You buy furniture for your living room.'
  251. act 'Return': gt 'shopdacha'
  252. end
  253. end
  254. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[8] = 0:
  255. act 'Pay for your lounge (250,000 <b>₽</b>)':
  256. cls
  257. karta -= 250000
  258. ymanrem[8] = 1
  259. minut += 5
  260. gs 'stat'
  261. 'You pay for your lounge'
  262. act 'Return': gt 'shopdacha'
  263. end
  264. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[8] = 1:
  265. act 'Purchase furniture for the lounge (250,000 <b>₽</b>)':
  266. cls
  267. karta -= 250000
  268. ymanrem[8] = 2
  269. minut += 5
  270. gs 'stat'
  271. 'You purchase furniture for your lounge.'
  272. act 'Return': gt 'shopdacha'
  273. end
  274. end
  275. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[9] = 0:
  276. act 'Build a children''s room (250,000 <b>₽</b>)':
  277. cls
  278. karta -= 250000
  279. ymanrem[9] = 1
  280. minut += 5
  281. gs 'stat'
  282. 'You pay for a children''s room'
  283. act 'Return': gt 'shopdacha'
  284. end
  285. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[9] = 1:
  286. act 'Buy furniture for the nursery (250,000 <b>₽</b>)':
  287. cls
  288. karta -= 250000
  289. ymanrem[9] = 2
  290. minut += 5
  291. gs 'stat'
  292. 'You paid furniture for the nursery.'
  293. act 'Return': gt 'shopdacha'
  294. end
  295. end
  296. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[10] = 0:
  297. act 'Pay for a library (250,000 <b>₽</b>)':
  298. cls
  299. karta -= 250000
  300. ymanrem[10] = 1
  301. minut += 5
  302. gs 'stat'
  303. 'You pay for a library'
  304. act 'Return': gt 'shopdacha'
  305. end
  306. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[10] = 1:
  307. act 'Purchase furniture for your library (250,000 <b>₽</b>)':
  308. cls
  309. karta -= 250000
  310. ymanrem[10] = 2
  311. minut += 5
  312. gs 'stat'
  313. 'You bought furniture for the library.'
  314. act 'Return': gt 'shopdacha'
  315. end
  316. end
  317. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[11] = 0:
  318. act 'Buy a gym (250,000 <b>₽</b>)':
  319. cls
  320. karta -= 250000
  321. ymanrem[11] = 1
  322. minut += 5
  323. gs 'stat'
  324. 'You bought a gym.'
  325. act 'Return': gt 'shopdacha'
  326. end
  327. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[11] = 1:
  328. act 'Buy gym equipment (250,000 <b>₽</b>)':
  329. cls
  330. karta -= 250000
  331. ymanrem[11] = 2
  332. minut += 5
  333. gs 'stat'
  334. 'You bought gym equipment.'
  335. act 'Return': gt 'shopdacha'
  336. end
  337. end
  338. if karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[12] = 0:
  339. act 'Buy an office (250,000 <b>₽</b>)':
  340. cls
  341. karta -= 250000
  342. ymanrem[12] = 1
  343. minut += 5
  344. gs 'stat'
  345. 'You pay for an office to be built.'
  346. act 'Return': gt 'shopdacha'
  347. end
  348. elseif karta + bankDebtLimit >= 250000 and home_owned[5] = 3 and ymanrem[12] = 1:
  349. act 'Purchase furniture for the office (250,000)':
  350. cls
  351. karta -= 250000
  352. ymanrem[12] = 2
  353. minut += 5
  354. gs 'stat'
  355. 'You bought office furniture.'
  356. act 'Return': gt 'shopdacha'
  357. end
  358. end
  359. end
  360. end
  361. --- shopdacha ---------------------------------