city_mansion_entrance.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. # city_mansion_entrance
  2. if $ARGS[0] = '':
  3. $loc_arg = ''
  4. $loc = 'city_mansion_entrance'
  5. $home_name = 'matryona_mansion'
  6. $menu_loc = 'city_mansion_entrance'
  7. $menu_arg = ''
  8. menu_off = 0
  9. gs 'stat'
  10. *clr & cla
  11. constructionstatus = func('homes_properties', 'property_construction_status', 'matryona_mansion')
  12. if constructionstatus = 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 constructionstatus = 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 constructionstatus = 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 $home['current'] = $home_name:
  31. if vladimirday = daystart and vladimirQW = 30 and hour >= 16 and week = 6:'<a href="exec:gt ''qwmeet'',''2''">There''s an Audi parked in front of your mansion, and standing beside it, you notice Vladimir</a>.'
  32. if vladimirday = daystart and vladimirQW = 40 and hour >= 16 and week = 6:'<a href="exec:gt ''qwmeet'',''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 owned_property['matryona_mansion'] = 2 and constructionstatus = 2 : act 'Walk inside the mansion': minut += 4 & gt 'city_mansion_residence_1', 'yfoyer'
  48. if karta + bankDebtLimit >= 1500000 and owned_property['matryona_mansion'] = 0:
  49. act 'Buy the land lot for a mansion (1,500,000 <b>₽</b>)':
  50. cls
  51. karta -= 1500000
  52. gs 'homes_properties', 'set_ownership', 'matryona_mansion', 2
  53. minut += 5
  54. menu_off = 1
  55. gs 'stat'
  56. 'You have bought the land lot. You can finally build your own dream mansion.'
  57. act 'Leave':gt $curloc
  58. end
  59. end
  60. if karta + bankDebtLimit >= 500000 and constructionstatus = 0:
  61. act 'Pay for running utilities and the building foundation (500,000 <b>₽</b>)':
  62. cls
  63. karta -= 500000
  64. gs 'homes_properties', 'progress_construction_status', 'matryona_mansion'
  65. minut += 5
  66. menu_off = 1
  67. gs 'stat'
  68. '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.'
  69. act 'Leave':gt $curloc
  70. end
  71. end
  72. if karta + bankDebtLimit >= 1500000 and constructionstatus = 1:
  73. act 'Pay for the finishing touches on the mansion (1,500,000 <b>₽</b>)':
  74. cls
  75. karta -= 1500000
  76. gs 'homes_properties', 'progress_construction_status', 'matryona_mansion'
  77. minut += 5
  78. menu_off = 1
  79. gs 'stat'
  80. 'You''ve paid for the construction of the mansion.'
  81. act 'Leave':gt $curloc
  82. end
  83. end
  84. if karta + bankDebtLimit >= 500000 and constructionstatus = 2 and ymanrem[3] = 0:
  85. act 'Pay for the construction of the rooms (500,000 <b>₽</b>)':
  86. cls
  87. karta -= 500000
  88. ymanrem[3] = 1
  89. minut += 5
  90. menu_off = 1
  91. gs 'stat'
  92. 'You paid for the construction of the rooms. You can finally begin designing the interior of the mansion.'
  93. act 'Leave':gt $curloc
  94. end
  95. end
  96. if constructionstatus >= 1:
  97. if karta + bankDebtLimit >= 800000 and banaMansion = 0:
  98. act 'Pay for the construction of the sauna (800,000 <b>₽</b>)':
  99. cls
  100. karta -= 800000
  101. banaMansion = 1
  102. minut += 5
  103. menu_off = 1
  104. gs 'stat'
  105. 'You paid for the construction of the sauna. You finally have a place where you can relax.'
  106. act 'Leave':gt $curloc
  107. end
  108. end
  109. if karta + bankDebtLimit >= 500000 and bassMansion = 0:
  110. act 'Pay for the construction of the pool area (500,000 <b>₽</b>)':
  111. cls
  112. karta -= 500000
  113. bassMansion = 1
  114. minut += 5
  115. menu_off = 1
  116. gs 'stat'
  117. 'You paid for the construction of the pool area. You can finally take relaxing swims in private.'
  118. act 'Leave':gt $curloc
  119. end
  120. end
  121. end
  122. if constructionstatus = 2:
  123. if karta + bankDebtLimit >= 250000 and ymanrem[3] = 1:
  124. act 'Pay for the renovations of the main hall (250,000 <b>₽</b>)':
  125. cls
  126. karta -= 250000
  127. ymanrem[3] = 2
  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. elseif karta + bankDebtLimit >= 150000 and ymanrem[3] = 2:
  135. act 'Decorate the main hall (150,000 <b>₽</b>)':
  136. cls
  137. karta -= 150000
  138. ymanrem[3] = 3
  139. minut += 5
  140. menu_off = 1
  141. gs 'stat'
  142. 'The work on the main hall is finished.'
  143. act 'Leave':gt $curloc
  144. end
  145. end
  146. if karta + bankDebtLimit >= 250000 and ymanrem[4] = 0:
  147. act 'Pay for the renovations of the bedroom (250,000 <b>₽</b>)':
  148. cls
  149. karta -= 250000
  150. ymanrem[4] = 1
  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. elseif karta + bankDebtLimit >= 300000 and ymanrem[4] = 1:
  158. act 'Decorate the bedroom (300,000 <b>₽</b>)':
  159. cls
  160. karta -= 300000
  161. ymanrem[4] = 2
  162. minut += 5
  163. menu_off = 1
  164. gs 'stat'
  165. 'The work on the bedroom is finished.'
  166. act 'Leave':gt $curloc
  167. end
  168. end
  169. if karta + bankDebtLimit >= 250000 and ymanrem[5] = 0:
  170. act 'Pay for the renovations of the bathroom (250,000 <b>₽</b>)':
  171. cls
  172. karta -= 250000
  173. ymanrem[5] = 1
  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. elseif karta + bankDebtLimit >= 250000 and ymanrem[5] = 1:
  181. act 'Decorate the bathroom (250,000 <b>₽</b>)':
  182. cls
  183. karta -= 250000
  184. ymanrem[5] = 2
  185. minut += 5
  186. menu_off = 1
  187. gs 'stat'
  188. 'The work on the bathroom is finished.'
  189. act 'Leave':gt $curloc
  190. end
  191. end
  192. if karta + bankDebtLimit >= 250000 and ymanrem[6] = 0:
  193. act 'Pay for the renovations of the kitchen (250,000 <b>₽</b>)':
  194. cls
  195. karta -= 250000
  196. ymanrem[6] = 1
  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. elseif karta + bankDebtLimit >= 350000 and ymanrem[6] = 1:
  204. act 'Decorate the kitchen (350,000 <b>₽</b>)':
  205. cls
  206. karta -= 250000
  207. ymanrem[6] = 2
  208. minut += 5
  209. menu_off = 1
  210. gs 'stat'
  211. 'The work on the kitchen is finished.'
  212. act 'Leave':gt $curloc
  213. end
  214. end
  215. if karta + bankDebtLimit >= 250000 and ymanrem[7] = 0:
  216. act 'Pay for the renovations of the living room (250,000 <b>₽</b>)':
  217. cls
  218. karta -= 250000
  219. ymanrem[7] = 1
  220. minut += 5
  221. menu_off = 1
  222. gs 'stat'
  223. 'The work on the living room is finished.'
  224. act 'Leave':gt $curloc
  225. end
  226. elseif karta + bankDebtLimit >= 250000 and ymanrem[7] = 1:
  227. act 'Decorate the living room (250,000 <b>₽</b>)':
  228. cls
  229. karta -= 250000
  230. ymanrem[7] = 2
  231. if TV < 2: TV = 2
  232. minut += 5
  233. menu_off = 1
  234. gs 'stat'
  235. 'The work on the living room is finished.'
  236. act 'Leave':gt $curloc
  237. end
  238. end
  239. if karta + bankDebtLimit >= 250000 and ymanrem[8] = 0:
  240. act 'Pay for the renovations of the fireplace room (250,000 <b>₽</b>)':
  241. cls
  242. karta -= 250000
  243. ymanrem[8] = 1
  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. elseif karta + bankDebtLimit >= 250000 and ymanrem[8] = 1:
  251. act 'Decorate the fireplace room (250,000 <b>₽</b>)':
  252. cls
  253. karta -= 250000
  254. ymanrem[8] = 2
  255. minut += 5
  256. menu_off = 1
  257. gs 'stat'
  258. 'The work on the fireplace room is finished.'
  259. act 'Leave':gt $curloc
  260. end
  261. end
  262. if karta + bankDebtLimit >= 250000 and ymanrem[9] = 0:
  263. act 'Pay for the renovations of the nursery room (250,000 <b>₽</b>)':
  264. cls
  265. karta -= 250000
  266. ymanrem[9] = 1
  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. elseif karta + bankDebtLimit >= 250000 and ymanrem[9] = 1:
  274. act 'Decorate the nursery (250,000 <b>₽</b>)':
  275. cls
  276. karta -= 250000
  277. ymanrem[9] = 2
  278. minut += 5
  279. menu_off = 1
  280. gs 'stat'
  281. 'The work on the nursery is finished.'
  282. act 'Leave':gt $curloc
  283. end
  284. end
  285. if karta + bankDebtLimit >= 250000 and ymanrem[10] = 0:
  286. act 'Pay for the renovations of the library (250,000 <b>₽</b>)':
  287. cls
  288. karta -= 250000
  289. ymanrem[10] = 1
  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. elseif karta + bankDebtLimit >= 250000 and ymanrem[10] = 1:
  297. act 'Decorate the library (250,000 <b>₽</b>)':
  298. cls
  299. karta -= 250000
  300. ymanrem[10] = 2
  301. minut += 5
  302. menu_off = 1
  303. gs 'stat'
  304. 'The work on the library is finished.'
  305. act 'Leave':gt $curloc
  306. end
  307. end
  308. if karta + bankDebtLimit >= 250000 and ymanrem[11] = 0:
  309. act 'Pay for the renovations of the gym (250,000 <b>₽</b>)':
  310. cls
  311. karta -= 250000
  312. ymanrem[11] = 1
  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. elseif karta + bankDebtLimit >= 250000 and ymanrem[11] = 1:
  320. act 'Decorate the gym (250,000 <b>₽</b>)':
  321. cls
  322. karta -= 250000
  323. ymanrem[11] = 2
  324. minut += 5
  325. menu_off = 1
  326. gs 'stat'
  327. 'The work on the gym is finished.'
  328. act 'Leave':gt $curloc
  329. end
  330. end
  331. if karta + bankDebtLimit >= 250000 and ymanrem[12] = 0:
  332. act 'Pay for the renovations of the office (250,000 <b>₽</b>)':
  333. cls
  334. karta -= 250000
  335. ymanrem[12] = 1
  336. minut += 5
  337. menu_off = 1
  338. gs 'stat'
  339. 'The work on the office is finished.'
  340. act 'Leave':gt $curloc
  341. end
  342. elseif karta + bankDebtLimit >= 250000 and ymanrem[12] = 1:
  343. act 'Decorate the office (250,000 <b>₽</b>)':
  344. cls
  345. karta -= 250000
  346. ymanrem[12] = 2
  347. if komp < 1: komp = 1
  348. minut += 5
  349. menu_off = 1
  350. gs 'stat'
  351. 'The work on the office is finished.'
  352. act 'Leave':gt $curloc
  353. end
  354. end
  355. end
  356. killvar 'constructionstatus'
  357. end
  358. --- city_mansion_entrance ---------------------------------