carF.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. # carF
  2. !2021/04/26
  3. $enddrive = {
  4. if cardrive = 1: gt 'city_residential'
  5. if cardrive = 2: gt 'city_center'
  6. if cardrive = 3: gt 'city_industrial'
  7. if cardrive = 4: gt 'city_lake', 'start'
  8. if cardrive = 5: gt 'city_park', 'start'
  9. if cardrive = 6: $region = 'city' & gt 'fuelstation', 'start'
  10. if cardrive = 7: gt 'autoservisF', 'start'
  11. if cardrive = 8: gt 'city_house_res_misc', 'fronty'
  12. if cardrive = 9: gt 'autotraidF', 'start'
  13. if cardrive = 10: gt 'city_park', 'whore'
  14. if cardrive = 11: gt 'city_sauna'
  15. if cardrive = 12: gt 'obekt'
  16. if cardrive = 13: gt 'dachi'
  17. if cardrive = 14: gt 'pushkin'
  18. if cardrive = 18: gt 'city_mansion_entrance'
  19. if cardrive = 19: gt 'city_industrial_train', 'outside'
  20. if cardrive = 20: gt 'pav_residential'
  21. if cardrive = 21: $region = 'pav' & gt 'fuelstation','start'
  22. if cardrive = 22: gt 'road'
  23. if cardrive = 23: gt 'gadukino'
  24. if cardrive = 24: gt 'pav_commercial'
  25. if cardrive = 25: gt 'city_island'
  26. if cardrive = 26: gt 'pav_industrial'
  27. if cardrive = 27: gt 'city_redlight', 'start'
  28. if cardrive = 28: gt 'city_suburbs', 'start'
  29. if cardrive = 29: gt 'gas_station_gp_117', 'outside'
  30. }
  31. if $ARGS[0] = 'start':
  32. $menu_loc = 'carF'
  33. $menu_arg = 'start'
  34. menu_off = 0
  35. $loc_arg = $ARGS[0]
  36. $loc = 'carF'
  37. CLOSE ALL
  38. *clr & cla
  39. minut += 1
  40. gs 'stat'
  41. gs 'themes', 'indoors'
  42. '<center><b><<$car>></b></center>'
  43. '<center><img <<$set_imgh>> src="images/pc/items/accessories/car/car<<car>>.jpg"></center>'
  44. act 'Move away from the car':dynamic $enddrive
  45. if kanistra > 0:
  46. 'In the trunk there ' + iif(kanistra = 1, 'is 1 cannister', 'are <<kanistra>> canisters') + ' of gasoline. Each canister contains 5 liters of gasoline.'
  47. if benz <= 45:
  48. act 'Pour gasoline into the tank':
  49. cla
  50. menu_off = 1
  51. benz += 5
  52. kanistra -= 1
  53. 'You empty the canister of gasoline into the tank.'
  54. act 'Move away':gt 'carF', 'start'
  55. end
  56. end
  57. end
  58. act 'Get in the car':gt 'carF', 'salon'
  59. end
  60. if $ARGS[0] = 'salon':
  61. menu_off = 1
  62. $loc_arg = $ARGS[0]
  63. $loc = 'carF'
  64. *clr & cla
  65. minut += 1
  66. gs 'stat'
  67. '<center><b><<$car>></b></center>'
  68. '<center><img <<$set_imgh>> src="images/pc/items/accessories/car/salon<<car>>.jpg"></center>'
  69. 'Gasoline - <<benz>> ' + iif(benz = 1, 'liter', 'liters') + ', the fuel tank has a capacity of 40 liters.'
  70. if car['current_condition'] <= 0:car['current_condition'] = 0 & wrek = 1
  71. if car['current_condition'] <= 0 or wrek = 1:
  72. 'The car is in need of repairs and won''t start.'
  73. elseif car['current_condition'] >= car['new_condition'] * 75 / 100 and wrek = 0:
  74. 'The car is in excellent condition.'
  75. elseif car['current_condition'] >= car['new_condition'] * 50 / 100 and wrek = 0:
  76. 'While driving, you occasionally hear some troubling noises.'
  77. elseif car['current_condition'] >= car['new_condition'] * 25 / 100 and wrek = 0:
  78. 'The car seems broken and barely drives.'
  79. else
  80. 'How this car still runs is a mystery, even to its designers.'
  81. end
  82. if cardrive = 1:'Through the windshield, you see St. Petersburg''s residential area.'
  83. if cardrive = 2:'Through the windshield, you see St. Petersburg''s city center.'
  84. if cardrive = 3:'Through the windshield, you see St. Petersburg''s industrial region.'
  85. if cardrive = 4:'Through the windshield, you see the lake.'
  86. if cardrive = 5:'Through the windshield, you can see the park.'
  87. if cardrive = 6:'Through the windshield, you can see the gas station in the city industrial region.'
  88. if cardrive = 7:'Through the windshield, you can see the car service center.'
  89. if cardrive = 8:'Through the windshield, you see your house in St. Petersburg''s residential area.'
  90. if cardrive = 9:'Through the windshield, you can see many of the cars for sale outside the showroom.'
  91. if cardrive = 10:'Through the windshield, you can see hookers outside the park.'
  92. if cardrive = 11:'Through the windshield, you can see the sauna.'
  93. if cardrive = 12:'Through the windshield, you see a construction site.'
  94. if cardrive = 13:'Through the windshield, you can see the suburban cooperative.'
  95. if cardrive = 14:'Through the windshield, you see the Old Town district of Pavlovsk.'
  96. if cardrive = 18:'Through the windshield, you can see your mansion.'
  97. if cardrive = 19:'Through the windshield, you see the city industrial region train station.'
  98. if cardrive = 20:'Through the windshield, you can see Pavlovsk''s residential area.'
  99. if cardrive = 21:'Through the windshield, you can see the gas station near Pavlovsk.'
  100. if cardrive = 22:'Through the windshield, you can see the highway.'
  101. if cardrive = 23:'Through the windshield, you see the huts of the village of Gadukino.'
  102. if cardrive = 24:'Through the windshield, you can see Pavlovsk''s commercial region.'
  103. if cardrive = 25:'You cross one of the bridges that leads to the island.'
  104. if cardrive = 26:'Through the windshield, you can see Pavlovsk''s industrial region.'
  105. if cardrive = 27:'Through the windshield, you see St. Petersburg''s red light district.'
  106. if cardrive = 28:'Through the windshield, you see St. Petersburg''s suburbs.'
  107. if cardrive = 29:'Through the windshield, you can see the Gazpromneft gas station on the highway.'
  108. if prava = 0:'You don''t have a driver''s license.'
  109. act 'Get out of the car':dynamic $enddrive
  110. if benz > 0 and wrek = 0 and prava > 0:
  111. if car['current_condition'] >= car['new_condition'] * 75 / 100:
  112. if rand(0, 1000) = 1000:wrek = 1
  113. elseif car['current_condition'] >= car['new_condition'] * 50 / 100:
  114. if rand(0, 100) = 100:wrek = 1
  115. elseif car['current_condition'] >= car['new_condition'] * 25 / 100:
  116. if rand(0, 100) >= 80:wrek = 1
  117. else
  118. if rand(0, 100) >= 40:wrek = 1
  119. end
  120. if wrek = 1:
  121. 'Something clatters loudly, and the engine stalls.'
  122. act 'Fuck':gt 'carF', 'salon'
  123. else
  124. if alko > 0 and rand(0, 100) <= alko:
  125. 'A policeman stops you. He looks at your condition and requests you breathe into a tube. You breathe, and a red light brightens up on the instrument panel.'
  126. 'The officer snorts and writes something down. He hands you a slip of paper with the number 50,000 on it'
  127. '"Or I can write a report. But you will get a permanent record for driving drunk."'
  128. if money >= 50000:
  129. act 'Bribe him (50,000 <b>₽</b>)':
  130. cla
  131. money = money - 50000
  132. 'You pay, and the policeman warns you that you can not keep driving in your drunken state.'
  133. act 'In the salon':gt 'carF', 'salon'
  134. end
  135. end
  136. act 'Come on, this is within the law':
  137. cla
  138. prava = 0
  139. '"I can take your license for not driving sober."'
  140. act 'In the salon':gt 'carF', 'salon'
  141. end
  142. elseif alko >= 10 and rand(0, 100) >= 50:
  143. car['current_condition'] = car['current_condition']/2
  144. wrek = 1
  145. 'Driving drunk, you crash into a tree and wreck your car.'
  146. act 'In the salon':gt 'carF', 'salon'
  147. else
  148. if (cardrive = 22 and nroad >= 18) or cardrive = 14 or cardrive = 20 or cardrive = 21 or cardrive = 24 or cardrive = 26:
  149. car_town = 0
  150. act 'Go to local destination': gs 'carF', 'pav'
  151. act 'Go to the city':
  152. minut += 65
  153. *nl
  154. 'You drive for more than an hour on the highway before you get to the city.'
  155. gs 'carF', 'city'
  156. end
  157. act 'Go to another destination':
  158. minut += 30
  159. *nl
  160. 'You drive out of Pavlovsk.'
  161. gs 'carF', 'other'
  162. end
  163. elseif cardrive <= 11 or cardrive = 19 or cardrive = 25 or cardrive = 27:
  164. car_town = 1
  165. act 'Go to another city destination': gs 'carF', 'city'
  166. act 'Go to Pavlovsk':
  167. minut += 65
  168. *nl
  169. 'You drive for more than an hour on the highway before you get to the town of Pavlovsk.'
  170. gs 'carF', 'pav'
  171. end
  172. act 'Go to another destination':
  173. minut += 30
  174. *nl
  175. 'You drive out of the city.'
  176. gs 'carF', 'other'
  177. end
  178. else
  179. car_town = 2
  180. act 'Go to a city destination':
  181. minut += 30
  182. *nl
  183. 'You drive for half an hour on the highway before you get to the city.'
  184. gs 'carF', 'city'
  185. end
  186. act 'Go to a Pavlovsk destination':
  187. minut += 30
  188. *nl
  189. 'You drive for half an hour on the highway before you get to the town of Pavlovsk.'
  190. gs 'carF', 'pav'
  191. end
  192. act 'Go to another destination': gs 'carF', 'other'
  193. end
  194. end
  195. end
  196. end
  197. end
  198. if $ARGS[0] = 'other':
  199. cla
  200. if func('homes_properties', 'can_live_here', 'matryona_mansion') and cardrive ! 18:
  201. act 'Go to Matryona Mansion':
  202. cla
  203. if cardrive = 28:
  204. minut += 1
  205. cardrive = 18
  206. elseif car_town ! 1:
  207. minut += 60
  208. benz -= 1
  209. car['current_condition'] -= rand(1, 3)
  210. cardrive = 18
  211. else
  212. minut += 10
  213. benz -= 1
  214. car['current_condition'] -= rand(1, 3)
  215. cardrive = 18
  216. end
  217. 'You drive to your mansion.'
  218. dynamic $enddrive
  219. end
  220. end
  221. if cardrive ! 28:
  222. act 'Go to the city suburbs':
  223. cla
  224. if cardrive = 18:
  225. minut += 1
  226. cardrive = 28
  227. elseif car_town ! 1:
  228. minut += 60
  229. benz -= 1
  230. car['current_condition'] -= rand(1, 3)
  231. cardrive = 28
  232. else
  233. minut += 10
  234. benz -= 1
  235. car['current_condition'] -= rand(1, 3)
  236. cardrive = 28
  237. end
  238. 'You drive to St. Petersburg''s suburbs.'
  239. dynamic $enddrive
  240. end
  241. end
  242. if cardrive ! 12:
  243. act 'Go to the construction site':
  244. cla
  245. if car_town ! 1:
  246. minut += 55
  247. 'It takes nearly an hour to get to your destination.'
  248. else
  249. minut += 15
  250. '15 minutes later, you arrive at your destination.'
  251. end
  252. benz -= 1
  253. car['current_condition'] -= rand(2, 5)
  254. cardrive = 12
  255. dynamic $enddrive
  256. end
  257. end
  258. if cardrive ! 13:
  259. act 'Go to the Suburban Cooperative':
  260. cla
  261. if car_town ! 1:
  262. minut += 45
  263. 'It takes three quarters of an hour to get to your destination.'
  264. else
  265. minut += 25
  266. '25 minutes later, you arrive at your destination.'
  267. end
  268. benz -= 1
  269. car['current_condition'] -= rand(2, 5)
  270. cardrive = 13
  271. dynamic $enddrive
  272. end
  273. end
  274. if cardrive ! 23:
  275. act 'Go to the village of Gadukino':
  276. cla
  277. benz = benz - 1
  278. car['current_condition'] = car['current_condition'] - RAND(3,6)
  279. cardrive = 23
  280. if car_town ! 0:
  281. minut += 55
  282. 'You spend about an hour on the highway going to Gadukino.'
  283. else
  284. minut += 15
  285. '15 minutes later, you reach your destination.'
  286. end
  287. dynamic $enddrive
  288. end
  289. end
  290. if cardrive ! 29 and prostitute['gas_station'] = 1:
  291. act 'Go to the gas station on M11':
  292. cla
  293. benz -= 1
  294. car['current_condition'] -= rand(1,3)
  295. minut += rand(25, 50)
  296. if cardrive = 1 or cardrive = 2 or cardrive = 8 or cardrive = 11 or cardrive =4 or cardrive = 5 or cardrive = 10 or cardrive = 28 or cardrive = 18:
  297. minut += 10
  298. end
  299. cardrive = 29
  300. dynamic $enddrive
  301. end
  302. end
  303. act 'Drive around the local track (1:00)':
  304. cla
  305. minut += 60
  306. benz -= 4
  307. car['current_condition'] -= rand(2, 6)
  308. pcs_mood += 20
  309. 'You go to the track and have fun driving around before leaving.'
  310. act 'Finish':xgt 'carF', 'salon'
  311. end
  312. end
  313. if $ARGS[0] = 'pav':
  314. cla
  315. if cardrive ! 26:act 'Go to Pavlovsk''s Industrial Region':gs 'carF', 'nearby', 26
  316. if cardrive ! 20:act 'Go to Pavlovsk''s Residential Area':gs 'carF', 'nearby', 20
  317. if cardrive ! 24:act 'Go to Pavlovsk''s Commercial Region':gs 'carF', 'nearby', 24
  318. if cardrive ! 14:act 'Go to Old Town district of Pavlovsk':gs 'carF', 'nearby', 14
  319. if cardrive ! 21:act 'Go to the gas station':gs 'carF', 'nearby', 21
  320. end
  321. if $ARGS[0] = 'city':
  322. cla
  323. if func('homes_properties', 'is_property_of_status', 'owned', 'city_house') and cardrive ! 8: act 'Go to your house in the residential area':gs 'carF', 'nearby', 8
  324. if cardrive ! 3:act 'Go to St. Petersburg''s Industrial Region':gs 'carF', 'nearby', 3
  325. if cardrive ! 1:act 'Go to St. Petersburg''s residential area':gs 'carF', 'nearby', 1
  326. if cardrive ! 2:act 'Go to St. Petersburg city center':gs 'carF', 'nearby', 2
  327. if cardrive ! 19:act 'Go to the city train station':gs 'carF', 'nearby', 19
  328. if cardrive ! 4:act 'Go to the city lake':gs 'carF', 'nearby', 4
  329. if cardrive ! 5:act 'Go to the city park':gs 'carF', 'nearby', 5
  330. if cardrive ! 6:act 'Go to the gas station':gs 'carF', 'nearby', 6
  331. if cardrive ! 7 and func('autoservisF', 'is_open'):act 'Go to the auto repair shop':gs 'carF', 'nearby', 7
  332. if cardrive ! 9 and func('autotraidF', 'is_open'):act 'Go to the car dealership':gs 'carF', 'nearby', 9
  333. if cardrive ! 25:act 'Go to the island':gs 'carF', 'nearby', 25
  334. if cardrive ! 27:act 'Go to the red light district':gs 'carF', 'nearby', 27
  335. end
  336. if $ARGS[0] = 'nearby':
  337. cla
  338. minut += 5
  339. benz -= 1
  340. car['current_condition'] -= rand(1, 3)
  341. cardrive = ARGS[1]
  342. if cardrive = 8: minut += 5
  343. '5 minutes later, you arrive at your destination.'
  344. dynamic $enddrive
  345. end
  346. --- carF ---------------------------------