1
0

carF.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. # carF
  2. $enddrive = {
  3. if cardrive = 1:gt 'street'
  4. if cardrive = 2:gt 'down'
  5. if cardrive = 3:gt 'Nord'
  6. if cardrive = 4:gt 'lake', 'start'
  7. if cardrive = 5:gt 'park', 'start'
  8. if cardrive = 6:gt 'zaprF', 'start'
  9. if cardrive = 7:gt 'autoservisF', 'start'
  10. if cardrive = 9:gt 'autotraidF', 'start'
  11. if cardrive = 10:gt 'park', 'whore'
  12. if cardrive = 11:gt 'sauna'
  13. if cardrive = 12:gt 'obekt'
  14. if cardrive = 13:gt 'dachi'
  15. if cardrive = 14:gt 'liam'
  16. if cardrive = 18:gt 'youplace'
  17. if cardrive = 19:gt 'nordtrain', 'outside'
  18. if cardrive = 20:gt 'pavResidential'
  19. if cardrive = 21:gt 'zaprF','start'
  20. if cardrive = 22:gt 'road'
  21. if cardrive = 23:gt 'gadukino'
  22. if cardrive = 24:gt 'pavCommercial'
  23. if cardrive = 25:gt 'island'
  24. if cardrive = 26:gt 'pavIndustrial'
  25. }
  26. if $ARGS[0] = 'start':
  27. $menu_loc = 'carF'
  28. $menu_arg = 'start'
  29. menu_off = 0
  30. $metka = $ARGS[0]
  31. $loc = $CURLOC
  32. CLOSE ALL
  33. *clr & cla
  34. minut += 1
  35. gs 'stat'
  36. gs 'themes', 'indoors'
  37. '<center><b><<$car>></b></center>'
  38. '<center><img <<$set_imgh>> src="images/shared/accessories/car/car<<car>>.jpg"></center>'
  39. act 'Move away from the car':dynamic $enddrive
  40. if kanistra > 0:
  41. 'In the trunk there is <<kanistra>> canister/s of gasoline. Each canister contains 5 liters of gasoline.'
  42. if benz <= 35:
  43. act 'Pour gasoline into the tank':
  44. cla
  45. menu_off = 1
  46. benz += 5
  47. kanistra -= 1
  48. 'You emptied the canister of gasoline into the tank.'
  49. act 'Move away':gt 'carF', 'start'
  50. end
  51. end
  52. end
  53. act 'Get in the car':gt 'carF', 'salon'
  54. end
  55. if $ARGS[0] = 'salon':
  56. menu_off = 1
  57. $metka = $ARGS[0]
  58. $loc = $CURLOC
  59. *clr & cla
  60. minut += 1
  61. gs 'stat'
  62. '<center><b><<$car>></b></center>'
  63. '<center><img <<$set_imgh>> src="images/shared/accessories/car/salon<<car>>.jpg"></center>'
  64. 'Gasoline - <<benz>> liters, the fuel tank has a capacity of 40 liters.'
  65. if teh <= 0:teh = 0 & wrek = 1
  66. if teh <= 0 or wrek = 1:$teh = 'The car is in need of repairs and won''t start.'
  67. if teh >= tehcar * 75 / 100 and wrek = 0:$teh = 'The car is in excellent condition.'
  68. if teh < tehcar * 75 / 100 and teh >= tehcar * 50 / 100 and wrek = 0:$teh = 'While driving, you occasionally hear some troubling noises'
  69. if teh < tehcar * 50 / 100 and teh >= tehcar * 25 / 100 and wrek = 0:$teh = 'The car seems broken and barely drives.'
  70. if teh < tehcar * 25 / 100 and wrek = 0:$teh = 'How this car still runs is a mystery, even to its designers.'
  71. '<<$teh>>'
  72. if cardrive = 1:'Through the windshield, you see St. Petersburg''s residential area.'
  73. if cardrive = 2:'Through the windshield, you see St. Petersburg''s city center.'
  74. if cardrive = 3:'Through the windshield, you see St. Petersburg''s industrial region.'
  75. if cardrive = 4:'Through the windshield, you see the lake.'
  76. if cardrive = 5:'Through the windshield, you can see the park.'
  77. if cardrive = 6:'Through the windshield, you can see the gas station in the city industrial region.'
  78. if cardrive = 7:'Through the windshield, you can see the car service centre.'
  79. if cardrive = 9:'Through the windshield, you can see many of the cars for sale outside the showroom.'
  80. if cardrive = 10:'Through the windshield, you can see hookers outside the park.'
  81. if cardrive = 11:'Through the windshield, you can see the sauna.'
  82. if cardrive = 12:'Through the windshield, you see a construction site.'
  83. if cardrive = 13:'Through the windshield, you can see the suburban cooperative.'
  84. if cardrive = 14:'Through the windshield, you see the Old Town district of Pavlovsk.'
  85. if cardrive = 18:'Through the windshield, you can see your mansion.'
  86. if cardrive = 19:'Through the windshield, you see the city industrial region train station.'
  87. if cardrive = 20:'Through the windshield, you can see Pavlovsk''s residential area.'
  88. if cardrive = 21:'Through the windshield, you can see the gas station near Pavlovsk.'
  89. if cardrive = 22:'Through the windshield, you can see the highway.'
  90. if cardrive = 23:'Through the windshield, you see the huts of the village of Gadukino.'
  91. if cardrive = 24:'Through the windshield, you can see Pavlovsk''s commercial region.'
  92. if cardrive = 25:'You cross one of the bridges that leads to the island.'
  93. if cardrive = 26:'Through the windshield, you can see Pavlovsk''s industrial region.'
  94. if prava = 0:'You don''t have a driver''s license.'
  95. act 'Get out of the car':dynamic $enddrive
  96. if benz > 0 and wrek = 0 and prava > 0:
  97. if teh >= tehcar * 75 / 100 and wrek = 0:
  98. wrekrand = rand(0, 1000)
  99. if wrekrand = 1000:wrek = 1
  100. elseif teh < tehcar * 75 / 100 and teh >= tehcar * 50/100 and wrek = 0:
  101. wrekrand = rand(0, 100)
  102. if wrekrand = 100:wrek = 1
  103. elseif teh < tehcar * 50 / 100 and teh >= tehcar * 25 / 100 and wrek = 0:
  104. wrekrand = rand(0, 100)
  105. if wrekrand >= 80:wrek = 1
  106. elseif teh < tehcar * 25 / 100 and wrek = 0:
  107. wrekrand = rand(0, 100)
  108. if wrekrand >= 40:wrek = 1
  109. elseif wrek = 1:
  110. 'Something clatters loudly, and the engine stalls.'
  111. act 'Fuck':gt 'carF', 'salon'
  112. end
  113. if alko > 0:
  114. dpsrand = rand(0, 100)
  115. if dpsrand <= alko:
  116. '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.'
  117. 'The officer snorts, and writes something down. He hands you a slip of paper with the number 50,000 on it'
  118. '"Or I can write a report. But you will get a permanent record for driving drunk."'
  119. if money >= 50000:
  120. act 'Bribe him (50,000 <b>₽</b>)':
  121. cla
  122. money = money - 50000
  123. 'You pay and the policeman warns you that you can not keep driving in your drunken state.'
  124. act 'In the salon':gt 'carF', 'salon'
  125. end
  126. end
  127. act 'Come on, this is within the law':
  128. cla
  129. prava = 0
  130. '"I can take your license, for not driving sober."'
  131. act 'In the salon':gt 'carF', 'salon'
  132. end
  133. exit
  134. end
  135. elseif alko >= 10:
  136. avarand = rand(0, 100)
  137. if avarand >= 50:
  138. teh = teh/2
  139. wrek = 1
  140. 'Driving drunken, you crash into a tree and wreck your car.'
  141. act 'In the salon':gt 'carF', 'salon'
  142. exit
  143. end
  144. end
  145. if wrek = 0:
  146. if (cardrive = 22 and nroad >= 18) or cardrive = 14 or cardrive = 20 or cardrive = 21 or cardrive = 24 or cardrive = 26:
  147. car_town = 0
  148. act 'Go to local destination': gs 'carF', 'pav'
  149. act 'Go to the city':
  150. minut += 65
  151. msg 'You drive for more than an hour on the highway before you get to the city.'
  152. gs 'carF', 'city'
  153. end
  154. act 'Go to another destination':
  155. minut += 30
  156. msg 'You drive out of Pavlovsk.'
  157. gs 'carF', 'other'
  158. end
  159. elseif cardrive <= 11 or cardrive = 25:
  160. car_town = 1
  161. act 'Go to another city destination': gs 'carF', 'city'
  162. act 'Go to Pavlosvsk':
  163. minut += 65
  164. msg '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. msg 'You drive out of the city.'
  170. gs 'carF', 'other'
  171. end
  172. else
  173. car_town = 2
  174. act 'Go to a city destination':
  175. minut += 30
  176. msg 'You drive for half an hour on the highway before you get to the city.'
  177. gs 'carF', 'city'
  178. end
  179. act 'Go to a Pavlosvsk destination':
  180. minut += 30
  181. msg 'You drive for half an hour on the highway before you get to the town of Pavlovsk.'
  182. gs 'carF', 'pav'
  183. end
  184. act 'Go to another destination': gs 'carF', 'other'
  185. end
  186. end
  187. end
  188. end
  189. if $ARGS[0] = 'other':
  190. cla
  191. if home_owned[5] > 0 and cardrive ! 18:
  192. act 'Go to your mansion':
  193. cla
  194. if car_town ! 1:
  195. minut += 60
  196. benz -= 1
  197. teh -= rand(1, 3)
  198. cardrive = 18
  199. else
  200. minut += 10
  201. benz -= 1
  202. teh -= rand(1, 3)
  203. cardrive = 18
  204. end
  205. 'You drive to your mansion.'
  206. dynamic $enddrive
  207. end
  208. end
  209. if cardrive ! 12:
  210. act 'Go to the construction site':
  211. cla
  212. if car_town ! 1:
  213. minut += 55
  214. 'It takes nearly an hour to get to your destination.'
  215. else
  216. minut += 15
  217. '15 minutes later, you arrive at your destination.'
  218. end
  219. benz -= 1
  220. teh -= rand(2, 5)
  221. cardrive = 12
  222. dynamic $enddrive
  223. end
  224. end
  225. if cardrive ! 13:
  226. act 'Go to the Suburban Cooperative':
  227. cla
  228. if car_town ! 1:
  229. minut += 45
  230. 'It takes three quarters of an hour to get to your destination.'
  231. else
  232. minut += 25
  233. '25 minutes later, you arrive at your destination.'
  234. end
  235. benz -= 1
  236. teh -= rand(2, 5)
  237. cardrive = 13
  238. dynamic $enddrive
  239. end
  240. end
  241. if cardrive ! 23:
  242. act 'Go to the village of Gadukino':
  243. cla
  244. benz = benz - 1
  245. teh = teh - RAND(3,6)
  246. cardrive = 23
  247. if car_town ! 0:
  248. minut += 55
  249. 'You spend about an hour on the highway going to Gadukino.'
  250. else
  251. minut += 15
  252. '15 minutes later, you reach your destination.'
  253. end
  254. dynamic $enddrive
  255. end
  256. end
  257. act 'Drive around the local track (1:00)':
  258. cla
  259. minut += 60
  260. benz -= 4
  261. teh -= rand(2, 6)
  262. pcs_mood += 20
  263. wipo += 10
  264. 'You go to the track and have fun driving around before leaving.'
  265. act 'Finish':xgt 'carF', 'salon'
  266. end
  267. end
  268. if $ARGS[0] = 'pav':
  269. cla
  270. if cardrive ! 26:
  271. act 'Go to Pavlovsk''s Industrial Region':
  272. cla
  273. minut += 5
  274. benz -= 1
  275. teh -= rand(1, 3)
  276. cardrive = 26
  277. '5 minutes later, you reach your destination.'
  278. dynamic $enddrive
  279. end
  280. end
  281. if cardrive ! 20:
  282. act 'Go to Pavlovsk''s Residential Area':
  283. cla
  284. minut += 5
  285. benz -= 1
  286. teh -= rand(1, 3)
  287. cardrive = 20
  288. '5 minutes later, you reach your destination.'
  289. dynamic $enddrive
  290. end
  291. end
  292. if cardrive ! 24:
  293. act 'Go to Pavlovsk''s Commercial Region':
  294. cla
  295. minut += 5
  296. benz -= 1
  297. teh -= rand(1, 3)
  298. cardrive = 24
  299. '5 minutes later, you reach your destination.'
  300. dynamic $enddrive
  301. end
  302. end
  303. if cardrive ! 14:
  304. act 'Go to Old Town district of Pavlovsk':
  305. cla
  306. benz -= 1
  307. teh -= rand(2, 5)
  308. cardrive = 14
  309. minut += 5
  310. '5 minutes later, you reach Old Town district of Pavlovsk.'
  311. dynamic $enddrive
  312. end
  313. end
  314. if cardrive ! 21:
  315. act 'Go to the gas station':
  316. cla
  317. minut += 5
  318. benz -= 1
  319. teh -= rand(1, 3)
  320. cardrive = 21
  321. '5 minutes later, you reach your destination.'
  322. dynamic $enddrive
  323. end
  324. end
  325. end
  326. if $ARGS[0] = 'city':
  327. cla
  328. if cardrive ! 3:
  329. act 'Go to St. Petersburg''s Industrial Region':
  330. cla
  331. minut += 5
  332. benz -= 1
  333. teh -= rand(1, 3)
  334. cardrive = 3
  335. 'You drive for more than an hour on the highway before you get to the city.'
  336. dynamic $enddrive
  337. end
  338. end
  339. if cardrive ! 1:
  340. act 'Go to St. Petersburg''s residential area':
  341. cla
  342. minut += 5
  343. benz -= 1
  344. teh -= rand(1, 3)
  345. cardrive = 1
  346. 'You drive for more than an hour on the highway before you get to St. Petersburg''s residential area.'
  347. dynamic $enddrive
  348. end
  349. end
  350. if cardrive ! 2:
  351. act 'Go to St. Petersburg city center':
  352. cla
  353. minut += 5
  354. benz -= 1
  355. teh -= rand(1, 3)
  356. cardrive = 2
  357. 'You drive for more than an hour on the highway before you get to St. Petersburg city center.'
  358. dynamic $enddrive
  359. end
  360. end
  361. if cardrive ! 19 and cardrive < 20:
  362. act 'Go to the city train station':
  363. cla
  364. minut += 5
  365. benz -= 1
  366. teh -= rand(1, 3)
  367. cardrive = 19
  368. '5 minutes later, you arrive at your destination.'
  369. dynamic $enddrive
  370. end
  371. end
  372. if cardrive ! 4 and cardrive < 20:
  373. act 'Go to the city lake':
  374. cla
  375. minut += 5
  376. benz -= 1
  377. teh -= rand(1, 3)
  378. cardrive = 4
  379. '5 minutes later, you arrive at your destination.'
  380. dynamic $enddrive
  381. end
  382. end
  383. if cardrive ! 5 and cardrive < 20:
  384. act 'Go to the city park':
  385. cla
  386. minut += 5
  387. benz -= 1
  388. teh -= rand(1, 3)
  389. cardrive = 5
  390. '5 minutes later, you arrive at your destination.'
  391. dynamic $enddrive
  392. end
  393. end
  394. if cardrive ! 6 and cardrive < 20:
  395. act 'Go to the gas station':
  396. cla
  397. minut += 5
  398. benz -= 1
  399. teh -= rand(1, 3)
  400. cardrive = 6
  401. '5 minutes later, you arrive at your destination.'
  402. dynamic $enddrive
  403. end
  404. end
  405. if cardrive ! 7 and cardrive < 20:
  406. act 'Go to the auto repair shop':
  407. cla
  408. minut += 5
  409. benz -= 1
  410. teh -= rand(1, 3)
  411. cardrive = 7
  412. '5 minutes later, you arrive at your destination.'
  413. dynamic $enddrive
  414. end
  415. end
  416. if cardrive ! 8 and cardrive < 20:
  417. act 'Go to the car dealership':
  418. cla
  419. minut += 5
  420. benz -= 1
  421. teh -= rand(1, 3)
  422. cardrive = 8
  423. '5 minutes later, you arrive at your destination.'
  424. dynamic $enddrive
  425. end
  426. end
  427. if cardrive ! 25 and cardrive < 20:
  428. act 'Go to the island':
  429. cla
  430. minut += 5
  431. benz -= 1
  432. teh -= rand(1, 3)
  433. cardrive = 25
  434. '5 minutes later, you arrive at your destination.'
  435. dynamic $enddrive
  436. end
  437. end
  438. end
  439. --- carF ---------------------------------