1
0

fuelstation.qsrc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # fuelstation
  2. if $ARGS[0] = 'start':
  3. $loc_arg = 'start'
  4. $loc = 'fuelstation'
  5. $menu_loc = 'fuelstation'
  6. $menu_arg = 'start'
  7. menu_off = 0
  8. $location_type = 'public_outdoors'
  9. cla & *clr
  10. gs 'stat'
  11. '<center><b>Gas Station</b></center>'
  12. if hour < 8 or hour > 21:
  13. '<center><img <<$set_imgh>> src="images/locations/shared/gas/gazprom_night.jpg"></center>'
  14. else
  15. '<center><img <<$set_imgh>> src="images/locations/shared/gas/gazprom_day.jpg"></center>'
  16. end
  17. 'The local gas station, the cheap pumps are limited in functionality and will always fill the tank up completely.'
  18. 'The petrol price is 30 <b>₽</b> per liter.'
  19. *nl
  20. 'When the weather is nice, girls will sometimes offer a car washing service for some tips. There''s no structure to it, so you could always try it.'
  21. act 'Leave':
  22. if $region = 'city':
  23. minut += 5
  24. gt 'city_industrial'
  25. elseif $region = 'pav':
  26. minut += 5
  27. gt 'pav_commercial'
  28. end
  29. end
  30. if temper < 10:
  31. 'It''s too cold to wash cars. You''re more likely to get ill than make money. Maybe try again when the weather is warmer?'
  32. elseif sunWeather = 0:
  33. 'You can''t wash cars if it''s raining outside! Maybe try again on a sunny day?'
  34. elseif hour < 8:
  35. 'It''s too early to wash cars.'
  36. elseif hour >= 21:
  37. 'It''s too late to wash cars.'
  38. else
  39. act 'Wash car windows (1:00)': gt 'fuelstation_carwash', 'start'
  40. end
  41. act 'Go to the toilet': gt 'fuelstation', 'toilet'
  42. if car > 0:
  43. if cardrive = 6 and $region = 'city': 'Your <a href="exec: gs ''carF'', ''start''"><<$car>></a> is parked here.'
  44. if cardrive = 21 and $region = 'pav': 'Your <a href="exec: gs ''carF'', ''start''"><<$car>></a> is parked here.'
  45. if kanistra < 5:
  46. act 'Buy a canister and fill it with 5 liters of gasoline (150 <b>₽</b>)':
  47. cla
  48. kanistra += 1
  49. money -= 150
  50. 'You buy a canister of gasoline. (It will automatically be put in the trunk of your car)'
  51. act 'Disengage from the pump': gt 'fuelstation', 'start'
  52. end
  53. end
  54. if benz < 50 and (cardrive = 6 or cardrive = 21):
  55. zprbenz = 50 - benz
  56. if zprbenz * 30 <= money:
  57. act 'Fill the tank with petrol':
  58. *clr & cla
  59. benz = 50
  60. zprpay = zprbenz * 30
  61. money -= zprpay
  62. ! WD: Uninitialised ~ 'pol'
  63. ! if pol > 0:'<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
  64. '<center><img <<$set_imgh>> src="images/locations/shared/gas/zapr1.jpg"></center>'
  65. 'You fill the tank and pay <<zprpay>> <b>₽</b>.'
  66. act 'Disengage from the pump': gt 'fuelstation', 'start'
  67. end
  68. else
  69. 'You do not have enough money to refuel your car.'
  70. end
  71. end
  72. end
  73. end
  74. if $ARGS[0] = 'toilet':
  75. CLOSE ALL
  76. gs 'themes', 'indoors'
  77. cla & *clr
  78. $loc_arg = 'toilet'
  79. $loc = 'fuelstation'
  80. $location_type = 'bathroom'
  81. $locM = 'fuelstation'
  82. $locM_arg = 'toilet'
  83. minut += 2
  84. $menu_loc = 'fuelstation'
  85. $menu_arg = 'toilet'
  86. menu_off = 0
  87. gs 'stat'
  88. '<center><h4>Gas station toilet</h4></center>'
  89. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/toilet.jpg"></center>'
  90. 'You are in a dirty gas station toilet. At least it provides some privacy.'
  91. act 'Leave the restroom': gt 'fuelstation', 'start'
  92. act 'Look in the mirror': gt 'mirror', 'start'
  93. if pcs_hairbsh < 1: act 'Brush your hair': gt 'mirror', 'brush'
  94. dynamic $tampon
  95. dynamic $quickwash
  96. dynamic $basin
  97. dynamic $publicpan
  98. gs 'din_van', 'pblc_pee'
  99. end
  100. --- fuelstation ---------------------------------