shopdacha.qsrc 10 KB

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