city_mansion_entrance.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. # city_mansion_entrance
  2. if $ARGS[0] = '':
  3. $loc_arg = ''
  4. $loc = 'city_mansion_entrance'
  5. $menu_loc = 'city_mansion_entrance'
  6. $menu_arg = ''
  7. menu_off = 0
  8. gs 'stat'
  9. *clr & cla
  10. property_construction_status = func('homes_properties', 'get_property_construction_status')
  11. property_owned = func('homes_properties', 'is_property_of_status', 'owned', 'matryona_mansion')
  12. if property_construction_status = 0:
  13. '<center><h4>Your Land</h4></center>'
  14. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/o_empty_field.jpg"></center>'
  15. '<center>An empty plot of land you own, suitable for building a large residence.</center>'
  16. elseif property_construction_status = 1:
  17. '<center><h4>Your Mansion</h4></center>'
  18. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/o_foundation.jpg"></center>'
  19. '<center>The framework for your mansion stands here. It still needs more work.</center>'
  20. elseif property_construction_status = 2:
  21. '<center><h4>Matryona Mansion</h4></center>'
  22. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/matryona_mansion.jpg"></center>'
  23. '<center>Your fully built mansion stands here. </center>'
  24. end
  25. *nl
  26. if car > 0 and cardrive = 18:
  27. cardrive = 18
  28. '<a href="exec:gs ''carF'', ''start''">Your <<$car>></a> is parked here.'
  29. end
  30. if func('homes_properties', 'is_current_home'):
  31. if vladimirQW['day'] = daystart and vladimirQW['stage'] = 30 and hour >= 16 and week = 6:'<a href="exec:gt ''vladimirQW_meet'',''2''">There''s an Audi parked in front of your mansion, and standing beside it, you notice Vladimir</a>.'
  32. if vladimirQW['day'] = daystart and vladimirQW['stage'] = 40 and hour >= 16 and week = 6:'<a href="exec:gt ''vladimirQW_meet'',''3''">There''s an Audi parked in front of your mansion, and standing beside it, you notice Vladimir</a>.'
  33. if hour = meethour[0]:
  34. if svidanie[0] = 1:'<b><a href="exec:lover_number = 0 & gt ''lover_meet'', ''start''"><<$loverdesc[0]>></a> is waiting at the entrance to your mansion.</b>'
  35. end
  36. if hour = meethour[1]:
  37. if svidanie[1] = 1:'<b><a href="exec:lover_number = 1 & gt ''lover_meet'', ''start''"><<$loverdesc[1]>></a> is waiting at the entrance to your mansion.</b>'
  38. end
  39. if hour = meethour[2]:
  40. if svidanie[2] = 1:'<b><a href="exec:lover_number = 2 & gt ''lover_meet'', ''start''"><<$loverdesc[2]>></a> is waiting at the entrance to your mansion.</b>'
  41. end
  42. end
  43. act 'Go to the suburbs':
  44. minut += 10
  45. gt 'city_suburbs', 'start'
  46. end
  47. if property_owned:
  48. if property_construction_status = 2 : act 'Walk inside the mansion': minut += 4 & gt 'city_mansion_residence_1', 'yfoyer'
  49. if karta >= 500000 and property_construction_status = 0:
  50. act 'Pay for running utilities and the building foundation (500,000 <b>₽</b>)':
  51. cls
  52. karta -= 500000
  53. gs 'homes_properties', 'progress_construction_status', 'matryona_mansion'
  54. minut += 5
  55. menu_off = 1
  56. gs 'stat'
  57. 'You''ve paid for the utilities. You now have running water, sewage, electric power, and telephone lines. There''s even a foundation built on the land lot.'
  58. act 'Leave':gt $curloc
  59. end
  60. end
  61. if karta >= 1500000 and property_construction_status = 1:
  62. act 'Pay for the finishing touches on the mansion (1,500,000 <b>₽</b>)':
  63. cls
  64. karta -= 1500000
  65. gs 'homes_properties', 'progress_construction_status', 'matryona_mansion'
  66. minut += 5
  67. menu_off = 1
  68. gs 'stat'
  69. 'You''ve paid for the construction of the mansion.'
  70. act 'Leave':gt $curloc
  71. end
  72. end
  73. if karta >= 500000 and property_construction_status = 2 and ymanrem[3] = 0:
  74. act 'Pay for the construction of the rooms (500,000 <b>₽</b>)':
  75. cls
  76. karta -= 500000
  77. ymanrem[3] = 1
  78. minut += 5
  79. menu_off = 1
  80. gs 'stat'
  81. 'You paid for the construction of the rooms. You can finally begin designing the interior of the mansion.'
  82. act 'Leave':gt $curloc
  83. end
  84. end
  85. if property_construction_status > 0:
  86. if karta >= 800000 and banaMansion = 0:
  87. act 'Pay for the construction of the sauna (800,000 <b>₽</b>)':
  88. cls
  89. karta -= 800000
  90. banaMansion = 1
  91. minut += 5
  92. menu_off = 1
  93. gs 'stat'
  94. 'You paid for the construction of the sauna. You finally have a place where you can relax.'
  95. act 'Leave':gt $curloc
  96. end
  97. end
  98. if karta >= 500000 and bassMansion = 0:
  99. act 'Pay for the construction of the pool area (500,000 <b>₽</b>)':
  100. cls
  101. karta -= 500000
  102. bassMansion = 1
  103. minut += 5
  104. menu_off = 1
  105. gs 'stat'
  106. 'You paid for the construction of the pool area. You can finally take relaxing swims in private.'
  107. act 'Leave':gt $curloc
  108. end
  109. end
  110. end
  111. if property_construction_status = 2:
  112. if karta >= 250000 and ymanrem[3] = 1:
  113. act 'Pay for the renovations of the main hall (250,000 <b>₽</b>)':
  114. cls
  115. karta -= 250000
  116. ymanrem[3] = 2
  117. minut += 5
  118. menu_off = 1
  119. gs 'stat'
  120. 'The work on the main hall is finished.'
  121. act 'Leave':gt $curloc
  122. end
  123. elseif karta >= 150000 and ymanrem[3] = 2:
  124. act 'Decorate the main hall (150,000 <b>₽</b>)':
  125. cls
  126. karta -= 150000
  127. ymanrem[3] = 3
  128. minut += 5
  129. menu_off = 1
  130. gs 'stat'
  131. 'The work on the main hall is finished.'
  132. act 'Leave':gt $curloc
  133. end
  134. end
  135. if karta >= 250000 and ymanrem[4] = 0:
  136. act 'Pay for the renovations of the bedroom (250,000 <b>₽</b>)':
  137. cls
  138. karta -= 250000
  139. ymanrem[4] = 1
  140. minut += 5
  141. menu_off = 1
  142. gs 'stat'
  143. 'The work on the bedroom is finished.'
  144. act 'Leave':gt $curloc
  145. end
  146. elseif karta >= 300000 and ymanrem[4] = 1:
  147. act 'Decorate the bedroom (300,000 <b>₽</b>)':
  148. cls
  149. karta -= 300000
  150. ymanrem[4] = 2
  151. minut += 5
  152. menu_off = 1
  153. gs 'stat'
  154. 'The work on the bedroom is finished.'
  155. act 'Leave':gt $curloc
  156. end
  157. end
  158. if karta >= 250000 and ymanrem[5] = 0:
  159. act 'Pay for the renovations of the bathroom (250,000 <b>₽</b>)':
  160. cls
  161. karta -= 250000
  162. ymanrem[5] = 1
  163. minut += 5
  164. menu_off = 1
  165. gs 'stat'
  166. 'The work on the bathroom is finished.'
  167. act 'Leave':gt $curloc
  168. end
  169. elseif karta >= 250000 and ymanrem[5] = 1:
  170. act 'Decorate the bathroom (250,000 <b>₽</b>)':
  171. cls
  172. karta -= 250000
  173. ymanrem[5] = 2
  174. minut += 5
  175. menu_off = 1
  176. gs 'stat'
  177. 'The work on the bathroom is finished.'
  178. act 'Leave':gt $curloc
  179. end
  180. end
  181. if karta >= 250000 and ymanrem[6] = 0:
  182. act 'Pay for the renovations of the kitchen (250,000 <b>₽</b>)':
  183. cls
  184. karta -= 250000
  185. ymanrem[6] = 1
  186. minut += 5
  187. menu_off = 1
  188. gs 'stat'
  189. 'The work on the kitchen is finished.'
  190. act 'Leave':gt $curloc
  191. end
  192. elseif karta >= 350000 and ymanrem[6] = 1:
  193. act 'Decorate the kitchen (350,000 <b>₽</b>)':
  194. cls
  195. karta -= 250000
  196. ymanrem[6] = 2
  197. minut += 5
  198. menu_off = 1
  199. gs 'stat'
  200. 'The work on the kitchen is finished.'
  201. act 'Leave':gt $curloc
  202. end
  203. end
  204. if karta >= 250000 and ymanrem[7] = 0:
  205. act 'Pay for the renovations of the living room (250,000 <b>₽</b>)':
  206. cls
  207. karta -= 250000
  208. ymanrem[7] = 1
  209. minut += 5
  210. menu_off = 1
  211. gs 'stat'
  212. 'The work on the living room is finished.'
  213. act 'Leave':gt $curloc
  214. end
  215. elseif karta >= 250000 and ymanrem[7] = 1:
  216. act 'Decorate the living room (250,000 <b>₽</b>)':
  217. cls
  218. karta -= 250000
  219. ymanrem[7] = 2
  220. if mc_inventory['plasma_tv'] < 1: mc_inventory['plasma_tv'] = 1
  221. minut += 5
  222. menu_off = 1
  223. gs 'stat'
  224. 'The work on the living room is finished.'
  225. act 'Leave':gt $curloc
  226. end
  227. end
  228. if karta >= 250000 and ymanrem[8] = 0:
  229. act 'Pay for the renovations of the fireplace room (250,000 <b>₽</b>)':
  230. cls
  231. karta -= 250000
  232. ymanrem[8] = 1
  233. minut += 5
  234. menu_off = 1
  235. gs 'stat'
  236. 'The work on the fireplace room is finished.'
  237. act 'Leave':gt $curloc
  238. end
  239. elseif karta >= 250000 and ymanrem[8] = 1:
  240. act 'Decorate the fireplace room (250,000 <b>₽</b>)':
  241. cls
  242. karta -= 250000
  243. ymanrem[8] = 2
  244. minut += 5
  245. menu_off = 1
  246. gs 'stat'
  247. 'The work on the fireplace room is finished.'
  248. act 'Leave':gt $curloc
  249. end
  250. end
  251. if karta >= 250000 and ymanrem[9] = 0:
  252. act 'Pay for the renovations of the nursery room (250,000 <b>₽</b>)':
  253. cls
  254. karta -= 250000
  255. ymanrem[9] = 1
  256. minut += 5
  257. menu_off = 1
  258. gs 'stat'
  259. 'The work on the nursery is finished.'
  260. act 'Leave':gt $curloc
  261. end
  262. elseif karta >= 250000 and ymanrem[9] = 1:
  263. act 'Decorate the nursery (250,000 <b>₽</b>)':
  264. cls
  265. karta -= 250000
  266. ymanrem[9] = 2
  267. minut += 5
  268. menu_off = 1
  269. gs 'stat'
  270. 'The work on the nursery is finished.'
  271. act 'Leave':gt $curloc
  272. end
  273. end
  274. if karta >= 250000 and ymanrem[10] = 0:
  275. act 'Pay for the renovations of the library (250,000 <b>₽</b>)':
  276. cls
  277. karta -= 250000
  278. ymanrem[10] = 1
  279. minut += 5
  280. menu_off = 1
  281. gs 'stat'
  282. 'The work on the library is finished.'
  283. act 'Leave':gt $curloc
  284. end
  285. elseif karta >= 250000 and ymanrem[10] = 1:
  286. act 'Decorate the library (250,000 <b>₽</b>)':
  287. cls
  288. karta -= 250000
  289. ymanrem[10] = 2
  290. minut += 5
  291. menu_off = 1
  292. gs 'stat'
  293. 'The work on the library is finished.'
  294. act 'Leave':gt $curloc
  295. end
  296. end
  297. if karta >= 250000 and ymanrem[11] = 0:
  298. act 'Pay for the renovations of the gym (250,000 <b>₽</b>)':
  299. cls
  300. karta -= 250000
  301. ymanrem[11] = 1
  302. minut += 5
  303. menu_off = 1
  304. gs 'stat'
  305. 'The work on the gym is finished.'
  306. act 'Leave':gt $curloc
  307. end
  308. elseif karta >= 250000 and ymanrem[11] = 1:
  309. act 'Decorate the gym (250,000 <b>₽</b>)':
  310. cls
  311. karta -= 250000
  312. ymanrem[11] = 2
  313. minut += 5
  314. menu_off = 1
  315. gs 'stat'
  316. 'The work on the gym is finished.'
  317. act 'Leave':gt $curloc
  318. end
  319. end
  320. if karta >= 250000 and ymanrem[12] = 0:
  321. act 'Pay for the renovations of the office (250,000 <b>₽</b>)':
  322. cls
  323. karta -= 250000
  324. ymanrem[12] = 1
  325. minut += 5
  326. menu_off = 1
  327. gs 'stat'
  328. 'The work on the office is finished.'
  329. act 'Leave':gt $curloc
  330. end
  331. elseif karta >= 250000 and ymanrem[12] = 1:
  332. act 'Decorate the office (250,000 <b>₽</b>)':
  333. cls
  334. karta -= 250000
  335. ymanrem[12] = 2
  336. if mc_inventory['tech_computer'] < 1: mc_inventory['tech_computer'] = 1
  337. minut += 5
  338. menu_off = 1
  339. gs 'stat'
  340. 'The work on the office is finished.'
  341. act 'Leave':gt $curloc
  342. end
  343. end
  344. end
  345. end
  346. killvar 'property_construction_status' & killvar 'property_owned'
  347. end
  348. --- city_mansion_entrance ---------------------------------