autotraidF.qsrc 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. # autotraidF
  2. if $ARGS[0] = 'start':
  3. $loc_arg = $ARGS[0]
  4. $loc = 'autotraidF'
  5. $location_type = 'event'
  6. $menu_arg = 'start'
  7. $menu_loc = 'autotraidF'
  8. menu_off = 0
  9. *clr & cla
  10. gs 'stat'
  11. '<center><b>Car Dealership</b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  13. 'Upon entering the yard, you see a laminated piece of paper pinned to a wall near the entrance:'
  14. '- We only sell to people with valid driver''s licenses.'
  15. '- New State law: No sale if you already own a car.'
  16. if car > 0 and cardrive = 9:'Your <a href="exec:gs ''carF'', ''start''"><<$car>></a> is parked just inside.'
  17. act 'Leave': minut += 5 & gt 'city_industrial'
  18. if func('autotraidF', 'is_open'):
  19. if car > 0:act 'Ask about selling your car':gt 'autotraidF', 'manager1'
  20. act 'Look at the new cars for sale': gt 'autosalonF', 'start'
  21. act 'Look at the used cars for sale':gt 'autotraidF', 'car'
  22. end
  23. end
  24. if $ARGS[0] = 'is_open':
  25. RESULT = hour >= 9 and hour < 18 and week > 1
  26. end
  27. if $ARGS[0] = 'manager1':
  28. $loc_arg = $ARGS[0]
  29. $loc = 'autotraidF'
  30. $menu_arg = 'manager1'
  31. $menu_loc = 'autotraidF'
  32. menu_off = 0
  33. *clr & cla
  34. gs 'stat'
  35. '<center><b>Used Car Dealership</b></center>'
  36. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  37. gs 'avb'
  38. act 'Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial'
  39. if cardrive = 9 and car > 0:
  40. '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 is major 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.'
  41. act 'No way, not at that price - Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial'
  42. act 'Sell ​your car (<<bupay>> <b>₽</b>) (1:00)':
  43. cla
  44. menu_off = 1
  45. minut += 60
  46. money += bupay
  47. car = 0
  48. 'While you are almost certain that he''s offering less than the car is actually worth, you doubt that you''re going to find somebody who''s going to offer you more for it, and your attempts at haggling with the fence fall flat - he''s just too experienced at this.'
  49. '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.'
  50. '"Maybe you''ll see something you like?"'
  51. act 'Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial'
  52. end
  53. elseif cardrive ! 9:
  54. 'The salesman tells you, his smile sneering rather than friendly, that he needs to look at your car before he can tell you how much it''s worth. "If you want, I can have somebody tow it here. It only costs 3000 <b>₽</b>. Very cheap!"'
  55. if money >= 3000:
  56. act 'Pay for towing service to the car market (3,000 <b>₽</b>) (1:00)':
  57. cla
  58. menu_off = 1
  59. minut += 60
  60. cardrive = 9
  61. money -= 3000
  62. '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, your car hooked up to the rear of it.'
  63. act 'Talk to the car salesman again': killvar 'bupay' & gt 'autotraidF', 'manager1'
  64. end
  65. end
  66. end
  67. end
  68. if $ARGS[0] = 'car':
  69. $loc_arg = $ARGS[0]
  70. $loc = 'autotraidF'
  71. $menu_arg = 'car'
  72. $menu_loc = 'autotraidF'
  73. menu_off = 0
  74. *clr & cla
  75. minut += 5
  76. carT = 0
  77. gs 'stat'
  78. '<center><b>Used Car Dealership</b></center>'
  79. '<center><img <<$set_imgh>> src="images/locations/city/industrial/usedcar/autotraid.jpg"></center>'
  80. 'There are so many cars on the parking lot that you could spend a lifetime looking around without ever seeing all of them. 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.'
  81. *nl
  82. '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.'
  83. act 'Return': killvar 'carT' & killvar 'bupay' & gt 'autotraidF', 'start'
  84. if hour <= 17:
  85. act 'Inspect a 2107':gt 'autotraidF', 'inspect', '2107', 1, 200, 1, 3
  86. act 'Inspect another 2107 (Broken Engine)':
  87. cla
  88. *clr
  89. menu_off = 1
  90. '<center><b>2107 (Broken engine)</b></center>'
  91. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car.jpg"></center>'
  92. bupay = rand(10000, 50000)
  93. '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.'
  94. act 'Look around some more':gt 'autotraidf', 'car'
  95. if car = 0 and prava = 1 and money >= bupay:
  96. act 'Buy it for <<bupay>><b>₽</b>':
  97. cla
  98. money -= bupay
  99. $car = '2107'
  100. car = 1
  101. benz = 3
  102. cardrive = 9
  103. tehcar = 200
  104. teh = rand(10, tehcar)
  105. wrek = 1
  106. 'You agree and 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 that''s it.'
  108. 'If you want to get the car to a garage, you''ll have to go there and have it towed.'
  109. killvar 'bupay'
  110. act 'Leave': minut += 5 & gt 'city_industrial'
  111. end
  112. end
  113. end
  114. act 'Inspect a VAZ 2115':gt 'autotraidF', 'inspect', 'VAZ 2115', 2, 300, 1, 3
  115. act 'Inspect a VAZ 2113':gt 'autotraidF', 'inspect', 'VAZ 2113', 3, 290, 1, 3
  116. act 'Inspect a VAZ 2114':gt 'autotraidF', 'inspect', 'VAZ 2114', 4, 300, 1, 3
  117. act 'Inspect a VAZ 2110':gt 'autotraidF', 'inspect', 'VAZ 2110', 5, 350, 1, 3
  118. act 'Inspect a GAZ 3102':gt 'autotraidF', 'inspect', '3102 GAS', 11, 1000, 2, 5
  119. act 'Inspect a 3110':gt 'autotraidF', 'inspect', '3110', 12, 800, 2, 5
  120. end
  121. end
  122. if $ARGS[0] = 'inspect':
  123. cla
  124. *clr
  125. menu_off = 1
  126. $autotraidF_carname = $ARGS[1]
  127. autotraidF_carnum = ARGS[2]
  128. tehNT = ARGS[3]
  129. carT = ARGS[4]
  130. autotraidF_benz = ARGS[5]
  131. '<center><b><<$autotraidF_carname>></b></center>'
  132. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car<<iif(autotraidF_carnum = 1, '''', autotraidF_carnum)>>.jpg"></center>'
  133. gs 'avt'
  134. '<<$tehT>> The car salesman wants <<bupay>> <b>₽</b> for it.'
  135. act 'Look around some more':
  136. killvar 'bupay'
  137. killvar 'tehT'
  138. killvar 'tehNT'
  139. killvar '$autotraidF_carname'
  140. killvar 'autotraidF_carnum'
  141. killvar 'autotraidF_benz'
  142. gt 'autotraidF', 'car'
  143. end
  144. if car = 0 and prava = 1 and money >= bupay:
  145. act 'Buy (<<bupay>> <b>₽</b>)':
  146. cla
  147. money -= bupay
  148. $car = $autotraidF_carname
  149. car = autotraidF_carnum
  150. benz = autotraidF_benz
  151. cardrive = 9
  152. teh = tehT
  153. tehcar = tehNT
  154. wrek = 0
  155. 'You agree and 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.'
  156. '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.'
  157. killvar 'bupay'
  158. killvar 'tehT'
  159. killvar 'tehNT'
  160. killvar '$autotraidF_carname'
  161. killvar 'autotraidF_carnum'
  162. killvar 'autotraidF_benz'
  163. act 'Leave': minut += 5 & gt 'city_industrial'
  164. end
  165. end
  166. end
  167. --- autotraidF ---------------------------------