youplace 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. # youplace
  2. $metka = $ARGS[0]
  3. $loc = $CURLOC
  4. clr
  5. gs 'stat'
  6. '<center><h4>Your land lot</h4></center>'
  7. if placeMansion < 2:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/yzemelniy.jpg"></center>'
  8. if placeMansion = 2:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/ystart.jpg"></center>'
  9. if placeMansion = 3:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/yosobnak.jpg"></center>'
  10. ''
  11. if car > 0 and cardrive = 18:
  12. cardrive = 18
  13. '<a href="exec:gs ''carF'', ''start''">Your <<$car>></a> is parked here.'
  14. end
  15. act 'Visit the suburbs':minut += 5 & gt 'psiklin', 'start'
  16. if bassMansion = 1:'<a href="exec:gt ''ybass''">Go to the pool</a>.'
  17. if banaMansion >= 1:'<a href="exec:gt ''yban''">Go to the sauna</a>.'
  18. if placeMansion = 3:'<a href="exec:gt ''ymans''">Walk inside the mansion</a>.'
  19. if karta + bankDebtLimit >= 1500000 and placeMansion = 0:
  20. act 'Buy the land lot for a mansion (1,500,000)':
  21. cls
  22. karta -= 1500000
  23. placeMansion = 1
  24. minut += 5
  25. gs 'stat'
  26. 'You have bought the land lot. You can finally build your own dream mansion.'
  27. act 'Leave':gt $curloc
  28. end
  29. end
  30. if karta + bankDebtLimit >= 500000 and placeMansion = 1:
  31. act 'Pay for running utilies and the building foundation (500,000 <b>₽</b>)':
  32. cls
  33. karta -= 500000
  34. placeMansion = 2
  35. minut += 5
  36. gs 'stat'
  37. '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.'
  38. act 'Leave':gt $curloc
  39. end
  40. end
  41. if karta + bankDebtLimit >= 1500000 and placeMansion = 2:
  42. act 'Pay for the finishing touches on the mansion (1,500,000 <b>₽</b>)':
  43. cls
  44. karta -= 1500000
  45. placeMansion = 3
  46. minut += 5
  47. gs 'stat'
  48. 'You''ve paid for the construction of the mansion.'
  49. act 'Leave':gt $curloc
  50. end
  51. end
  52. if karta + bankDebtLimit >= 500000 and placeMansion = 3 and ymanrem[3] = 0:
  53. act 'Pay for the construction of the rooms (500,000 <b>₽</b>)':
  54. cls
  55. karta -= 500000
  56. ymanrem[3] = 1
  57. minut += 5
  58. gs 'stat'
  59. 'You paid for the construction of the rooms. You can finally begin designing the interior of the mansion.'
  60. act 'Leave':gt $curloc
  61. end
  62. end
  63. if placeMansion => 2:
  64. if karta + bankDebtLimit >= 800000 and banaMansion = 0:
  65. act 'Pay for the construction of the sauna (800,000 <b>₽</b>)':
  66. cls
  67. karta -= 800000
  68. banaMansion = 1
  69. minut += 5
  70. gs 'stat'
  71. 'You paid for the construction of the sauna. You finally have a place where you can relax.'
  72. act 'Leave':gt $curloc
  73. end
  74. end
  75. if karta + bankDebtLimit >= 500000 and bassMansion = 0:
  76. act 'Pay for the construction of the pool area (500,000 <b>₽</b>)':
  77. cls
  78. karta -= 500000
  79. bassMansion = 1
  80. minut += 5
  81. gs 'stat'
  82. 'You paid for the construction of the pool area. You can finally take relaxing swims in private.'
  83. act 'Leave':gt $curloc
  84. end
  85. end
  86. end
  87. if placeMansion = 3:
  88. if karta + bankDebtLimit >= 250000 and ymanrem[3] = 1:
  89. act 'Pay for the renovations of the main hall (250,000 <b>₽</b>)':
  90. cls
  91. karta -= 250000
  92. ymanrem[3] = 2
  93. minut += 5
  94. gs 'stat'
  95. 'The work on the main hall is finished.'
  96. act 'Leave':gt $curloc
  97. end
  98. elseif karta + bankDebtLimit >= 150000 and ymanrem[3] = 2:
  99. act 'Decorate the main hall (150,000 <b>₽</b>)':
  100. cls
  101. karta -= 150000
  102. ymanrem[3] = 3
  103. minut += 5
  104. gs 'stat'
  105. 'The work on the main hall is finished.'
  106. act 'Leave':gt $curloc
  107. end
  108. end
  109. if karta + bankDebtLimit >= 250000 and ymanrem[4] = 0:
  110. act 'Pay for the renovations of the bedroom (250,000 <b>₽</b>)':
  111. cls
  112. karta -= 250000
  113. ymanrem[4] = 1
  114. minut += 5
  115. gs 'stat'
  116. 'The work on the bedroom is finished.'
  117. act 'Leave':gt $curloc
  118. end
  119. elseif karta + bankDebtLimit >= 300000 and ymanrem[4] = 1:
  120. act 'Decorate the bedroom (300,000 <b>₽</b>)':
  121. cls
  122. karta -= 300000
  123. ymanrem[4] = 2
  124. minut += 5
  125. gs 'stat'
  126. 'The work on the bedroom is finished.'
  127. act 'Leave':gt $curloc
  128. end
  129. end
  130. if karta + bankDebtLimit >= 250000 and ymanrem[5] = 0:
  131. act 'Pay for the renovations of the bathroom (250,000 <b>₽</b>)':
  132. cls
  133. karta -= 250000
  134. ymanrem[5] = 1
  135. minut += 5
  136. gs 'stat'
  137. 'The work on the batroom is finished.'
  138. act 'Leave':gt $curloc
  139. end
  140. elseif karta + bankDebtLimit >= 250000 and ymanrem[5] = 1:
  141. act 'Decorate the bathroom (250,000 <b>₽</b>)':
  142. cls
  143. karta -= 250000
  144. ymanrem[5] = 2
  145. minut += 5
  146. gs 'stat'
  147. 'The work on the batroom is finished.'
  148. act 'Leave':gt $curloc
  149. end
  150. end
  151. if karta + bankDebtLimit >= 250000 and ymanrem[6] = 0:
  152. act 'Pay for the renovations of the kitchen (250,000 <b>₽</b>)':
  153. cls
  154. karta -= 250000
  155. ymanrem[6] = 1
  156. minut += 5
  157. gs 'stat'
  158. 'The work on the kitchen is finished.'
  159. act 'Leave':gt $curloc
  160. end
  161. elseif karta + bankDebtLimit >= 350000 and ymanrem[6] = 1:
  162. act 'Decorate the kitchen (350,000 <b>₽</b>)':
  163. cls
  164. karta -= 250000
  165. ymanrem[6] = 2
  166. minut += 5
  167. gs 'stat'
  168. 'The work on the kitchen is finished.'
  169. act 'Leave':gt $curloc
  170. end
  171. end
  172. if karta + bankDebtLimit >= 250000 and ymanrem[7] = 0:
  173. act 'Pay for the renovations of the living room (250,000 <b>₽</b>)':
  174. cls
  175. karta -= 250000
  176. ymanrem[7] = 1
  177. minut += 5
  178. gs 'stat'
  179. 'The work on the living room is finished.'
  180. act 'Leave':gt $curloc
  181. end
  182. elseif karta + bankDebtLimit >= 250000 and ymanrem[7] = 1:
  183. act 'Decorate the living room (250,000 <b>₽</b>)':
  184. cls
  185. karta -= 250000
  186. ymanrem[7] = 2
  187. minut += 5
  188. gs 'stat'
  189. 'The work on the living room is finished.'
  190. act 'Leave':gt $curloc
  191. end
  192. end
  193. if karta + bankDebtLimit >= 250000 and ymanrem[8] = 0:
  194. act 'Pay for the renovations of the fireplace room (250,000 <b>₽</b>)':
  195. cls
  196. karta -= 250000
  197. ymanrem[8] = 1
  198. minut += 5
  199. gs 'stat'
  200. 'The work on the fireplace room is finished.'
  201. act 'Leave':gt $curloc
  202. end
  203. elseif karta + bankDebtLimit >= 250000 and ymanrem[8] = 1:
  204. act 'Decorate the fireplace room (250,000 <b>₽</b>)':
  205. cls
  206. karta -= 250000
  207. ymanrem[8] = 2
  208. minut += 5
  209. gs 'stat'
  210. 'The work on the fireplace room is finished.'
  211. act 'Leave':gt $curloc
  212. end
  213. end
  214. if karta + bankDebtLimit >= 250000 and ymanrem[9] = 0:
  215. act 'Pay for the renovations of the nursery room (250,000 <b>₽</b>)':
  216. cls
  217. karta -= 250000
  218. ymanrem[9] = 1
  219. minut += 5
  220. gs 'stat'
  221. 'The work on the nursery is finished.'
  222. act 'Leave':gt $curloc
  223. end
  224. elseif karta + bankDebtLimit >= 250000 and ymanrem[9] = 1:
  225. act 'Decorate the nursery (250,000 <b>₽</b>)':
  226. cls
  227. karta -= 250000
  228. ymanrem[9] = 2
  229. minut += 5
  230. gs 'stat'
  231. 'The work on the nursery is finished.'
  232. act 'Leave':gt $curloc
  233. end
  234. end
  235. if karta + bankDebtLimit >= 250000 and ymanrem[10] = 0:
  236. act 'Pay for the renovations of the library (250,000 <b>₽</b>)':
  237. cls
  238. karta -= 250000
  239. ymanrem[10] = 1
  240. minut += 5
  241. gs 'stat'
  242. 'The work on the library is finished.'
  243. act 'Leave':gt $curloc
  244. end
  245. elseif karta + bankDebtLimit >= 250000 and ymanrem[10] = 1:
  246. act 'Decorate the library (250,000 <b>₽</b>)':
  247. cls
  248. karta -= 250000
  249. ymanrem[10] = 2
  250. minut += 5
  251. gs 'stat'
  252. 'The work on the library is finished.'
  253. act 'Leave':gt $curloc
  254. end
  255. end
  256. if karta + bankDebtLimit >= 250000 and ymanrem[11] = 0:
  257. act 'Pay for the renovations of the gym (250,000 <b>₽</b>)':
  258. cls
  259. karta -= 250000
  260. ymanrem[11] = 1
  261. minut += 5
  262. gs 'stat'
  263. 'The work on the gym is finished.'
  264. act 'Leave':gt $curloc
  265. end
  266. elseif karta + bankDebtLimit >= 250000 and ymanrem[11] = 1:
  267. act 'Decorate the gym (250,000 <b>₽</b>)':
  268. cls
  269. karta -= 250000
  270. ymanrem[11] = 2
  271. minut += 5
  272. gs 'stat'
  273. 'The work on the gym is finished.'
  274. act 'Leave':gt $curloc
  275. end
  276. end
  277. if karta + bankDebtLimit >= 250000 and ymanrem[12] = 0:
  278. act 'Pay for the renovations of the office (250,000 <b>₽</b>)':
  279. cls
  280. karta -= 250000
  281. ymanrem[12] = 1
  282. minut += 5
  283. gs 'stat'
  284. 'The work on the office is finished.'
  285. act 'Leave':gt $curloc
  286. end
  287. elseif karta + bankDebtLimit >= 250000 and ymanrem[12] = 1:
  288. act 'Decorate the office (250,000 <b>₽</b>)':
  289. cls
  290. karta -= 250000
  291. ymanrem[12] = 2
  292. minut += 5
  293. gs 'stat'
  294. 'The work on the office is finished.'
  295. act 'Leave':gt $curloc
  296. end
  297. end
  298. end
  299. --- youplace ---------------------------------