carF.qsrc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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 (Pushkin).'
  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 = 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 ! 14:
  242. act 'Go to Old Town (Pushkin)':
  243. cla
  244. if car_town ! 0:
  245. minut += 60
  246. 'It takes about an hour to get to Old Town (Pushkin).'
  247. else
  248. minut += 5
  249. '5 minutes later, you reach Old Town (Pushkin).'
  250. end
  251. benz -= 1
  252. teh -= rand(2, 5)
  253. cardrive = 14
  254. dynamic $enddrive
  255. end
  256. end
  257. if cardrive ! 23:
  258. act 'Go to the village of Gadukino':
  259. cla
  260. benz = benz - 1
  261. teh = teh - RAND(3,6)
  262. cardrive = 23
  263. if car_town ! 0:
  264. minut += 55
  265. 'You spend about an hour on the highway going to Gadukino.'
  266. else
  267. minut += 15
  268. '15 minutes later, you reach your destination.'
  269. end
  270. dynamic $enddrive
  271. end
  272. end
  273. act 'Drive around the local track (1:00)':
  274. cla
  275. minut += 60
  276. benz -= 4
  277. teh -= rand(2, 6)
  278. pcs_mood += 20
  279. wipo += 10
  280. 'You go to the track and have fun driving around before leaving.'
  281. act 'Finish':xgt 'carF', 'salon'
  282. end
  283. end
  284. if $ARGS[0] = 'pav':
  285. cla
  286. if cardrive ! 26:
  287. act 'Go to Pavlovsk''s Industrial Region':
  288. cla
  289. minut += 5
  290. benz -= 1
  291. teh -= rand(1, 3)
  292. cardrive = 26
  293. '5 minutes later, you reach your destination.'
  294. dynamic $enddrive
  295. end
  296. end
  297. if cardrive ! 20:
  298. act 'Go to Pavlovsk''s Residential Area':
  299. cla
  300. minut += 5
  301. benz -= 1
  302. teh -= rand(1, 3)
  303. cardrive = 20
  304. '5 minutes later, you reach your destination.'
  305. dynamic $enddrive
  306. end
  307. end
  308. if cardrive ! 24:
  309. act 'Go to Pavlovsk''s Commercial Region':
  310. cla
  311. minut += 5
  312. benz -= 1
  313. teh -= rand(1, 3)
  314. cardrive = 24
  315. '5 minutes later, you reach your destination.'
  316. dynamic $enddrive
  317. end
  318. end
  319. if cardrive ! 21:
  320. act 'Go to the gas station':
  321. cla
  322. minut += 5
  323. benz -= 1
  324. teh -= rand(1, 3)
  325. cardrive = 21
  326. '5 minutes later, you reach your destination.'
  327. dynamic $enddrive
  328. end
  329. end
  330. end
  331. if $ARGS[0] = 'city':
  332. cla
  333. if cardrive ! 3:
  334. act 'Go to St. Petersburg''s Industrial Region':
  335. cla
  336. minut += 5
  337. benz -= 1
  338. teh -= rand(1, 3)
  339. cardrive = 3
  340. 'You drive for more than an hour on the highway before you get to the city.'
  341. dynamic $enddrive
  342. end
  343. end
  344. if cardrive ! 1:
  345. act 'Go to St. Petersburg''s residential area':
  346. cla
  347. minut += 5
  348. benz -= 1
  349. teh -= rand(1, 3)
  350. cardrive = 1
  351. 'You drive for more than an hour on the highway before you get to St. Petersburg''s residential area.'
  352. dynamic $enddrive
  353. end
  354. end
  355. if cardrive ! 2:
  356. act 'Go to St. Petersburg city center':
  357. cla
  358. minut += 5
  359. benz -= 1
  360. teh -= rand(1, 3)
  361. cardrive = 2
  362. 'You drive for more than an hour on the highway before you get to St. Petersburg city center.'
  363. dynamic $enddrive
  364. end
  365. end
  366. if cardrive ! 19 and cardrive < 20:
  367. act 'Go to the city train station':
  368. cla
  369. minut += 5
  370. benz -= 1
  371. teh -= rand(1, 3)
  372. cardrive = 19
  373. '5 minutes later, you arrive at your destination.'
  374. dynamic $enddrive
  375. end
  376. end
  377. if cardrive ! 4 and cardrive < 20:
  378. act 'Go to the city lake':
  379. cla
  380. minut += 5
  381. benz -= 1
  382. teh -= rand(1, 3)
  383. cardrive = 4
  384. '5 minutes later, you arrive at your destination.'
  385. dynamic $enddrive
  386. end
  387. end
  388. if cardrive ! 5 and cardrive < 20:
  389. act 'Go to the city park':
  390. cla
  391. minut += 5
  392. benz -= 1
  393. teh -= rand(1, 3)
  394. cardrive = 5
  395. '5 minutes later, you arrive at your destination.'
  396. dynamic $enddrive
  397. end
  398. end
  399. if cardrive ! 6 and cardrive < 20:
  400. act 'Go to the gas station':
  401. cla
  402. minut += 5
  403. benz -= 1
  404. teh -= rand(1, 3)
  405. cardrive = 6
  406. '5 minutes later, you arrive at your destination.'
  407. dynamic $enddrive
  408. end
  409. end
  410. if cardrive ! 7 and cardrive < 20:
  411. act 'Go to the auto repair shop':
  412. cla
  413. minut += 5
  414. benz -= 1
  415. teh -= rand(1, 3)
  416. cardrive = 7
  417. '5 minutes later, you arrive at your destination.'
  418. dynamic $enddrive
  419. end
  420. end
  421. if cardrive ! 8 and cardrive < 20:
  422. act 'Go to the car dealership':
  423. cla
  424. minut += 5
  425. benz -= 1
  426. teh -= rand(1, 3)
  427. cardrive = 8
  428. '5 minutes later, you arrive at your destination.'
  429. dynamic $enddrive
  430. end
  431. end
  432. if cardrive ! 25 and cardrive < 20:
  433. act 'Go to the island':
  434. cla
  435. minut += 5
  436. benz -= 1
  437. teh -= rand(1, 3)
  438. cardrive = 25
  439. '5 minutes later, you arrive at your destination.'
  440. dynamic $enddrive
  441. end
  442. end
  443. end
  444. --- carF ---------------------------------