1
0

rinwork.qsrc 21 KB

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