1
0

shopdacha.qsrc 10 KB

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