zaprF.qsrc 3.2 KB

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