carF.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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: litltown = 0 & gt 'zaprF', '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 'liam'
  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: litltown = 1 & gt 'zaprF','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 teh <= 0:teh = 0 & wrek = 1
  71. if teh <= 0 or wrek = 1:$teh = 'The car is in need of repairs and won''t start.'
  72. if teh >= tehcar * 75 / 100 and wrek = 0:$teh = 'The car is in excellent condition.'
  73. if teh < tehcar * 75 / 100 and teh >= tehcar * 50 / 100 and wrek = 0:$teh = 'While driving, you occasionally hear some troubling noises.'
  74. if teh < tehcar * 50 / 100 and teh >= tehcar * 25 / 100 and wrek = 0:$teh = 'The car seems broken and barely drives.'
  75. if teh < tehcar * 25 / 100 and wrek = 0:$teh = 'How this car still runs is a mystery, even to its designers.'
  76. '<<$teh>>'
  77. if cardrive = 1:'Through the windshield, you see St. Petersburg''s residential area.'
  78. if cardrive = 2:'Through the windshield, you see St. Petersburg''s city center.'
  79. if cardrive = 3:'Through the windshield, you see St. Petersburg''s industrial region.'
  80. if cardrive = 4:'Through the windshield, you see the lake.'
  81. if cardrive = 5:'Through the windshield, you can see the park.'
  82. if cardrive = 6:'Through the windshield, you can see the gas station in the city industrial region.'
  83. if cardrive = 7:'Through the windshield, you can see the car service centre.'
  84. if cardrive = 8:'Through the windshield, you see your house in St. Petersburg''s residential area.'
  85. if cardrive = 9:'Through the windshield, you can see many of the cars for sale outside the showroom.'
  86. if cardrive = 10:'Through the windshield, you can see hookers outside the park.'
  87. if cardrive = 11:'Through the windshield, you can see the sauna.'
  88. if cardrive = 12:'Through the windshield, you see a construction site.'
  89. if cardrive = 13:'Through the windshield, you can see the suburban cooperative.'
  90. if cardrive = 14:'Through the windshield, you see the Old Town district of Pavlovsk.'
  91. if cardrive = 18:'Through the windshield, you can see your mansion.'
  92. if cardrive = 19:'Through the windshield, you see the city industrial region train station.'
  93. if cardrive = 20:'Through the windshield, you can see Pavlovsk''s residential area.'
  94. if cardrive = 21:'Through the windshield, you can see the gas station near Pavlovsk.'
  95. if cardrive = 22:'Through the windshield, you can see the highway.'
  96. if cardrive = 23:'Through the windshield, you see the huts of the village of Gadukino.'
  97. if cardrive = 24:'Through the windshield, you can see Pavlovsk''s commercial region.'
  98. if cardrive = 25:'You cross one of the bridges that leads to the island.'
  99. if cardrive = 26:'Through the windshield, you can see Pavlovsk''s industrial region.'
  100. if cardrive = 27:'Through the windshield, you see St. Petersburg''s red light district.'
  101. if cardrive = 28:'Through the windshield, you see St. Petersburg''s suburbs.'
  102. if cardrive = 29:'Through the windshield, you can see the Gazpromneft gas station on the highway.'
  103. if prava = 0:'You don''t have a driver''s license.'
  104. act 'Get out of the car':dynamic $enddrive
  105. if benz > 0 and wrek = 0 and prava > 0:
  106. if teh >= tehcar * 75 / 100:
  107. if rand(0, 1000) = 1000:wrek = 1
  108. elseif teh >= tehcar * 50 / 100:
  109. if rand(0, 100) = 100:wrek = 1
  110. elseif teh >= tehcar * 25 / 100:
  111. if rand(0, 100) >= 80:wrek = 1
  112. else
  113. if rand(0, 100) >= 40:wrek = 1
  114. end
  115. if wrek = 1:
  116. 'Something clatters loudly, and the engine stalls.'
  117. act 'Fuck':gt 'carF', 'salon'
  118. else
  119. if alko > 0 and rand(0, 100) <= alko:
  120. '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.'
  121. 'The officer snorts and writes something down. He hands you a slip of paper with the number 50,000 on it'
  122. '"Or I can write a report. But you will get a permanent record for driving drunk."'
  123. if money >= 50000:
  124. act 'Bribe him (50,000 <b>₽</b>)':
  125. cla
  126. money = money - 50000
  127. 'You pay, and the policeman warns you that you can not keep driving in your drunken state.'
  128. act 'In the salon':gt 'carF', 'salon'
  129. end
  130. end
  131. act 'Come on, this is within the law':
  132. cla
  133. prava = 0
  134. '"I can take your license for not driving sober."'
  135. act 'In the salon':gt 'carF', 'salon'
  136. end
  137. elseif alko >= 10 and rand(0, 100) >= 50:
  138. teh = teh/2
  139. wrek = 1
  140. 'Driving drunk, you crash into a tree and wreck your car.'
  141. act 'In the salon':gt 'carF', 'salon'
  142. else
  143. if (cardrive = 22 and nroad >= 18) or cardrive = 14 or cardrive = 20 or cardrive = 21 or cardrive = 24 or cardrive = 26:
  144. car_town = 0
  145. act 'Go to local destination': gs 'carF', 'pav'
  146. act 'Go to the city':
  147. minut += 65
  148. *nl
  149. 'You drive for more than an hour on the highway before you get to the city.'
  150. gs 'carF', 'city'
  151. end
  152. act 'Go to another destination':
  153. minut += 30
  154. *nl
  155. 'You drive out of Pavlovsk.'
  156. gs 'carF', 'other'
  157. end
  158. elseif cardrive <= 11 or cardrive = 19 or cardrive = 25 or cardrive = 27:
  159. car_town = 1
  160. act 'Go to another city destination': gs 'carF', 'city'
  161. act 'Go to Pavlovsk':
  162. minut += 65
  163. *nl
  164. 'You drive for more than an hour on the highway before you get to the town of Pavlovsk.'
  165. gs 'carF', 'pav'
  166. end
  167. act 'Go to another destination':
  168. minut += 30
  169. *nl
  170. 'You drive out of the city.'
  171. gs 'carF', 'other'
  172. end
  173. else
  174. car_town = 2
  175. act 'Go to a city destination':
  176. minut += 30
  177. *nl
  178. 'You drive for half an hour on the highway before you get to the city.'
  179. gs 'carF', 'city'
  180. end
  181. act 'Go to a Pavlovsk destination':
  182. minut += 30
  183. *nl
  184. 'You drive for half an hour on the highway before you get to the town of Pavlovsk.'
  185. gs 'carF', 'pav'
  186. end
  187. act 'Go to another destination': gs 'carF', 'other'
  188. end
  189. end
  190. end
  191. end
  192. end
  193. if $ARGS[0] = 'other':
  194. cla
  195. if owned_property['matryona_mansion'] > 0 and cardrive ! 18:
  196. act 'Go to Matryona Mansion':
  197. cla
  198. if cardrive = 28:
  199. minut += 1
  200. cardrive = 18
  201. elseif car_town ! 1:
  202. minut += 60
  203. benz -= 1
  204. teh -= rand(1, 3)
  205. cardrive = 18
  206. else
  207. minut += 10
  208. benz -= 1
  209. teh -= rand(1, 3)
  210. cardrive = 18
  211. end
  212. 'You drive to your mansion.'
  213. dynamic $enddrive
  214. end
  215. end
  216. if cardrive ! 28:
  217. act 'Go to the city suburbs':
  218. cla
  219. if cardrive = 18:
  220. minut += 1
  221. cardrive = 28
  222. elseif car_town ! 1:
  223. minut += 60
  224. benz -= 1
  225. teh -= rand(1, 3)
  226. cardrive = 28
  227. else
  228. minut += 10
  229. benz -= 1
  230. teh -= rand(1, 3)
  231. cardrive = 28
  232. end
  233. 'You drive to St. Petersburg''s suburbs.'
  234. dynamic $enddrive
  235. end
  236. end
  237. if cardrive ! 12:
  238. act 'Go to the construction site':
  239. cla
  240. if car_town ! 1:
  241. minut += 55
  242. 'It takes nearly an hour to get to your destination.'
  243. else
  244. minut += 15
  245. '15 minutes later, you arrive at your destination.'
  246. end
  247. benz -= 1
  248. teh -= rand(2, 5)
  249. cardrive = 12
  250. dynamic $enddrive
  251. end
  252. end
  253. if cardrive ! 13:
  254. act 'Go to the Suburban Cooperative':
  255. cla
  256. if car_town ! 1:
  257. minut += 45
  258. 'It takes three quarters of an hour to get to your destination.'
  259. else
  260. minut += 25
  261. '25 minutes later, you arrive at your destination.'
  262. end
  263. benz -= 1
  264. teh -= rand(2, 5)
  265. cardrive = 13
  266. dynamic $enddrive
  267. end
  268. end
  269. if cardrive ! 23:
  270. act 'Go to the village of Gadukino':
  271. cla
  272. benz = benz - 1
  273. teh = teh - RAND(3,6)
  274. cardrive = 23
  275. if car_town ! 0:
  276. minut += 55
  277. 'You spend about an hour on the highway going to Gadukino.'
  278. else
  279. minut += 15
  280. '15 minutes later, you reach your destination.'
  281. end
  282. dynamic $enddrive
  283. end
  284. end
  285. if cardrive ! 29 and prostitute['gas_station'] = 1:
  286. act 'Go to the gas station on M11':
  287. cla
  288. benz -= 1
  289. teh -= rand(1,3)
  290. minut += rand(25-50)
  291. 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:
  292. minut += 10
  293. end
  294. cardrive = 29
  295. dynamic $enddrive
  296. end
  297. end
  298. act 'Drive around the local track (1:00)':
  299. cla
  300. minut += 60
  301. benz -= 4
  302. teh -= rand(2, 6)
  303. pcs_mood += 20
  304. 'You go to the track and have fun driving around before leaving.'
  305. act 'Finish':xgt 'carF', 'salon'
  306. end
  307. end
  308. if $ARGS[0] = 'pav':
  309. cla
  310. if cardrive ! 26:act 'Go to Pavlovsk''s Industrial Region':gs 'carF', 'nearby', 26
  311. if cardrive ! 20:act 'Go to Pavlovsk''s Residential Area':gs 'carF', 'nearby', 20
  312. if cardrive ! 24:act 'Go to Pavlovsk''s Commercial Region':gs 'carF', 'nearby', 24
  313. if cardrive ! 14:act 'Go to Old Town district of Pavlovsk':gs 'carF', 'nearby', 14
  314. if cardrive ! 21:act 'Go to the gas station':gs 'carF', 'nearby', 21
  315. end
  316. if $ARGS[0] = 'city':
  317. cla
  318. if owned_property['city_house'] = 2 and cardrive ! 8: act 'Go home to St. Petersburg''s residential area':gs 'carF', 'nearby', 8
  319. if cardrive ! 3:act 'Go to St. Petersburg''s Industrial Region':gs 'carF', 'nearby', 3
  320. if cardrive ! 1:act 'Go to St. Petersburg''s residential area':gs 'carF', 'nearby', 1
  321. if cardrive ! 2:act 'Go to St. Petersburg city center':gs 'carF', 'nearby', 2
  322. if cardrive ! 19:act 'Go to the city train station':gs 'carF', 'nearby', 19
  323. if cardrive ! 4:act 'Go to the city lake':gs 'carF', 'nearby', 4
  324. if cardrive ! 5:act 'Go to the city park':gs 'carF', 'nearby', 5
  325. if cardrive ! 6:act 'Go to the gas station':gs 'carF', 'nearby', 6
  326. if cardrive ! 7 and func('autoservisF', 'is_open'):act 'Go to the auto repair shop':gs 'carF', 'nearby', 7
  327. if cardrive ! 9 and func('autotraidF', 'is_open'):act 'Go to the car dealership':gs 'carF', 'nearby', 9
  328. if cardrive ! 25:act 'Go to the island':gs 'carF', 'nearby', 25
  329. if cardrive ! 27:act 'Go to the red light district':gs 'carF', 'nearby', 27
  330. end
  331. if $ARGS[0] = 'nearby':
  332. cla
  333. minut += 5
  334. benz -= 1
  335. teh -= rand(1, 3)
  336. cardrive = ARGS[1]
  337. if cardrive = 8: minut += 5
  338. '5 minutes later, you arrive at your destination.'
  339. dynamic $enddrive
  340. end
  341. --- carF ---------------------------------