1
1

rinwork.qsrc 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. # rinwork
  2. $location_type = 'event_outdoors'
  3. ! Variables used
  4. ! rinvesh = sold Items of clothing
  5. ! rinmon = Total cash taken
  6. ! arturplan = Amount Arthur expects min
  7. ! arturnoo, arturyes = Times failed, reached sales
  8. ! workrin working in the market
  9. ! repa ???????????
  10. ! pokupatel = customer interested
  11. ! prodpayum = average price
  12. ! pokpay = amount customer is willing to pay
  13. ! pcs_apprnc = Attractiveness
  14. ! rinslut Arthur only keeps quiet if you do what he says
  15. ! palevorin = 0:Never had Sex w Arthur
  16. ! 1:Had Sex w Arthur
  17. ! 2:Declined GB
  18. ! 3:Declined GB talked Arthur
  19. ! 4:Agreed GB
  20. ! 5:Agreed GB talked Arthur
  21. !tetaKataQW ?
  22. !annaQW ?
  23. !NadiaQW ?
  24. !
  25. if $ARGS[0] = 'start':
  26. $metka = 'start'
  27. $loc = 'rinwork'
  28. cls
  29. gs 'stat'
  30. '<center><b><font color="maroon">Marketplace</font></b></center>'
  31. '<center><img <<$set_imgh>> src="images/locations/city/residential/market/rinok.jpg"></center>'
  32. 'You stand at your clothes stall waiting for buyers.'
  33. 'Cash taken <<rinmon>> <b>₽</b>, You have sold <<rinvesh>> items.'
  34. 'The average price on the market <<prodpayum>>'
  35. if hour = 14:
  36. 'Arthur comes to you and you start to calculate how much you should give him.'
  37. act 'Give money to Arthur':
  38. cla
  39. *clr
  40. rinart = rinvesh * 1000
  41. rinmon -= rinart
  42. money += rinmon
  43. gs 'stat'
  44. 'You gave Arthur <<rinart>> per sold <<rinvesh>> things.'
  45. 'Today you have earned <<rinmon>> <b>₽</b>'
  46. rinmon = 0
  47. rinvesh = 0
  48. if rinart < arturplan:
  49. arturnoo += 1
  50. 'Uh, <<$pcs_nickname>>, this is bad, you haven''t made enough money. You will completely ruin me.'
  51. else
  52. arturyes += 1
  53. 'Well done <<$pcs_nickname>>, good job.'
  54. end
  55. if arturnoo > arturyes:arturnoo = arturnoo - arturyes & arturyes = 0
  56. if arturyes > arturnoo:arturyes = arturyes - arturnoo & arturnoo = 0
  57. if arturnoo = arturyes:arturnoo = 0 & arturyes = 0
  58. if arturnoo > 10:
  59. arturnoo = 0
  60. work = 0
  61. workrin = 0
  62. 'Uh, you''re fucking useless. Here''s your papers. Hit the road, I do not want to see you ever again!'
  63. act 'Leave':gt 'street'
  64. exit
  65. end
  66. rinrand = rand(1, 400)
  67. if rinrand < pcs_apprnc:
  68. if palevorin <= 1 or palevorin = 3:
  69. if palevorin = 0:
  70. '"Hey <<$pcs_nickname>>, you and I have not even met properly. Come into the warehouse, eat barbecue, drink and get acquainted.'
  71. elseif palevorin = 1:
  72. '"Hey <<$pcs_nickname>>, want to Come to the warehouse again, eat barbecue, drink and have some fun.'
  73. else
  74. '"Hey <<$pcs_nickname>>. Come into the warehouse, eat barbecue, drink, rest." He walks right up to you and slaps you on the ass.'
  75. end
  76. act 'Refuse':
  77. cla
  78. 'You start making excuses. Arthur says to you, "Hey, don''t insult me, your stall is dirty, it has dust and dirt all over it. I should fine you, but if you''re nice I will let you off.'
  79. act 'Goto warehouse':gt 'RynokHoz', 'the_beginning'
  80. act 'No':
  81. cla
  82. arturplan += 1000
  83. if money >= 1000:
  84. money -= 1000
  85. '"Hey, your stall is dirty, you owe a thousand <b>₽</b>, in fine." Arthur takes the money.'
  86. else
  87. 'Go with him, before it gets worse'
  88. end
  89. act 'Leave':gt 'street'
  90. end
  91. end
  92. act 'Go with him':gt 'RynokHoz', 'the_beginning'
  93. elseif palevorin = 2:
  94. 'Artur goes behind you into the stall carrying some stuff, then he comes up behind you are working and gives your ass a slap and squeeze. "I am glad you turned Abdul and Hasan down. I like having you all to myself."'
  95. 'You turn your head to look at him and smile. "I like that too, but maybe from now on you can lock the door first?"'
  96. 'He laughs and nods. "Of course of course, anything for you my sweet. If you wish the door to be locked from now on the door will be locked from now on. Speaking of which, come let us go try locking the door to make sure it works and have lunch."'
  97. act 'Go with Artur':palevorin = 3 & gt 'RynokHoz', 'the_beginning'
  98. elseif palevorin = 4:
  99. 'Artur goes behind you into the stall carrying some stuff. He comes up behind you are working and gives your ass a slap and squeeze, with one hand while the other one snakes around and roughly grabs your tit, as he whispers in your ear. "So you like cock, I didn''t think you was a little slut but that is ok, I like dirty sluts."'
  100. 'He cuts you off before you can make any protest about being slut. "No it is good, I can use this. Now come let us go to the warehouse so I can fuck you."'
  101. act 'Go with him':palevorin = 5 & gt 'RynokHoz', 'sex'
  102. act 'Refuse':
  103. cla
  104. 'You shake your head and pull out of his grasp. "I am not a slut Artur and I am not going with you."'
  105. 'You see the anger flare up in his eyes. "So you think you are to good for me whore? I gave you a job, I treated you nice and then you fuck those two and now I am not good enough?" He shakes his head. "No get your ass in the warehouse now or you are fired and I will tell Abdul and Hasan they are free to tell everyone about how you greedily took their cocks like the little slut you are."'
  106. 'You are a bit shocked at this level of anger and the ultimatum. You are unsure what to do, go with him, keep your job, and your rep. Or refuse and find a new job and hope no one believes them.'
  107. act 'Go to warehouse':palevorin = 5 & gt 'RynokHoz', 'sex'
  108. act 'Get fired':
  109. cla
  110. 'You shake your head no. "No I won''t go with you."'
  111. 'Before you notice him raising his hand, you feel the burning on your cheek as he slaps you. "Then get out of her whore, your fired and I don''t want to see you back here!" He says very loudly as he pushes you out from behind his stall, loud enough that many people are looking your direction now at what is going on.'
  112. 'With shame and a burning cheek you walk away.'
  113. if rinslut = 0:rinslut = 1
  114. act 'Leave':gt 'street'
  115. end
  116. end
  117. elseif palevorin = 5:
  118. sexgrouprand = rand(0,1)
  119. if sexgrouprand = 1:
  120. 'Artur walks up and slaps your ass hard and grabs you roughly by one arm. "Hey bitch, how would you like to make some extra money? My friends need company."'
  121. act 'Go with him':gt 'RynokHoz', 'group'
  122. else
  123. 'Artur walks up and slaps your ass hard and grabs you roughly by one arm. "Bitch get your fucking ass in the warehouse."'
  124. act 'Go with him':gt 'RynokHoz', 'sex'
  125. end
  126. act 'Refuse':
  127. cla
  128. 'You start making excuses. Arthur says to you, "Hey, don''t insult me you fucking slut, I was there. I know what a whore you are. Now get your fucking ass in the warehouse or the whole town will know what a whore you are."'
  129. if sexgrouprand = 1:
  130. act 'Go to warehouse':gt 'RynokHoz', 'group'
  131. else
  132. act 'Go to warehouse':gt 'RynokHoz', 'sex'
  133. end
  134. act 'No':
  135. cla
  136. arturnoo = 0
  137. work = 0
  138. workrin = 0
  139. if rinslut = 0:rinslut = 1
  140. if repa < 6:repa = 6
  141. 'Then fuck you, you little fucking whore, your fired and by tomorrow the whole town will know what a whore you are."'
  142. act 'Leave':gt 'street'
  143. end
  144. end
  145. else
  146. act 'Leave work':gt 'street'
  147. end
  148. else
  149. act 'Leave work':gt 'street'
  150. end
  151. end
  152. exit
  153. elseif hour < 14:
  154. act 'Laze around (0:15)':
  155. minut += 15
  156. gt 'rinwork', 'start'
  157. end
  158. if money >= 200:
  159. act 'Buy a snack (200 <b>₽</b>) (0:15)':
  160. tetaKataQW += 1
  161. money -= 200
  162. gs 'kit_din'
  163. gs 'food', 'snack'
  164. end
  165. end
  166. rintakrand = rand(0, 5)
  167. talkrand = rand(0, 2)
  168. if hour = 9:
  169. if rintakrand = 0:
  170. $rintak = ' Hassan unloads clothes in front of saleswoman Nadias stall.'
  171. act 'See Hassan and Nadia':
  172. cla
  173. minut += 15
  174. if talkrand = 0:'Hassan utters to Nadia. "Today you will sell more, and to the rich ladies, I need the money."'
  175. if talkrand = 1:'Hassan opens trunks and puts clothes on the counter.'
  176. if talkrand >= 2:'Hassan drags trunks to his stall.'
  177. act 'Further':gt 'rinwork', 'start'
  178. end
  179. elseif rintakrand = 1:
  180. $rintak = 'On the next stall Abdul is talking loudly and giving clothes to saleswoman Anna.'
  181. act 'Look at Abdul and Anna':
  182. cla
  183. minut += 15
  184. if talkrand = 0:'Abdul swears. "We''re fucked, you can not sell anything!" Anna retorts, "You give me this rotten shit to sell, take it nobody wants it."'
  185. if talkrand = 1:'Abdul slaps Annas ass, she pretends that nothing happened.'
  186. if talkrand >= 2:'Abdul drags trunks to his stall.'
  187. act 'Further':gt 'rinwork', 'start'
  188. end
  189. elseif rintakrand = 2:
  190. $rintak = 'Abdul and Hassan stand beside your stall and saying something guttural.'
  191. act 'View the Armenians':
  192. cla
  193. minut += 15
  194. if talkrand = 0:'Abdul and Hassan continue to talk about something, you do not know the language, and can not understand what they are saying.'
  195. if talkrand = 1:'Abdul and Hassan ignore you and discuss what sounds like clothes prices.'
  196. if talkrand >= 2:'Abdul looks at you and says to Hassan, "Look at that a girl, she looks like a good fuck, yeah."'
  197. act 'Further':gt 'rinwork', 'start'
  198. end
  199. elseif rintakrand = 3:
  200. $rintak = 'Anna hangs clothes on her stall shouting at Nadia.'
  201. act 'Chat with girls':
  202. cla
  203. annaQW += 1
  204. NadiaQW += 1
  205. minut += 15
  206. if talkrand = 0:
  207. 'Anna tells you that her skirt needed altering, there is a great Jewish tailor, his shop is nearby.'
  208. else
  209. 'Nadia tells her how some pervert molested her on the subway rubbing his dick on her ass.'
  210. end
  211. act 'Further':gt 'rinwork', 'start'
  212. end
  213. elseif rintakrand = 4:
  214. $rintak = 'Arthur is talking about something with Abdullah.'
  215. act 'View the Armenians':
  216. cla
  217. minut += 15
  218. if talkrand = 0:'Abdul and Hassan continue to talk about something, you do not know the language, and can not understand what they are saying.'
  219. if talkrand = 1:'Abdul and Arthur ignore you and discuss what sounds like clothes prices.'
  220. if talkrand >= 2:'Abdul looks at you and says to Arthur, "Nice girl you got there, you fucking her?."'
  221. act 'Further':gt 'rinwork', 'start'
  222. end
  223. elseif rintakrand >= 5:
  224. $rintak = 'Arthur, Abdul Hassan are talking loudly, about something in foreign language.'
  225. act 'View the Armenians':
  226. cla
  227. minut += 15
  228. if talkrand = 0:'Abdul and Hassan continue to talk about something, you do not know the language, and can not understand what they are saying.'
  229. if talkrand = 1:'Armenians ignore you and discuss what sounds like clothes prices.'
  230. if talkrand >= 2:'Abdul looks at you and says to the other Armenians, "Pretty little girl, can i have her?"'
  231. act 'Further':gt 'rinwork', 'start'
  232. end
  233. end
  234. '<<$rintak>>'
  235. elseif hour = 10:
  236. if rintakrand = 0:
  237. $rintak = 'Hassan sits on a chair dejectedly chewing food and talking with his mouth full to his saleswoman Nadia.'
  238. act 'Watch Hasan':
  239. cla
  240. minut += 15
  241. 'Hassan says to Nadia "Nadia, why you refuse? Come here, have some wine."'
  242. act 'Further':gt 'rinwork', 'start'
  243. end
  244. elseif rintakrand = 1:
  245. $rintak = 'At the stall in front of you sits Nadia doing crossword puzzles.'
  246. act 'Chat with Nadia':
  247. cla
  248. NadiaQW += 1
  249. minut += 15
  250. 'Nadia leaves the crossword and willingly gossips with you.'
  251. act 'Further':gt 'rinwork', 'start'
  252. end
  253. elseif rintakrand = 2:
  254. $rintak = 'Nadias stall in front of you has many buyers and she fusses before them laying out goods.'
  255. act 'Chat with Nadia':
  256. cla
  257. NadiaQW -= 1
  258. minut += 15
  259. 'Nadia is not happy, "Shoo, no distractions, I have buyers."'
  260. act 'Further':gt 'rinwork', 'start'
  261. end
  262. elseif rintakrand = 3:
  263. $rintak = 'At the next stall Anna is drinking coffee.'
  264. act 'Chat with Anna':
  265. cla
  266. annaQW += 1
  267. minut += 15
  268. 'Anna is happy to chat with you about any old nonsense.'
  269. act 'Further':gt 'rinwork', 'start'
  270. end
  271. elseif rintakrand = 4:
  272. $rintak = 'At the next stall Anna tries to interest buyers in her goods.'
  273. act 'Chat with Anna':
  274. cla
  275. annaQW -= 1
  276. minut += 15
  277. 'Anya is not happy, "Shoo, no distractions, I have buyers."'
  278. act 'Further':gt 'rinwork', 'start'
  279. end
  280. elseif rintakrand >= 5:
  281. $rintak = 'Anna is gossiping with Aunt Katya.'
  282. act 'Chat with Anna and Aunt Katya':
  283. cla
  284. annaQW += 1
  285. tetaKataQW += 1
  286. minut += 15
  287. 'Aunt Katya is talking about her pies and Anya complains that it because of her bloody pies that her ass is twice as big as it was.'
  288. act 'Further':gt 'rinwork', 'start'
  289. end
  290. end
  291. '<<$rintak>>'
  292. elseif hour = 11:
  293. if rintakrand = 0:
  294. $rintak = 'Nadia is approached by three Armenians, Aslan, Camille and Mukhtar and they begin to molest her, she swears at them and tries to dodge.'
  295. act 'Look at Nadia and Armenians.':
  296. cla
  297. minut += 15
  298. 'The Armenians seem to be trying to persuade Nadia to have sex with them.'
  299. act 'Further':gt 'rinwork', 'start'
  300. end
  301. elseif rintakrand = 1:
  302. $rintak = 'At the stall in front of you sits Nadia eating cake.'
  303. act 'Chat with Nadia':
  304. cla
  305. NadiaQW += 1
  306. minut += 15
  307. 'Nadia finishes the cake and mumbles about the usual nonsense with you.'
  308. if clener = 0:
  309. clener = 1
  310. 'Nadia tells you about an office building not too far away that is looking for a cleaner.'
  311. end
  312. act 'Further':gt 'rinwork', 'start'
  313. end
  314. elseif rintakrand = 2:
  315. $rintak = 'Nadias stall in front of you has many buyers and she fusses before laying out goods.'
  316. act 'Chat with Nadia':
  317. cla
  318. NadiaQW -= 1
  319. minut += 15
  320. 'Nadia is not happy, "Shoo, no distractions, I have buyers."'
  321. act 'Further':gt 'rinwork', 'start'
  322. end
  323. elseif rintakrand = 3:
  324. $rintak = 'At the next stall Anna is reading a newspaper.'
  325. act 'Chat with Anna':
  326. cla
  327. annaQW += 1
  328. minut += 15
  329. 'Anna is happy to chat with you about any old nonsense.'
  330. act 'Further':gt 'rinwork', 'start'
  331. end
  332. elseif rintakrand = 4:
  333. $rintak = 'At the next stall Anna tries to interest buyers in her goods.'
  334. act 'Chat with Anna':
  335. cla
  336. annaQW -= 1
  337. minut += 15
  338. 'Anya is not happy, "Shoo, no distractions, I have buyers."'
  339. act 'Further':gt 'rinwork', 'start'
  340. end
  341. elseif rintakrand >= 5:
  342. $rintak = 'Nadia is approached by three Armenians, Aslan, Camille and Mukhtar and they begin to molest her, she swears at them and tries to dodge.'
  343. act 'Look at Nadia and Armenians.':
  344. cla
  345. minut += 15
  346. 'The Armenians seem to be trying to persuade Nadia to have sex with them.'
  347. act 'Further':gt 'rinwork', 'start'
  348. end
  349. end
  350. '<<$rintak>>'
  351. elseif hour = 12:
  352. if rintakrand = 0:
  353. $rintak = 'Hasan has bought chebureki and is eating it while sitting behind Nadia in the stall.'
  354. act 'Chat with Nadia':
  355. cla
  356. NadiaQW -= 1
  357. minut += 15
  358. 'Nadia shies away from talking in front of Hassan.'
  359. act 'Further':gt 'rinwork', 'start'
  360. end
  361. elseif rintakrand = 1:
  362. $rintak = 'Nadia is surrounded by customers.'
  363. act 'Chat with Nadia':
  364. cla
  365. NadiaQW -= 1
  366. minut += 15
  367. 'Nadia is not happy, "Shoo, no distractions, I have buyers."'
  368. act 'Further':gt 'rinwork', 'start'
  369. end
  370. elseif rintakrand = 2:
  371. $rintak = 'Nadia talks with Anna.'
  372. act 'Chat with girls':
  373. cla
  374. annaQW += 1
  375. NadiaQW += 1
  376. minut += 15
  377. if talkrand = 0:
  378. 'Anna tells you that her friend used to clean an office building not far from here, they are looking for a new cleaner if you need to make some extra cash.'
  379. if clener = 0:clener = 1
  380. elseif talkrand = 1:
  381. 'Nadia tells her how some pervert molested her on the subway rubbing his dick on her ass.'
  382. end
  383. act 'Further':gt 'rinwork', 'start'
  384. end
  385. elseif rintakrand = 3:
  386. $rintak = 'Anna is selling clothing to customers.'
  387. act 'Chat with Anna':
  388. cla
  389. annaQW -= 1
  390. minut += 15
  391. 'Anna is not happy, "Shoo, no distractions, I have buyers."'
  392. act 'Further':gt 'rinwork', 'start'
  393. end
  394. elseif rintakrand = 4:
  395. $rintak = 'Anna is drinking coffee sitting at her stall.'
  396. act 'Chat with Anna':
  397. cla
  398. annaQW += 1
  399. minut += 15
  400. 'Anna happily chats with you about nonsense.'
  401. act 'Further':gt 'rinwork', 'start'
  402. end
  403. elseif rintakrand >= 5:
  404. $rintak = 'Nadia is idly trying to catch flies.'
  405. act 'Chat with Nadia':
  406. cla
  407. NadiaQW += 2
  408. minut += 15
  409. 'Nadia glad for the distraction and has fun chatting with you.'
  410. act 'Further':gt 'rinwork', 'start'
  411. end
  412. end
  413. '<<$rintak>>'
  414. elseif hour = 13:
  415. if rintakrand = 0:
  416. $rintak = 'Hassan begins to slowly collect goods from Nadia.'
  417. elseif rintakrand = 1:
  418. $rintak = 'Anya sits and calculates her profit for the day.'
  419. elseif rintakrand = 2:
  420. $rintak = 'Nadia calculates her days profit.'
  421. elseif rintakrand = 3:
  422. $rintak = 'Abdul begins collecting goods from Anna.'
  423. elseif rintakrand = 4:
  424. $rintak = 'Arthur walks past your stall.'
  425. else
  426. $rintak = 'Aunt Katya stops trading pies and leaves.'
  427. end
  428. '<<$rintak>>'
  429. end
  430. pokrand = rand(0, 1)
  431. if pokrand = 0:
  432. $pokup = 'You have no customers.'
  433. pokupatel = 0
  434. ''
  435. 'Aunt Katya pushes her trolley through the market carrying cakes and coffee.'
  436. else
  437. pokupatel = 1
  438. poktiprand = rand(0, 7)
  439. if poktiprand = 0:$pokup = 'A middle-aged man approaches your stall.' & $poktip = 'Man' & pokti = 1
  440. if poktiprand = 1:$pokup = 'A young man approaches your stall.' & $poktip = 'Guy' & pokti = 2
  441. if poktiprand = 2:$pokup = 'A teenage boy approaches your stall.' & $poktip = 'Boy' & pokti = 3
  442. if poktiprand = 3:$pokup = 'A woman approaches your stall.' & $poktip = 'Woman' & pokti = 1
  443. if poktiprand = 4:$pokup = 'A girl approaches your stall.' & $poktip = 'Girl' & pokti = 2
  444. if poktiprand = 5:$pokup = 'A teen girl approaches your stall.' & $poktip = 'Teen girl' & pokti = 3
  445. if poktiprand = 6:$pokup = 'An old man approaches your stall.' & $poktip = 'Old man' & pokti = 0
  446. if poktiprand = 7:$pokup = 'A Grandma approaches your stall.' & $poktip = 'Old woman' & pokti = 0
  447. end
  448. '<b><<$pokup>></b>'
  449. if pokupatel = 1:
  450. act 'How can I help you?':
  451. cla
  452. minut += 15
  453. pokvnirand = rand(0, 2)
  454. if pokvnirand = 0:
  455. '<<$poktip>> with little interest examines your wares.'
  456. elseif pokvnirand = 1:
  457. '<<$poktip>> with interest looks through the clothes for sale.'
  458. elseif pokvnirand = 2:
  459. '<<$poktip>> picks up the item.'
  460. end
  461. act 'Now this is very fashionable':
  462. cla
  463. tipred = 3
  464. gs 'rinwork', 'answerrin'
  465. end
  466. act 'This item is very high quality and reliable':
  467. cla
  468. tipred = 1
  469. gs 'rinwork', 'answerrin'
  470. end
  471. act 'You''ll find this very reasonable':
  472. cla
  473. tipred = 0
  474. gs 'rinwork', 'answerrin'
  475. end
  476. act 'That is so you':
  477. cla
  478. tipred = 2
  479. gs 'rinwork', 'answerrin'
  480. end
  481. end
  482. end
  483. end
  484. end
  485. if $ARGS[0] = 'answerrin':
  486. if tipred = pokti:
  487. ''
  488. if pokvnirand = 0:
  489. pokpay = rand(1000, 1200)
  490. elseif pokvnirand = 1:
  491. pokpay = rand(1100, 1300)
  492. elseif pokvnirand = 2:
  493. pokpay = rand(1300, 1500)
  494. end
  495. '<<$poktip>> asks you for a price'
  496. gs 'rinwork', 'tellprice'
  497. else
  498. '<<$poktip>> puts the item back and leaves.'
  499. act 'Further':gt 'rinwork', 'start'
  500. end
  501. end
  502. if $ARGS[0] = 'tellprice':
  503. act 'Name the price':
  504. cla
  505. prodpay = input ("Enter the selling price")
  506. if prodpay < 1000:prodpay = prodpayum
  507. poknorand = rand(1, 100 + pcs_apprnc/4)
  508. 'You tell them <<prodpay>> <b>₽</b>'
  509. if prodpay <= pokpay:
  510. if poknorand >= 10:
  511. rinmon += prodpay
  512. rinvesh += 1
  513. 'The buyer takes the item and pays <<prodpay>> <b>₽</b>.'
  514. act 'Sell it':gt 'rinwork', 'start'
  515. else
  516. 'The buyer twirls clothing in their hands <<prodpay>> <b>₽</b> is too expensive.'
  517. gs 'rinwork', 'haggling'
  518. end
  519. elseif prodpay > pokpay and prodpay <= pokpay + 100:
  520. if poknorand >= 10:
  521. 'The buyer twirls clothing in their hands <<prodpay>> <b>₽</b> is too expensive.'
  522. gs 'rinwork', 'haggling'
  523. else
  524. 'Buyer puts the item back and leaves'
  525. act 'Return':gt 'rinwork', 'start'
  526. end
  527. elseif prodpay > pokpay + 100:
  528. 'The buyer puts the item back and leaves.'
  529. act 'Return':gt 'rinwork', 'start'
  530. end
  531. end
  532. end
  533. if $ARGS[0] = 'haggling':
  534. if prodpay >= 1100:
  535. act 'Reduce the price by 100 <b>₽</b>':
  536. cla
  537. 'You have reduced the price by 100 <b>₽</b>.'
  538. poknorand = rand(1, 100 + pcs_apprnc/4)
  539. if poknorand >= 10:
  540. rinmon += prodpay - 100
  541. rinvesh += 1
  542. 'The buyer takes the item and pays <<prodpay - 100>> <b>₽</b>'
  543. else
  544. 'The buyer puts the item back and leaves.'
  545. end
  546. act 'Haggle':gt 'rinwork', 'start'
  547. end
  548. elseif prodpay >= 1050:
  549. act 'Reduce the price by 50 <b>₽</b>':
  550. cla
  551. 'You have reduced the price by 50 <b>₽</b>.'
  552. poknorand = rand(1, 100 + pcs_apprnc/4)
  553. if poknorand >= 30:
  554. rinmon += prodpay - 50
  555. rinvesh += 1
  556. 'The buyer takes the item and pays <<prodpay - 50>> <b>₽</b>'
  557. else
  558. 'The buyer puts the item back and leaves.'
  559. end
  560. act 'Haggle':gt 'rinwork', 'start'
  561. end
  562. end
  563. act 'You can not take less, take the item back':gt 'rinwork', 'start'
  564. end
  565. --- rinwork ---------------------------------