city_market.qsrc 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. # city_market
  2. !2021/04/29
  3. $location_type = 'public_outdoors'
  4. if $ARGS[0] = 'start' or $loc_arg = 'start':
  5. killvar 'clothingfilter'
  6. CLOSE ALL
  7. if sound = 0:
  8. if month >=11 and month <= 12 or month >=1 and month <=3:
  9. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/zima.mp3',30
  10. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  11. else
  12. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/street_leto.mp3',30
  13. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  14. end
  15. end
  16. !if sound = 0:PLAY 'sound/street.mp3',30
  17. cls
  18. gs 'stat'
  19. minut = minut + 5
  20. mag = 1
  21. $loc_arg = 'start'
  22. $loc = 'city_market'
  23. $menu_loc = 'city_market'
  24. $menu_arg = 'start'
  25. '<center><b><font color="maroon">Marketplace</font></b></center>'
  26. '<center><img <<$set_imgh>> src="images/locations/city/residential/market/rinok.jpg"></center>'
  27. ''
  28. 'One of the stalls has a sign attached to it that reads "Cash paid for secondhand clothes". You can <a href="exec:cloc=2 & gt ''clothing'', ''view_clothing_list'', ''sell''">sell individual items</a> or <a href="exec:gs ''portnoi''">all of your unwanted clothes here</a>.'
  29. if $message ! '':
  30. '<center>'+$message+'</center>'
  31. killvar '$message'
  32. else
  33. ''
  34. end
  35. *pl '<center><table align="center" width=80%>'
  36. *P FUNC ('$stock_item', 10, 'Dishwashing detergent', 400, 'fairy', 'city_market')
  37. *P FUNC ('$stock_item', 10, 'Clothing detergent', 400, 'poroshok', 'city_market')
  38. *P FUNC ('$stock_item', 8, 'Plates', 450, 'cltarelka', 'city_market')
  39. *P FUNC ('$stock_item', 20, 'Cosmetics', 1000, 'kosmetica', 'city_market')
  40. *P FUNC ('$stock_item', 25, 'Razors (number of shaves)', 300, 'stanok', 'city_market')
  41. *P FUNC ('$stock_item', 10, 'Tampons', 160, 'tampon', 'city_market')
  42. *P FUNC ('$stock_item', 10, 'Sanitary napkins', 80, 'sanpad', 'city_market')
  43. *P FUNC ('$single_stock_item', 1, 'Umbrella', 1000, 'umbrella', 'city_market', '', iif(bag > 0, 0, 1), 'You need a purse')
  44. '</table></center>'
  45. *pl
  46. if analplugIN = 1 and $pantyworntype = 'none' and PCloSkirt > 2:
  47. nurand = rand(0, 100)
  48. if nurand >= 80:
  49. pcs_mood -= 5
  50. 'You feel a hand gently pawing at <a href="exec:gt ''etoexhib'', ''pos15''">your ass</a>.'
  51. gs 'arousal', 'foreplay', 3
  52. gs 'stat'
  53. end
  54. end
  55. act 'Leave':
  56. cla
  57. minut += 5
  58. $loc_arg = ''
  59. gs 'arousal', 'end'
  60. gs 'stat'
  61. gt 'city_residential'
  62. end
  63. if workrin = 1:
  64. if week = 2 or week = 4 or week = 6:
  65. if hour < 9:
  66. 'Arthur is waiting to set up a stall for you.'
  67. act '<b>Set up stall</b>':
  68. cla
  69. *clr
  70. hour = 9
  71. minut = 0
  72. prodpayum = 1200
  73. 'Arthur unloads boxes from his truck and gives them to you. You start hanging the clothes inside around the stall.'
  74. 'Before leaving, Arthur gives you instructions. "Sell it all at whatever price you want, but at the end of your shift, I''ll charge you 1000 <b>₽</b> for each item sold. You should be making me no less than <<arturplan>> <b>₽</b>."'
  75. act 'Start working':gt 'city_marketwork', 'start'
  76. end
  77. end
  78. end
  79. act 'Quit':
  80. cla
  81. work = 0
  82. workrin = 0
  83. 'You quit your job at the market and collect your papers.'
  84. act 'Leave':gt 'city_market', 'start'
  85. end
  86. end
  87. if (work = 0 or cheatWork = 1) and workrin = 0:
  88. nl
  89. 'A messily written ad hangs from one of the stalls. "Need female market stall staff. Paychecks big."'
  90. act 'Approach the owner of the ad':
  91. cla
  92. *clr
  93. 'Hi, my name is Arthur. I own many stalls here and I need a saleswoman. Want the job?'
  94. 'Pay is a percentage of sales, paid at end of shift. Your shifts would be Tuesdays, Thursdays and Saturdays from 08:00 to 14:00.'
  95. 'Government insist I have your papers, so it would be your main job.'
  96. act 'Leave':gt 'city_market', 'start'
  97. act 'Take the job':
  98. cla
  99. work = 1
  100. workrin = 1
  101. arturplan = 5000
  102. 'You give your papers to Arthur and he shakes your hand, welcoming you aboard.'
  103. act 'Leave':gt 'city_market', 'start'
  104. end
  105. end
  106. end
  107. act 'Go to the book tray':
  108. cls
  109. minut += 15
  110. gs'stat'
  111. 'You wlak up to the stall and inspect what''s on sale. You see a fantasy book, a science fiction book and various romance novels. They all cost 350 <b>₽</b> each.'
  112. if money >= 350:
  113. act 'Buy the fantasy book':
  114. cls
  115. minut += 15
  116. money -= 350
  117. f_book += 1
  118. gs'stat'
  119. 'You buy the fantasy book for 350 <b>₽</b>.'
  120. act 'Leave':gt'city_market','start'
  121. end
  122. end
  123. if money >= 350:
  124. act 'Buy the science fiction book':
  125. cls
  126. minut += 15
  127. money -= 350
  128. f_book += 1
  129. gs'stat'
  130. 'You buy the science fiction book 350 <b>₽</b>.'
  131. act 'Leave':gt'city_market','start'
  132. end
  133. end
  134. if money >= 350:
  135. act 'Buy a romance novel':
  136. cls
  137. minut += 15
  138. money -= 350
  139. w_book += 1
  140. gs'stat'
  141. 'You buy a romance novel for 350 <b>₽</b>.'
  142. act 'Leave':gt'city_market','start'
  143. end
  144. end
  145. act 'Leave':gt'city_market','start'
  146. end
  147. act 'View clothing':
  148. cla
  149. minut += 5
  150. gt 'city_market', 'clo'
  151. end
  152. end
  153. if $ARGS[0] = 'clo':
  154. $loc_arg = 'clo'
  155. $loc = 'city_market'
  156. cls
  157. gs'stat'
  158. gs 'themes', 'indoors'
  159. '<center><b><font color="maroon">Clothes.</font></b></center>'
  160. 'You inspect the cheap clothing the stall has to offer.'
  161. gs 'clothing_QV', 'shop_filter_header'
  162. act 'Return':
  163. cla
  164. minut += 5
  165. gt 'city_market', 'start'
  166. end
  167. !!To filter just this set
  168. clo_i = 0
  169. :loopmarket_outfits_filter
  170. i = 1
  171. :loopmarket_outfits
  172. if market_outfits[i] = 0:
  173. gs 'clothing_attributes', 'market_outfits', i
  174. gs 'clothing_QV', 'shop_filter'
  175. !!sort by filter
  176. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  177. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:*p '<a href="exec: i = <<i>> & gt ''city_market'', ''marketclo''"><img <<$set_imgh>> src="images/pc/items/market/clothes/<<i>>.jpg" height="250" /></a>'
  178. end
  179. end
  180. i += 1
  181. if i <= 20:jump 'loopmarket_outfits'
  182. clo_i += 1
  183. if clothingfilter['quality'] = 0 and clo_i <= 7:
  184. jump 'loopmarket_outfits_filter'
  185. elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
  186. jump 'loopmarket_outfits_filter'
  187. end
  188. end
  189. if $ARGS[0] = 'marketclo':
  190. cla
  191. if market_outfits[i] ! 0:
  192. msg 'You already own these clothes.'
  193. gt 'city_market', 'clo'
  194. end
  195. gt 'clothing', 'view_clothing_item', 'market_outfits',i, 750, 'shop'
  196. end
  197. if $ARGS[0] = 'tailor':
  198. CLOSE ALL
  199. cls
  200. $loc = 'city_market'
  201. $loc_arg = 'tailor'
  202. $menu_loc = 'city_market'
  203. $menu_arg = 'tailor'
  204. menu_off = 0
  205. gs 'stat'
  206. 'A sign reads: "Jacob Solomonovich Schneersohn, tailor, 8:00-16:00 Monday - Friday"'
  207. act 'Speak to the tailor':
  208. cla
  209. *clr
  210. 'An elderly Jewish man is sitting at a table. He pulls his glasses down a little and looks over the top of them as he points at you.'
  211. if portnoyQW > 0:
  212. '"So <<$pcs_nickname>>. Do you need any clothing adjusted?"'
  213. if money >= 500:
  214. act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
  215. *clr & cla
  216. minut += 10
  217. if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
  218. 'The tailor is looking irritatingly at you, "Why are you wasting my time with exercise clothing? That type of clothing does not need to be resized..."'
  219. elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
  220. 'The tailor is looking irritatingly at you, "Is this joke? Your clothes could not fit you better if they had been made for you. I have no time for such foolishness."'
  221. elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
  222. 'The tailor is looking irritatingly at you, "Why are you wasting my time? Your clothing does not need to be resized. It might not be perfect but it is still fine."'
  223. else
  224. money -= 500
  225. dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
  226. 'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
  227. 'Jacob quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'
  228. 'You are handed your clothes back and quickly get dressed. You''re pleased with the job that the tailor has done.'
  229. end
  230. act 'Continue': minut += 10 & gt 'city_market', 'tailor'
  231. end
  232. act 'Take in different clothes':gt 'clothing', 'view_clothing_list', 'resize'
  233. act 'Take in all the clothes':gt 'portnoi2'
  234. end
  235. else
  236. '"Hello young lady. I am Jacob Solomonovich, but you can call me Yasha. And what is your name?"'
  237. act 'Tell him your name':
  238. cla
  239. portnoyQW = 1
  240. '"<<$pcs_nickname>>"'
  241. '"<<$pcs_nickname>>....What a pretty name. Come, sit here on this chair. How can I help you?"'
  242. act 'Ask him about your clothes':
  243. cla
  244. *clr
  245. minut += 15
  246. gs 'stat'
  247. '"Can you tailor my clothes to fit me better?"'
  248. '"Of course I can! Otherwise, what kind of tailor would I be? Here, let me see what you''re wearing."'
  249. 'He jumps up and nimbly removes the tape from his neck and begins to measure your chest, waist and hips.'
  250. '"I can adjust any clothing that doesn''t fit you for 500 <b>₽</b> per item."'
  251. act 'Continue': gt 'city_market', 'tailor'
  252. end
  253. end
  254. end
  255. act 'Leave': minut += 10 & gt 'city_residential'
  256. end
  257. end
  258. --- city_market ---------------------------------