Grinok 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. # Grinok
  2. !{change log
  3. March 31, 2016
  4. Added rice wine quest
  5. April 20, 2016
  6. Fixed Rice wine event
  7. }
  8. $location_type = 'public_outdoors'
  9. if $ARGS[0] = '':
  10. $metka = $ARGS[0]
  11. $loc = $CURLOC
  12. CLOSE ALL
  13. if sound = 0:
  14. if month >=11 and month <= 12 or month >=1 and month <=3:
  15. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/zima.mp3',30
  16. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  17. else
  18. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/street_leto.mp3',30
  19. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  20. end
  21. end
  22. clr
  23. gs 'stat'
  24. '<center><h4>Market</h4></center>'
  25. '<center><img src="images/locations/pavlovsk/market/grinok.jpg"></center>'
  26. 'This small market is location near the station.'
  27. if arturQW = 1 and (week = 6 or week = 7) and hour < 12:
  28. act 'Wait for Arthur to arrive':hour = 12 & gt 'grinok'
  29. end
  30. if hour >= 8 and hour <= 18:
  31. 'In the market the sellers of goods are beckoning shoppers.'
  32. if pav_slut >= 50 and rand(0,9) = 0:
  33. 'An Armenian man comes up to you and in broken Russian says, "You girl who like men, no? Come meet real men have good time."'
  34. act 'Go with him':gt 'gevent', '3'
  35. act 'Reject him':
  36. 'You pretend not to understand what he is saying.'
  37. act 'Return':gt 'Grinok'
  38. end
  39. exit
  40. end
  41. act 'Wander through the market': gt 'Grinok','events'
  42. !expand market events from 1.2.4
  43. if pornmarkonce = 1:
  44. act 'Go to the stall selling porn':gt 'Gpornmark'
  45. end
  46. if arturKnow = 1 and arturQW = 0:
  47. act 'Look for Arthur':gt 'arturRinok', 'start'
  48. elseif arturQW = 1 and (week = 6 or week = 7):
  49. if hour = 12 or hour = 13:
  50. act 'Look for Arthur':gt 'arturRinok', 'work_1'
  51. end
  52. elseif arturQW = 2:
  53. if hour = 16 and minut <= 30:
  54. act 'Look for Arthur':gt 'arturRinok', 'work_2'
  55. elseif hour < 16:
  56. act 'Wait for Arthur to arrive':hour = 16 & minut = 0 & gt 'Grinok'
  57. end
  58. end
  59. act 'Go to the book stall':
  60. cls
  61. minut += 15
  62. gs 'stat'
  63. 'On the shelves are very entertaining fantasy books, which costs only 150 <b>₽</b> each and there are also women''s romance paperback novels for 300 <b>₽</b> each.'
  64. if money >= 150:
  65. act 'Buy a fantasy book (150 <b>₽</b>)':
  66. cls
  67. minut += 15
  68. money -= 150
  69. f_book += 1
  70. gs 'stat'
  71. 'You bought a fantasy book for 150 <b>₽</b>.'
  72. act 'Leave':gt 'Grinok'
  73. end
  74. end
  75. if money >= 300:
  76. act 'Buy a romance novel (300 <b>₽</b>)':
  77. cls
  78. minut += 15
  79. money -= 300
  80. w_book += 1
  81. gs 'stat'
  82. 'You bought a romance novel for 300 <b>₽</b>.'
  83. act 'Leave':gt 'Grinok'
  84. end
  85. end
  86. act 'Leave':gt $curloc
  87. end
  88. if gobelen > 0 and gobQW = 0:
  89. act'Sell ​​tapestry':
  90. cls
  91. gobQW = 1
  92. minut += 15
  93. gs'stat'
  94. 'You stand quietly by the entrance to the market, waiting for customers and displaying your tapestries. Shortly buyers start to gather, but a large, muscular man approaches you and says, "It is illegal to trade in the market without a trader''s licence, but I may be interesting in buying your tapestries, 500 <b>₽</b> apiece. Come and see me at my stall."'
  95. 'Not wanting to get into trouble, you pack your stuff away. The man was already gone, but you saw which direction he went and he should be easy to find.'
  96. act 'Leave':gt 'Grinok'
  97. end
  98. end
  99. if gobelen > 0 and gobQW >= 1:
  100. act'Sell ​​tapestry':
  101. cls
  102. minut += 15
  103. gs'stat'
  104. 'You go to the man who offered to buy your tapestries for 500 <b>₽</b>. You find him by his stall, smiling.'
  105. if gobQW = 2:
  106. 'Roman welcomes you. He is interested and businesslike as he asks what you have for sale.'
  107. end
  108. if gobQW = 1:
  109. gobQW = 2
  110. minute + 5
  111. 'The man greets you and introduces himself as Roman, you tell him that your name is <<$pcs_nickname>>. After a brief chat Roman says that he is interested in seeing what you have for sale.'
  112. end
  113. act'Show your tapestry':
  114. cls
  115. gobelen -= 1
  116. money += 500
  117. gs'stat'
  118. 'You show your tapestry to Roman and he gives you five hundred for it. You take the money and give him the tapestry.'
  119. act 'Leave':gt 'Grinok'
  120. end
  121. if gobelen > 1:
  122. act'Sell all of your tapestries':
  123. cls
  124. kolgob = gobelen
  125. gobelen = 0
  126. moneyGob = kolgob*500
  127. money += moneyGob
  128. gs'stat'
  129. 'You show Roman your tapestries and he gives you <<moneyGob>> <b>₽</b> for them. You take the money and give him the tapestries.'
  130. act 'Leave':gt 'Grinok'
  131. end
  132. end
  133. act 'Leave':gt 'Grinok'
  134. end
  135. end
  136. if ShowerIvan = 5 and porndeal = 0 and rand(1,100) <= 10 and lookwine ! daystart:
  137. cls
  138. cla
  139. gs 'stat'
  140. minut += 20
  141. lookwine = daystart
  142. '<center><img src="images/locations/pavlovsk/market/chinese_stall01.jpg"></center>'
  143. 'You were looking through the market when you came upon a stall selling Chinese foods. On a shelf behind the old woman minding the stall there are a number of bottles.'
  144. act 'Ask about huangjiu':
  145. cla
  146. 'You asked the old woman if she has any rice wine to sell. She smiles at you and points to a basket filled with rice.'
  147. '"Onry 2 kopec, hundred glam." she said in badly accented Russian, "You buy?"'
  148. '"No," you replied, "I need rice wine, rice wine."'
  149. 'She looked at you in confusion for a moment then suddenly brightened, "Ah!" she exclaimed, "Come, come!"'
  150. 'The old woman hurried to the other side of the stall and you followed her to where a number of smoked piglets hung in a row.'
  151. '"Here," the old woman crowed handing you one of r the pigs, "Nice swine, vely nice swine."'
  152. '"No, not nice swine," you cried in dispair, "Rice. Wine."'
  153. '"Yes, yes," the woman countered, "Nice swine, only 5 lubles."'
  154. 'Just as you were about to give up, a young Chinese boy about your brother''s age arrived.'
  155. '"I am sorry, my grandmother does not speak much Russian." he said as he stepped up beside the old woman who started to speak rapidly to him in what you assumed was Chinese.'
  156. '"My grandmother asks why you don''t like the piglets." he translated as the old woman stopped speaking.'
  157. '"I don''t want a pig," you replied in relief as his Russian is quite good, "I am looking for rice wine, wang-goo."'
  158. '"Ah, huangjiu!" he said in understanding then spoke to his grandmother in Chinese.'
  159. 'The old woman glared at you then hung the smoked pig back on its hook. She shuffled over to the shelf with the bottles and peered short-sightedly at the labels. She finally picked up one of them and brought it over to you.'
  160. '"Why you not say wanted lice wine." she asked in aggrieved tones, "2000 lubles."'
  161. if money >= 2000:
  162. act 'Buy the wine':
  163. cla
  164. money -= 2000
  165. ricewine = 1
  166. 'You hand the woman the money and she gives you the wine.'
  167. act 'Leave': gt $curloc
  168. end
  169. else
  170. 'You are astonished by the price and realize that you cannot afford the wine. You apologize and turn away.'
  171. act 'Leave the market': gt $curloc
  172. act 'Continue browsing the market':
  173. cls
  174. cla
  175. gs 'stat'
  176. minut += 15
  177. '<center><img src="images/locations/pavlovsk/market/market_boy01.jpg"></center>'
  178. 'You continued to wander through the market for another 15 minutes when the boy from the Chinese stall came up to you.'
  179. '"Hey, you really want that rice wine?" he asked after checking to make sure no one was watching.'
  180. '"Yes," you answered him, "But it costs too much. I can''t afford it."'
  181. '"I''ll make a deal with you." he said, "Go to the porn dealer and buy me a porn magazine and I''ll get you the wine."'
  182. if pornmarkonce = 0: pornmarkonce = 1 & '"Where is the porn dealer?" you asked and he gives you directions.'
  183. act 'Agree': porndeal = 1 & gt 'Gpornmark'
  184. act 'Refuse':
  185. 'You declined his offer and he shrugged and walked away.'
  186. act 'Leave': gt $curloc
  187. end
  188. end
  189. end
  190. end
  191. elseif ShowerIvan = 5 and lookwine ! daystart:
  192. cla
  193. cls
  194. gs 'stat'
  195. lookwine = daystart
  196. '<center><img src="images/locations/pavlovsk/market/grinok.jpg"></center>'
  197. 'You look around the market, but the Chinese vendors don''t seem to be here today.'
  198. act 'Leave': gt $curloc
  199. end
  200. if porndeal = 1 and porndealday ! daystart:
  201. cls
  202. cla
  203. gs 'stat'
  204. porndealday = daystart
  205. lookboy = 0
  206. '<center><img src="images/locations/pavlovsk/market/market_boy01.jpg"></center>'
  207. 'The boy from the Chinese stall comes up to you as you entered the market.'
  208. '"Do you have it?" he asked eagerly.'
  209. if haveporn = 1:
  210. porndeal = 2 & ! to close the ricewine event
  211. ricewine = 1
  212. '"Do you have the wine?" you countered.'
  213. 'He pulls the bottle out of his backpack and you trade items.'
  214. act 'Leave': gt $curloc
  215. else
  216. 'You told him you didn''t have his magazine yet but you were working on it.'
  217. act 'Leave': gt $curloc
  218. end
  219. end
  220. if porndeal = 1 and porndealday = daystart and lookboy = 0:
  221. cls
  222. cla
  223. gs 'stat'
  224. lookboy = 1
  225. '<center><img src="images/locations/pavlovsk/market/chinese_stall01.jpg"></center>'
  226. 'You look around the market for the boy from the Chinese stall, but you can''t find him. You decide to look for him another day.'
  227. act 'Leave': gt $curloc
  228. end
  229. else
  230. 'There is no one in the market.'
  231. end
  232. act 'Go back to the station':minut += 3 & gt 'vokzalG'
  233. end
  234. if $ARGS[0] = 'events':
  235. cls
  236. cla
  237. '<center><h4>Market</h4></center>'
  238. minut += 10
  239. gs 'stat'
  240. !modify from 1.2.4(force 50%) and old one, set it 30~80% for events, with pcs_intel /2 by illume
  241. if (30 + pcs_intel/2) > RAND(0,100):
  242. rinevrand = rand(1,22)
  243. else
  244. ! no events
  245. rinevrand = 0
  246. end
  247. if rinevrand <= 1:
  248. $grinok_text[0]='you notice a beggar.'
  249. $grinok_text[1]='a beggar asks you for some change.'
  250. $grinok_text[2]='you see a beggar.'
  251. $grinok_text[3]='you pass a stall is selling children''s clothes.'
  252. $grinok_text[4]='you see a woman looking for underwear.'
  253. $grinok_text[5]='you notice a half-naked girl trying on clothes.'
  254. $grinok_text[6]='you look away as a woman tries on a bra'
  255. $grinok_text[7]='you don''t see anything unusual, just the usual vegetables and tasteless clothes.'
  256. $grinok_text[8]='you just see old women in dressing gowns and slippers. Stupid crappy market.'
  257. $grinok_text[9]='you don''t find anything interesting'
  258. $grinok_text[10]='you just see cheap Chinese goods and nothing more.'
  259. $grinok_text[11]='you see all the usual stuff. People with bags scurrying back and forth, children begging for toys from their parents and vociferous traders.'
  260. $grinok_text[12]='you have to be careful as its so busy. The hustle and bustle makes it hard to find anything worthwhile.'
  261. !will killvar after events
  262. end
  263. ! def action
  264. act 'Wander further': gt 'Grinok','events'
  265. act 'Stop wandering': gt $curloc
  266. if rinevrand = 0:
  267. '<center><img src="images/locations/pavlovsk/market/brodit'+rand(1,8)+'.jpg"></center>'
  268. 'As you are strolling through the market, ' + $grinok_text[rand(3,12)]
  269. killvar '$grinok_text'
  270. elseif rinevrand = 1:
  271. '<center><img src="images/locations/pavlovsk/market/poproshaika'+rand(1,3)+'.jpg"></center>'
  272. 'You are strolling through the market when ' + $grinok_text[rand(0,2)]
  273. killvar '$grinok_text'
  274. act 'Throw a trifle':
  275. cla
  276. *clr
  277. money -= rand(3,20)
  278. pcs_willpwr += 5
  279. pcs_mood += 5
  280. gs 'stat'
  281. '<center><img src="images/locations/pavlovsk/market/podaet.jpg"></center>'
  282. 'You gave the beggar a trifle'
  283. act 'Wander further': gt 'Grinok','events'
  284. end
  285. elseif rinevrand = 2:
  286. '<center><img src="images/locations/pavlovsk/market/dedgitara.jpg"></center>'
  287. 'You see an old man playing the guitar.'
  288. elseif rinevrand = 3:
  289. '<center><img src="images/locations/pavlovsk/market/girlvoyeur.jpg"></center>'
  290. 'You see a girl bending over, putting her pussy on display.'
  291. if girl > 0: pcs_horny += 10
  292. gs 'stat'
  293. elseif rinevrand = 4:
  294. '<center><img src="images/locations/pavlovsk/market/goodass.jpg"></center>'
  295. 'You see a pretty girl and ogle her beautiful ass.'
  296. elseif rinevrand = 5:
  297. '<center><img src="images/locations/pavlovsk/market/dedgitara.jpg"></center>'
  298. 'You see an old man playing the guitar.'
  299. elseif rinevrand = 6:
  300. '<center><img src="images/locations/pavlovsk/market/nenavizublyadcigan.jpg"></center>'
  301. 'You meet a Gypsy woman. She offers to tell your fortune.'
  302. act 'Agree':
  303. cla
  304. *clr
  305. minut += 5
  306. '<center><img src="images/locations/pavlovsk/market/gadaet'+rand(1,2)+'.jpg"></center>'
  307. 'You agree and Gypsy takes your hand before she predicts you will have great happiness and lots of money. Afterwards, she promptly walks away.'
  308. act 'Something''s wrong':
  309. cla
  310. *clr
  311. money = 0
  312. pcs_mood -= 50
  313. gs 'stat'
  314. '<center><img src="images/locations/pavlovsk/market/pusto.jpg"></center>'
  315. 'With a sneaking suspicion you start looking through your stuff. Your wallet is nowhere to be found!'
  316. act 'Find the Gypsy':
  317. cla
  318. *clr
  319. '<center><img src="images/locations/pavlovsk/market/okliknut.jpg"></center>'
  320. 'You search the area hoping to find the thief, but she has already disappeared into the crowd.'
  321. act 'Back': gt 'Grinok'
  322. end
  323. end
  324. end
  325. elseif rinevrand = 7:
  326. '<center><img src="images/locations/pavlovsk/market/kosmetic.jpg"></center>'
  327. tovpay = rand(3, 8) * 100
  328. 'You see some cosmetics on sale for <<tovpay>> <b>₽</b>.'
  329. if money >= tovpay:
  330. act 'Buy':
  331. cls
  332. minut += 15
  333. money -= tovpay
  334. kosmetica += rand(10, 40)
  335. gs 'stat'
  336. gt $curloc
  337. end
  338. end
  339. elseif rinevrand = 8:
  340. '<center><img src="images/locations/pavlovsk/market/vitaminki.jpg"></center>'
  341. tovpay = rand(2, 5) * 100
  342. 'You see some vitamins on sale for <<tovpay>> <b>₽</b>.'
  343. if money >= tovpay:
  344. act 'Buy':
  345. cls
  346. minut += 15
  347. vitamin += 20
  348. money -= tovpay
  349. gt $curloc
  350. end
  351. end
  352. elseif rinevrand = 9:
  353. '<center><img src="images/locations/pavlovsk/market/condoms.jpg"></center>'
  354. tovpay = rand(2, 8) * 10
  355. 'You see a booth selling condoms for <<tovpay>> <b>₽</b>.'
  356. if money >= tovpay:
  357. act 'Buy':
  358. cls
  359. minut += 15
  360. prezik += 5
  361. i = 5
  362. :cndmlp
  363. if rand(0,49-6*(8-tovpay/10)) = 0:badprezik += 1
  364. if i > 0: i-= 1 & jump 'cndmlp'
  365. killvar 'i'
  366. money -= tovpay
  367. gt $curloc
  368. end
  369. end
  370. elseif rinevrand = 10:
  371. '<center><img src="images/locations/pavlovsk/market/balzam.jpg"></center>'
  372. tovpay = rand(3, 9) * 10
  373. 'There is lip balm on sale for <<tovpay>> <b>₽</b>.'
  374. if money >= tovpay:
  375. act 'Buy':
  376. cls
  377. minut += 15
  378. lipbalm += 20
  379. money -= tovpay
  380. gt $curloc
  381. end
  382. end
  383. elseif rinevrand = 11:
  384. if pornmarkonce = 0:pornmarkonce = 1
  385. 'Strolling through the market you accidentally wander across a stall selling porn.'
  386. act 'View the stall sell the porn':gt 'Gpornmark'
  387. elseif rinevrand = 12:
  388. if arturKnow = 0:
  389. 'Someone suddenly calls out to you, "Hey pretty girl, do you want a fresh, juicy tangerine?"'
  390. act 'Look': gt 'arturRinok','start'
  391. else
  392. 'Someone suddenly calls out to you, "Hey <<$pcs_nickname>>, do you want a fresh, juicy tangerine?"'
  393. act 'Come': gt 'arturRinok','start'
  394. end
  395. elseif rinevrand = 13:
  396. '<center><img src="images/locations/pavlovsk/market/cheburek.jpg"></center>'
  397. 'Walking through the market, you came across a grandmother selling pies.'
  398. if pcs_energy <= 80:
  399. act 'Buy a pie for 20 <b>₽</b>':
  400. cla
  401. *clr
  402. fat+=3
  403. frost = 0
  404. pcs_health += 5
  405. pcs_mood += 5
  406. water -= 5
  407. pcs_energy+=5
  408. money-=20
  409. minut+=10
  410. gs 'stat'
  411. '<center><img src="images/locations/pavlovsk/market/eat.jpg"></center>'
  412. 'You ate a delicious pie with pleasure.'
  413. act 'Continue walking through the market': gt 'Grinok','events'
  414. end
  415. else
  416. *p ', But you are not hungry right now.'
  417. end
  418. elseif rinevrand = 14:
  419. '<center><img src="images/locations/pavlovsk/market/dropwallet.jpg"></center>'
  420. 'You see woman ahead of you drop her purse.'
  421. cla
  422. act 'Tell her':
  423. cla
  424. *clr
  425. minut += 2
  426. '<center><img src="images/locations/pavlovsk/market/vernutwallet.jpg"></center>'
  427. 'You call to the woman and hold out her wallet. She looks at you and releasing she gratefully takes her wallet back and walks away.'
  428. act 'Continue walking through the market': gt 'Grinok','events'
  429. end
  430. act 'Look through the purse':
  431. cla
  432. *clr
  433. minut += 5
  434. i = rand(40,200)
  435. '<center><img src="images/locations/pavlovsk/market/zaglanut.jpg"></center>'
  436. 'In the purse is <<i>> <b>₽</b>'
  437. act 'Take the money and throw away the wallet':
  438. cla
  439. *clr
  440. money += i
  441. pcs_mood += 10
  442. gt $curloc
  443. end
  444. act 'Catch up with the woman and return her purse':
  445. cla
  446. *clr
  447. pcs_mood += 5
  448. '<center><img src="images/locations/pavlovsk/market/proverka.jpg"></center>'
  449. 'You catch up with the woman and telling her she dropped something you hand her the purse. The woman checks her money is still there and seeing that everything is in place, she thanks you and walked away.'
  450. act 'Continue walking through the market': gt 'Grinok','events'
  451. end
  452. end
  453. elseif rinevrand = 15:
  454. '<center><img src="images/locations/pavlovsk/market/rebenok.jpg"></center>'
  455. 'You see a young mother and her crying baby.'
  456. elseif rinevrand = 16:
  457. '<center><img src="images/locations/pavlovsk/market/rezba.jpg"></center>'
  458. 'You find a stall with beautiful things carved out of wood and metal.'
  459. elseif rinevrand = 17:
  460. '<center><img src="images/locations/pavlovsk/market/gruzchik.jpg"></center>'
  461. 'Gazing around, he almost collided with a loader.'
  462. elseif rinevrand = 18:
  463. '<center><img src="images/locations/pavlovsk/market/meatlavka.jpg"></center>'
  464. 'You wandered past a the meet seller and see a butcher working with an ax.'
  465. elseif rinevrand = 19:
  466. if pcs_apprnc >= 30:
  467. '<center><img src="images/locations/pavlovsk/market/walk'+rand(1,2)+'.jpg"></center>'
  468. 'As you walk, you make an effort to shake your booty. Some guys stare at you, unable to avert their eyes.'
  469. pcs_mood += 5
  470. else
  471. '<center><img src="images/locations/pavlovsk/market/walk'+rand(3,4)+'.jpg"></center>'
  472. 'As you walk, you make an effort to shake your booty. But no one gives you slightest attention.'
  473. pcs_mood -= 5
  474. end
  475. gs 'stat'
  476. elseif rinevrand = 20:
  477. '<center><img src="images/locations/pavlovsk/market/dirka.jpg"></center>'
  478. 'As you walk past a stall you notice a small hole torn in the canvas.'
  479. act 'Look through the hole':
  480. cla
  481. *clr
  482. if girl > 1: pcs_horny += 5
  483. '<center><img src="images/locations/pavlovsk/market/pereodev'+rand(1,15)+'.jpg"></center>'
  484. 'You look inside the tent and see ' + $grinokrandtext[rand(3,7)]
  485. act 'Leave': gt 'Grinok'
  486. end
  487. elseif rinevrand = 21:
  488. '<center><img src="images/locations/pavlovsk/market/birthcontrolpills.jpg"></center>'
  489. tovpay = rand(2,8) * 50
  490. 'You see a booth selling birth control pills for <<tovpay>> <b>₽</b>.'
  491. if money >= tovpay:
  492. act 'Buy':
  493. cls
  494. minut += 15
  495. tabletki += 1
  496. if rand(0,49) - (6*(8-tovpay/50)) <= 0:
  497. temp = rand(0,3)
  498. if temp = 0:
  499. tabletkiold += 1 & !Pills are expired and less effective
  500. elseif temp = 1:
  501. tabletkifake += 1 & !Pills are counterfeit and useless
  502. elseif temp = 2:
  503. tabletkirej += 1 & !Pills are factory rejects with variable strength
  504. else
  505. !Pills were tampered with
  506. if rand(0,100) = 0:
  507. tabletkifert += 1 & ! pills were replaced with fertility hormones
  508. else
  509. tabletkisug += 1 & ! pills were all replaced with sugar pills
  510. end
  511. end
  512. end
  513. money -= tovpay
  514. gt 'Grinok'
  515. end
  516. end
  517. else
  518. tovpay = rand(1, 5) * 1000
  519. 'You see someone selling a handbag for <<tovpay>> <b>₽</b>.'
  520. if bag = 0:
  521. if money >= tovpay:
  522. act 'Buy':
  523. cls
  524. minut += 15
  525. bag = 1
  526. money -= tovpay
  527. if menu_option = 1:dynamic $menu_addoldmenu
  528. if menu_option = 0:gs 'obj_din', 'new'
  529. gt 'Grinok'
  530. end
  531. end
  532. else
  533. 'But you already have a bag, so you move on.'
  534. end
  535. end
  536. end
  537. --- Grinok ---------------------------------