1
0

autosalonF.qsrc 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # autosalonF
  2. if $ARGS[0] = 'start':
  3. $loc_arg = $ARGS[0]
  4. $loc = 'autosalonF'
  5. $location_type = 'event'
  6. menu_off = 1
  7. cla
  8. *clr
  9. minut += 5
  10. gs 'stat'
  11. '<center><b>Car Dealership</b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/city/industrial/cardealer/manager.jpg"></center>'
  13. nl
  14. '<b><center>Vehicles for sale, all brand new</center></b>'
  15. nl
  16. $car_table = '<center><table border=0>'
  17. $car_table += '<TH>Car</TH><TH></TH><TH>Price in <b>₽</b></TH>'
  18. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''6''">LADA Kalina</a>.</TD><TD> - </TD><TD> 535,800 <b>₽</b> </TD>'
  19. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''7''">LADA Vesta</a>.</TD><TD> - </TD><TD> 645,000 <b>₽</b> </TD>'
  20. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''8''">Chevrolet NIVA</a>.</TD><TD> - </TD><TD> 625,000 <b>₽</b> </TD>'
  21. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''9''">UAZ HUNTER</a>.</TD><TD> - </TD><TD> 600,000 <b>₽</b> </TD>'
  22. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''10''">UAZ Patriot</a>.</TD><TD> - </TD><TD> 760,000 <b>₽</b> </TD>'
  23. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''13''">Ford Focus</a>.</TD><TD> - </TD><TD> 884,000 <b>₽</b> </TD>'
  24. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''102''">Renault LOGAN</a>.</TD><TD> - </TD><TD> 649,990 <b>₽</b> </TD>'
  25. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''110''">Ford Mondeo</a>.</TD><TD> - </TD><TD> 1,329,000 <b>₽</b> </TD>'
  26. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''104''">Toyota Camry</a>.</TD><TD> - </TD><TD> 1,484,000 <b>₽</b> </TD>'
  27. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''95''">Mitsubishi L200</a>.</TD><TD> - </TD><TD> 1,749,990 <b>₽</b> </TD>'
  28. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''103''">Toyota Corolla</a>.</TD><TD> - </TD><TD> 1,097,000 <b>₽</b> </TD>'
  29. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''105''">Mazda 6</a>.</TD><TD> - </TD><TD> 1,299,700 <b>₽</b> </TD>'
  30. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''106''">Mercedes-Benz E-Class</a>.</TD><TD> - </TD><TD> 2,950,000 <b>₽</b> </TD>'
  31. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''109''">Audi A6</a>.</TD><TD> - </TD><TD> 2,914,000 <b>₽</b> </TD>'
  32. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''97''">Lexus RX 350</a>.</TD><TD> - </TD><TD> 3,374,000 <b>₽</b> </TD>'
  33. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''101''">BMW 3-Seria</a>.</TD><TD> - </TD><TD> 2,721,000 <b>₽</b> </TD>'
  34. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''107''">BMW M5</a>.</TD><TD> - </TD><TD> 7,000,000 <b>₽</b> </TD>'
  35. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''99''">BMW X6</a>.</TD><TD> - </TD><TD> 5,366,000 <b>₽</b> </TD>'
  36. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''96''">Audi Q7</a>.</TD><TD> - </TD><TD> 5,000,000 <b>₽</b> </TD>'
  37. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''98''">Porsche Cayenne</a>.</TD><TD> - </TD><TD> 5,500,000 <b>₽</b> </TD>'
  38. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''108''">Jaguar XJ</a>.</TD><TD> - </TD><TD> 6,500,000 <b>₽</b> </TD>'
  39. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''100''">Mercedes-Benz S-Class</a>.</TD><TD> - </TD><TD> 7,600,000 <b>₽</b> </TD>'
  40. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''111''">Bentley Continental GT</a>.</TD><TD> - </TD><TD> 13,000,000 <b>₽</b> </TD>'
  41. $car_table += '<TR><TD><a href="exec:GS ''carF1'',''112''">Ferrari 458 Italia</a>.</TD><TD> - </TD><TD> 14,000,000 <b>₽</b> </TD>'
  42. $car_table += '</table></center>'
  43. $car_table
  44. act 'Talk to the manager': gt 'autosalonF', 'manager1'
  45. act 'Return': gt 'autotraidF', 'start'
  46. end
  47. if $ARGS[0] = 'manager1':
  48. $loc_arg = $ARGS[0]
  49. $loc = 'autosalonF'
  50. $menu_arg = 'manager1'
  51. $menu_loc = 'autosalonF'
  52. menu_off = 0
  53. cla
  54. *clr
  55. gs 'stat'
  56. minut += 5
  57. '<center><b>Car Dealership</b></center>'
  58. '<center><img <<$set_imgh>> src="images/locations/city/industrial/cardealer/manager.jpg"></center>'
  59. 'You have <<karta - bankDebtLimit>> <b>₽</b> in your bank account.'
  60. 'The manager smiles affably and explains routinely what is required to purchase a car: A driver''s license and the sum, in full, in your bank account.'
  61. '"With how the economy is right now, we can''t accept payment by installments at this time I''m afraid," he apologizes. "A few new laws have also been passed too: We cannot accept cash payment - the Duma believes that will help fight crime - and it is currently not possible to own more than one car, according to the Oblast''s new anti-corruption law.'
  62. act 'Leave': gt 'city_industrial'
  63. if prava = 1:
  64. if karta >= 535800:
  65. act 'Buy a LADA Kalina (535,800 <b>₽</b>)': gt 'autosalonF', 'buy', 535800, 'LADA Kalina', 6, 400
  66. end
  67. if karta >= 645000:
  68. act 'Buy a LADA Vesta (645,000 <b>₽</b>)': gt 'autosalonF', 'buy', 645000, 'LADA Vesta', 7, 450
  69. end
  70. if karta >= 625000:
  71. act 'Buy a Chevrolet Niva (625,000 <b>₽</b>)': gt 'autosalonF', 'buy', 625000, 'Chevrolet NIVA', 8, 500
  72. end
  73. if karta >= 600000:
  74. act 'Buy a UAZ Hunter (600,000 <b>₽</b>)': gt 'autosalonF', 'buy', 600000, 'UAZ HUNTER', 9, 300
  75. end
  76. if karta >= 760000:
  77. act 'Buy a UAZ Patriot (760,000 <b>₽</b>)': gt 'autosalonF', 'buy', 760000, 'UAZ Patriot', 10, 400
  78. end
  79. if karta >= 884000:
  80. act 'Buy a Ford Focus (884,000 <b>₽</b>)': gt 'autosalonF', 'buy', 884000, 'Ford Focus', 13, 800
  81. end
  82. if karta >= 649990:
  83. act 'Buy a Renault LOGAN (649,990 <b>₽</b>)': gt 'autosalonF', 'buy', 649990, 'Renault LOGAN', 102, 1000
  84. end
  85. if karta >= 1329000:
  86. act 'Buy a Ford Mondeo (1,329,000 <b>₽</b>)': gt 'autosalonF', 'buy', 1329000, 'Ford Mondeo', 110, 2000
  87. end
  88. if karta >= 1484000:
  89. act 'Buy a Toyota Camry (1,484,000 <b>₽</b>)': gt 'autosalonF', 'buy', 1484000, 'Toyota Camry', 104, 3000
  90. end
  91. if karta >= 1749990:
  92. act 'Buy a Mitsubishi L200 (1,749,990 <b>₽</b>)': gt 'autosalonF', 'buy', 1749990, 'Mitsubishi L200', 95, 2000
  93. end
  94. if karta >= 1097000:
  95. act 'Buy a Toyota Corolla (1,097,000 <b>₽</b>)': gt 'autosalonF', 'buy', 1097000, 'Toyota Corolla', 103, 3000
  96. end
  97. if karta >= 1299700:
  98. act 'Buy a Mazda 6 (1,299,700 <b>₽</b>)': gt 'autosalonF', 'buy', 1299700, 'Mazda 6', 105, 3000
  99. end
  100. if karta >= 2950000:
  101. act 'Buy a Mercedes-Benz E-Class (2,950,000 <b>₽</b>)': gt 'autosalonF', 'buy', 2950000, 'Mercedes-Benz E-Class', 106, 5000
  102. end
  103. if karta >= 2914000:
  104. act 'Buy an Audi A6 (2,914,000 <b>₽</b>)': gt 'autosalonF', 'buy', 2914000, 'Audi A6', 109, 5000
  105. end
  106. if karta >= 3374000:
  107. act 'Buy a Lexus RX 350(3,374,000 <b>₽</b>)': gt 'autosalonF', 'buy', 3374000, 'Lexus RX 350', 97, 4000
  108. end
  109. if karta >= 2721000:
  110. act 'Buy a BMW 3-Seria (2,721,000 <b>₽</b>)': gt 'autosalonF', 'buy', 2721000, 'BMW 3-Seria', 101, 4000
  111. end
  112. if karta >= 7000000:
  113. act 'Buy a BMW M5 (7,000,000 <b>₽</b>)': gt 'autosalonF', 'buy', 7000000, 'BMW M5', 107, 6000
  114. end
  115. if karta >= 5366000:
  116. act 'Buy a BMW X6 (5,366,000 <b>₽</b>)': gt 'autosalonF', 'buy', 5366000, 'BMW X6', 99, 4000
  117. end
  118. if karta >= 5000000:
  119. act 'Buy an Audi Q7 (5,000,000 <b>₽</b>)': gt 'autosalonF', 'buy', 5000000, 'Audi Q7', 96, 5000
  120. end
  121. if karta >= 5500000:
  122. act 'Buy a Porsche Cayenne (5,500,000 <b>₽</b>)': gt 'autosalonF', 'buy', 5500000, 'Porsche Cayenne', 98, 3000
  123. end
  124. if karta >= 6500000:
  125. act 'Buy a Jaguar XJ (6,500,000 <b>₽</b>)': gt 'autosalonF', 'buy', 6500000, 'Jaguar XJ', 108, 4000
  126. end
  127. if karta >= 7600000:
  128. act 'Buy a Mercedes-Benz S-Class (7,600,000 <b>₽</b>)': gt 'autosalonF', 'buy', 7600000, 'Mercedes-Benz S-Class', 100, 8000
  129. end
  130. if karta >= 13000000:
  131. act 'Buy a Bentley Continental GT (13,000,000 <b>₽</b>)': gt 'autosalonF', 'buy', 13000000, 'Bentley Continental GT', 111, 8000
  132. end
  133. if karta >= 14000000:
  134. act 'Buy a Ferrari 458 Italia (14,000,000 <b>₽</b>)': gt 'autosalonF', 'buy', 14000000, 'Ferrari 458 Italia', 112, 10000
  135. end
  136. end
  137. end
  138. if $ARGS[0] = 'buy':
  139. cla
  140. *clr
  141. menu_off = 1
  142. karta -= ARGS[1]
  143. $car = $ARGS[2]
  144. car = ARGS[3]
  145. benz = 3
  146. cardrive = 9
  147. car['new_condition'] = ARGS[4]
  148. car['current_condition'] = ARGS[4]
  149. wrek = 0
  150. 'The manager draws up a purchasing contract, and you inform the bank of the impending transaction. Once the bank has confirmed the write-off, the manager hands you the key to your new car.'
  151. '"It''s waiting for you outside," he says. "The fuel tank is almost empty though, so you should stop by the gas station right away."'
  152. act 'Leave': gt'city_industrial'
  153. end
  154. --- autosalonF ---------------------------------