1
0

autotraidF.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. # autotraidF
  2. if $ARGS[0] = 'start':
  3. $metka = $ARGS[0]
  4. $loc = $CURLOC
  5. $location_type = 'event'
  6. $menu_arg = 'start'
  7. $menu_loc = 'autotraidF'
  8. menu_off = 0
  9. cla
  10. *clr
  11. gs 'stat'
  12. '<center><b>Car Dealership</b></center>'
  13. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  14. 'Upon entering the yard, you see a laminated piece of paper pinned to a wall near the entrance:'
  15. '- We only sell to people with valid driver''s licenses.'
  16. '- New State law: No sale if you already own a car.'
  17. if hour <= 17:
  18. if car > 0:act 'Ask about selling your car':gt 'autotraidF', 'manager1'
  19. act 'Look at the new cars for sale': gt 'autosalonF', 'start'
  20. act 'Look at the used cars for sale':gt 'autotraidF', 'car'
  21. end
  22. act 'Leave': minut += 5 & gt 'Nord'
  23. end
  24. if $ARGS[0] = 'manager1':
  25. $metka = $ARGS[0]
  26. $loc = $CURLOC
  27. $menu_arg = 'manager1'
  28. $menu_loc = 'autotraidF'
  29. menu_off = 0
  30. cla
  31. *clr
  32. gs 'stat'
  33. '<center><b>Used Car Dealership</b></center>'
  34. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  35. gs 'avb'
  36. act 'Leave': minut += 5 & gt 'Nord'
  37. if cardrive = 9 and car > 0:
  38. 'The shifty-looking salesman circles around your car a couple of times, making exaggerated displeased noises all the while and pointing out practically every speck of dust as if it was a huge damage. When he turns to you, he states that the best he can do is <<bupay>> <b>₽</b> - while he claims that he''s taking a risk with that price, you''re pretty sure he''s ripping you off.'
  39. act 'No way, not at that price - Leave': minut += 5 & gt 'Nord'
  40. act 'Sell ​your car (<<bupay>> <b>₽</b>) (1:00)':
  41. cla
  42. menu_off = 1
  43. minut += 60
  44. money += bupay
  45. car = 0
  46. 'While you are almost certain that he''s offering less than the car is actually worth, you doubt that you''re gonna find somebody who''s gonna offer you more for it and your attempts at haggling with the fence fall flat - he''s just too experienced at this.'
  47. 'So, as much as you hate it, you give your car one last look before you shake hands with him and follow him into the tiny shed he calls his "office" to sign the papers. He hands you the money in cash and, with a nasty grin, suggests that you look around the yard.'
  48. '"Maybe you see something you like."'
  49. act 'Leave': minut += 5 & gt 'Nord'
  50. end
  51. elseif cardrive ! 9:
  52. 'The salesman tells you, his smile sneering rather than friendly, that he needs to look at you car before he can tell you how much it''s worth. "But if you want, I can have somebody tow it here. It only costs 3000 <b>₽</b>. Very cheap!"'
  53. if money >= 3000:
  54. act 'Pay for towing service to the car market (3,000 <b>₽</b>) (1:00)':
  55. cla
  56. menu_off = 1
  57. minut += 60
  58. cardrive = 9
  59. money -= 3000
  60. 'You give him the money - certain that he''s ripping you off - and wait for an hour until the tow truck finally drives into the yard and your car.'
  61. act 'Talk to the car salesman again':gt 'autotraidF', 'manager1'
  62. end
  63. end
  64. end
  65. end
  66. if $ARGS[0] = 'car':
  67. $metka = $ARGS[0]
  68. $loc = $CURLOC
  69. $menu_arg = 'car'
  70. $menu_loc = 'autotraidF'
  71. menu_off = 0
  72. cla
  73. *clr
  74. minut += 5
  75. carT = 0
  76. gs 'stat'
  77. '<center><b>Used Car Dealership</b></center>'
  78. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  79. 'There are so many cars on the parking lot that you could spend a lifetime looking around without ever seeing all of them. And according to the salesman, several cars are currently being test-driven or maintained. You doubt that there''s actually any maintenance going on, though: Several of the cars are visibly damaged or make awful sounds when they are started.'
  80. ''
  81. 'It''s obvious that most, if not all of them have sustained some visible or invisible damage. Buying a car here could be a fantastic bargain... or a complete waste of money. If you are to buy any of them, you know that the first place to visit should be a service center.'
  82. if hour <= 17:
  83. act 'Inspect a 2107':
  84. cla
  85. *clr
  86. menu_off = 1
  87. '<center><b>2107</b></center>'
  88. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car.jpg"></center>'
  89. tehNT = 200
  90. tehT = rand(10, tehNT)
  91. carT = 1
  92. gs 'avt'
  93. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  94. act 'Look around some more':gt 'autotraidF', 'car'
  95. if car = 0 and prava = 1 and money >= bupay:
  96. act 'Buy the car (<<bupay>> <b>₽</b>)':
  97. cla
  98. money -= bupay
  99. $car = '2107'
  100. car = 1
  101. benz = 3
  102. cardrive = 9
  103. teh = tehT
  104. tehcar = 200
  105. wrek = 0
  106. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  107. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  108. act 'Leave': minut += 5 & gt 'Nord'
  109. end
  110. end
  111. end
  112. act 'Inspect another 2107 (Broken Engine)':
  113. cla
  114. *clr
  115. menu_off = 1
  116. '<center><b>2107 (Broken engine)</b></center>'
  117. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car.jpg"></center>'
  118. tehNT = 200
  119. tehT = rand(10, tehNT)
  120. bupay = rand(10000, 50000)
  121. 'The car is basically a wreck. It doesn''t even start. When you ask the salesman how much it costs, he tells you "<<bupay>> <b>₽</b>" without hesitation.'
  122. act 'Look around some more':gt 'autotraidf', 'car'
  123. if car = 0 and prava = 1 and money >= bupay:
  124. act 'Buy it for <<bupay>><b>₽</b>':
  125. cla
  126. money -= bupay
  127. $car = '2107'
  128. car = 1
  129. benz = 3
  130. cardrive = 9
  131. teh = tehT
  132. tehcar = 200
  133. wrek = 1
  134. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  135. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you... and that''s it.'
  136. 'If you want to get the car to a garage, you''ll have to go there and have it towed.'
  137. act 'Leave': minut += 5 & gt 'Nord'
  138. end
  139. end
  140. end
  141. act 'Inspect a VAZ 2115':
  142. cla
  143. *clr
  144. menu_off = 1
  145. tehNT = 300
  146. tehT = RAND(10,tehNT)
  147. carT = 1
  148. '<center><b>VAZ 2115</b></center>'
  149. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car2.jpg"></center>'
  150. gs'avt'
  151. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  152. act 'Look around some more':gt'autotraidF','car'
  153. if car = 0 and prava = 1 and money >= bupay:
  154. act 'Buy for <<bupay>> <b>₽</b>':
  155. cla
  156. money = money - bupay
  157. $car = 'VAZ 2115'
  158. car = 2
  159. benz = 3
  160. cardrive = 9
  161. teh = tehT
  162. tehcar = 300
  163. wrek = 0
  164. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  165. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  166. act 'Leave': minut += 5 & gt'Nord'
  167. end
  168. end
  169. end
  170. act 'Inspect a VAZ 2113':
  171. cla
  172. *clr
  173. menu_off = 1
  174. tehNT = 290
  175. tehT = RAND(10,tehNT)
  176. carT = 1
  177. '<center><b>VAZ 2113</b></center>'
  178. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car3.jpg"></center>'
  179. gs'avt'
  180. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  181. act 'Look around some more':gt'autotraidF','car'
  182. if car = 0 and prava = 1 and money >= bupay:
  183. act 'Buy for <<bupay>> <b>₽</b>':
  184. cla
  185. money = money - bupay
  186. $car = 'VAZ 2113'
  187. car = 3
  188. benz = 3
  189. cardrive = 9
  190. teh = tehT
  191. tehcar = 290
  192. wrek = 0
  193. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  194. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  195. act 'Leave': minut += 5 & gt'Nord'
  196. end
  197. end
  198. end
  199. act 'Inspect a VAZ 2114':
  200. cla
  201. *clr
  202. menu_off = 1
  203. tehNT = 300
  204. tehT = RAND(10,tehNT)
  205. carT = 1
  206. '<center><b>VAZ 2114</b></center>'
  207. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car4.jpg"></center>'
  208. gs'avt'
  209. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  210. act 'Look around some more':gt'autotraidF','car'
  211. if car = 0 and prava = 1 and money >= bupay:
  212. act 'Buy for <<bupay>> <b>₽</b>':
  213. cla
  214. money = money - bupay
  215. $car = 'VAZ 2114'
  216. car = 4
  217. benz = 3
  218. cardrive = 9
  219. teh = tehT
  220. tehcar = 300
  221. wrek = 0
  222. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  223. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  224. act 'Leave': minut += 5 & gt'Nord'
  225. end
  226. end
  227. end
  228. act 'Inspect a VAZ 2110':
  229. cla
  230. *clr
  231. menu_off = 1
  232. tehNT = 350
  233. tehT = RAND(10,tehNT)
  234. carT = 1
  235. '<center><b>VAZ 2110</b></center>'
  236. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car5.jpg"></center>'
  237. gs'avt'
  238. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  239. act 'Look around some more':gt'autotraidF','car'
  240. if car = 0 and prava = 1 and money >= bupay:
  241. act 'Buy for <<bupay>> <b>₽</b>':
  242. cla
  243. money = money - bupay
  244. $car = 'VAZ 2110'
  245. car = 5
  246. benz = 3
  247. cardrive = 9
  248. teh = tehT
  249. tehcar = 350
  250. wrek = 0
  251. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  252. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  253. act 'Leave': minut += 5 & gt'Nord'
  254. end
  255. end
  256. end
  257. act 'Inspect a GAZ 3102':
  258. cla
  259. *clr
  260. menu_off = 1
  261. '<center><b>3102 GAS</b></center>'
  262. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car11.jpg"></center>'
  263. tehNT = 1000
  264. tehT = rand(10, tehNT)
  265. carT = 2
  266. gs 'avt'
  267. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  268. act 'Look around some more':gt 'autotraidf', 'car'
  269. if car = 0 and prava = 1 and money >= bupay:
  270. act 'Buy <<bupay>><b>₽</b>':
  271. cla
  272. money -= bupay
  273. $car = 'GAZ 3102'
  274. car = 11
  275. benz = 5
  276. cardrive = 9
  277. teh = tehT
  278. tehcar = 1000
  279. wrek = 0
  280. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  281. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  282. act 'Leave': minut += 5 & gt 'Nord'
  283. end
  284. end
  285. end
  286. act 'Inspect a 3110':
  287. cla
  288. *clr
  289. menu_off = 1
  290. '<center><b>3110</b></center>'
  291. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car12.jpg"></center>'
  292. tehNT = 800
  293. tehT = rand(10, tehNT)
  294. carT = 2
  295. gs 'avt'
  296. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  297. act 'Look around some more':gt 'autotraidF', 'car'
  298. if car = 0 and prava = 1 and money >= bupay:
  299. act 'Buy (<<bupay>> <b>₽</b>)':
  300. cla
  301. money -= bupay
  302. $car = '3110'
  303. car = 12
  304. benz = 5
  305. cardrive = 9
  306. teh = tehT
  307. tehcar = 800
  308. wrek = 0
  309. 'You agree. Before you know it, the car salesman and you have signed all the necessary documents, you hand over the <<bupay>> <b>₽</b> in cash and the car is yours.'
  310. 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.'
  311. act 'Leave': minut += 5 & gt 'Nord'
  312. end
  313. end
  314. end
  315. end
  316. act 'Return': gt 'autotraidF', 'start'
  317. end
  318. --- autotraidF ---------------------------------