city_market.qsrc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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 += 5
  20. $loc_arg = 'start'
  21. $loc = 'city_market'
  22. $menu_loc = 'city_market'
  23. $menu_arg = 'start'
  24. gs 'stat'
  25. gs 'themes', 'outdoors'
  26. '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>.'
  27. if analplugIN = 1 and $pantyworntype = 'none' and PCloSkirt > 2:
  28. nurand = rand(0, 100)
  29. if nurand >= 80:
  30. pcs_mood -= 5
  31. 'You feel a hand gently pawing at <a href="exec:gt ''etoexhib'', ''pos15''">your ass</a>.'
  32. gs 'arousal', 'foreplay', 3
  33. gs 'stat'
  34. end
  35. end
  36. act 'Leave':
  37. cla
  38. minut += 5
  39. $loc_arg = ''
  40. gs 'arousal', 'end'
  41. gs 'stat'
  42. gt 'city_residential'
  43. end
  44. act 'Browse wares': gt 'city_market', 'wares'
  45. if workrin = 1:
  46. if week = 2 or week = 4 or week = 6:
  47. if hour < 9:
  48. 'Arthur is waiting to set up a stall for you.'
  49. act '<b>Set up stall</b>':
  50. cla
  51. *clr
  52. hour = 9
  53. minut = 0
  54. prodpayum = 1200
  55. 'Arthur unloads boxes from his truck and gives them to you. You start hanging the clothes inside around the stall.'
  56. '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>."'
  57. act 'Start working':gt 'city_marketwork', 'start'
  58. end
  59. end
  60. end
  61. act 'Quit':
  62. cla
  63. work = 0
  64. workrin = 0
  65. 'You quit your job at the market and collect your papers.'
  66. act 'Leave':gt 'city_market', 'start'
  67. end
  68. end
  69. if workrin = 0 and (work = 0 or cheatVars['work'] = 1):
  70. nl
  71. 'A messily written ad hangs from one of the stalls. "Need female market stall staff. Paychecks big."'
  72. act 'Approach the owner of the ad':
  73. cla
  74. *clr
  75. 'Hi, my name is Arthur. I own many stalls here and I need a saleswoman. Want the job?'
  76. '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.'
  77. 'Government insist I have your papers, so it would be your main job.'
  78. act 'Leave':gt 'city_market', 'start'
  79. act 'Take the job':
  80. cla
  81. work = 1
  82. workrin = 1
  83. arturplan = 5000
  84. 'You give your papers to Arthur and he shakes your hand, welcoming you aboard.'
  85. act 'Leave':gt 'city_market', 'start'
  86. end
  87. end
  88. end
  89. act 'Go to the book tray':
  90. cls
  91. minut += 15
  92. gs'stat'
  93. '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.'
  94. if money >= 350:
  95. act 'Buy the fantasy book':
  96. cls
  97. minut += 15
  98. money -= 350
  99. f_book += 1
  100. gs'stat'
  101. 'You buy the fantasy book for 350 <b>₽</b>.'
  102. act 'Leave':gt'city_market','start'
  103. end
  104. end
  105. if money >= 350:
  106. act 'Buy the science fiction book':
  107. cls
  108. minut += 15
  109. money -= 350
  110. f_book += 1
  111. gs'stat'
  112. 'You buy the science fiction book 350 <b>₽</b>.'
  113. act 'Leave':gt'city_market','start'
  114. end
  115. end
  116. if money >= 350:
  117. act 'Buy a romance novel':
  118. cls
  119. minut += 15
  120. money -= 350
  121. w_book += 1
  122. gs'stat'
  123. 'You buy a romance novel for 350 <b>₽</b>.'
  124. act 'Leave':gt'city_market','start'
  125. end
  126. end
  127. act 'Leave':gt'city_market','start'
  128. end
  129. act 'View clothing':
  130. cla
  131. minut += 5
  132. gt 'city_market', 'clo'
  133. end
  134. end
  135. if $ARGS[0] = 'clo':
  136. $loc_arg = 'clo'
  137. $loc = 'city_market'
  138. cls
  139. gs'stat'
  140. gs 'themes', 'indoors'
  141. '<center><b><font color="maroon">Clothes.</font></b></center>'
  142. 'You inspect the cheap clothing the stall has to offer.'
  143. gs 'clothing_QV', 'shop_filter_header'
  144. gs 'clothing', 'totals', 'market_outfits'
  145. act 'Return':
  146. cla
  147. minut += 5
  148. gt 'city_market', 'start'
  149. end
  150. !!To filter just this set
  151. clo_i = 0
  152. :loopmarket_outfits_filter
  153. i = 1
  154. :loopmarket_outfits
  155. if market_outfits[i] = 0:
  156. gs 'clothing_attributes', 'market_outfits', i
  157. gs 'clothing_QV', 'shop_filter'
  158. !!sort by filter
  159. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  160. 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>'
  161. end
  162. end
  163. i += 1
  164. if i <= total:jump 'loopmarket_outfits'
  165. clo_i += 1
  166. if clothingfilter['quality'] = 0 and clo_i <= 7:
  167. jump 'loopmarket_outfits_filter'
  168. elseif clothingfilter['inhibition'] = 0 and clo_i <= 50:
  169. jump 'loopmarket_outfits_filter'
  170. end
  171. end
  172. if $ARGS[0] = 'marketclo':
  173. cla
  174. if market_outfits[i] ! 0:
  175. msg 'You already own these clothes.'
  176. gt 'city_market', 'clo'
  177. end
  178. gt 'clothing', 'view_clothing_item', 'market_outfits',i, 750, 'shop'
  179. end
  180. if $ARGS[0] = 'wares':
  181. *clr & cla
  182. $loc_s = 'city_market'
  183. $args_s = 'wares'
  184. gs 'item_cart', 'shoppping_aisle', 'market'
  185. gs 'stat'
  186. gs 'themes', 'outdoors'
  187. $backimage= 'images/locations/city/residential/market/rinok.jpg'
  188. act 'Stop looking at the wares': gt 'city_market', 'start'
  189. end
  190. if $ARGS[0] = 'tailor':
  191. CLOSE ALL
  192. cls
  193. $loc = 'city_market'
  194. $loc_arg = 'tailor'
  195. $menu_loc = 'city_market'
  196. $menu_arg = 'tailor'
  197. menu_off = 0
  198. gs 'stat'
  199. 'A sign reads, "Jacob Solomonovich Schneersohn, tailor, 8:00-16:00 Monday - Friday"'
  200. act 'Speak to the tailor':
  201. cla
  202. *clr
  203. '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.'
  204. if portnoyQW > 0:
  205. '"So <<$pcs_nickname>>. Do you need any clothing adjusted?"'
  206. if money >= 500:
  207. act 'Resize the clothes you''re wearing (500 <b>₽</b>)':
  208. *clr & cla
  209. if CloStyle = 5 or $clothingworntype = 'danilovich_outfits':
  210. '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..."'
  211. elseif dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') = pcs_hips:
  212. '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."'
  213. elseif (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') > pcs_hips + 4) or (dyneval('RESULT = <<$clothingworntype>>_b[<<clothingwornnumber>>]') < pcs_hips - 4):
  214. '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."'
  215. else
  216. minut += 10
  217. money -= 500
  218. gs 'stat'
  219. dynamic '<<$clothingworntype>>_b[<<clothingwornnumber>>] = pcs_hips'
  220. 'You are handed a t-shirt and shorts as you undress and give the clothes to the tailor for adjustment.'
  221. 'Jacob quickly measures your waist and hips, then only takes a few minutes to adjust your outfit.'
  222. 'You are handed your clothes back and quickly get dressed. You''re pleased with the job that the tailor has done.'
  223. end
  224. act 'Continue': gt 'city_market', 'tailor'
  225. end
  226. act 'Take in different clothes': gt 'clothing', 'view_clothing_list', 'resize'
  227. act 'Take in all the clothes': gt 'tailor'
  228. end
  229. else
  230. '"Hello young lady. I am Jacob Solomonovich, but you can call me Yasha. And what is your name?"'
  231. act 'Tell him your name':
  232. cla
  233. portnoyQW = 1
  234. '"<<$pcs_nickname>>"'
  235. '"<<$pcs_nickname>>....What a pretty name. Come, sit here on this chair. How can I help you?"'
  236. act 'Ask him about your clothes':
  237. cla
  238. *clr
  239. minut += 15
  240. gs 'stat'
  241. '"Can you tailor my clothes to fit me better?"'
  242. '"Of course I can! Otherwise, what kind of tailor would I be? Here, let me see what you''re wearing."'
  243. 'He jumps up and nimbly removes the tape from his neck and begins to measure your chest, waist and hips.'
  244. '"I can adjust any clothing that doesn''t fit you for 500 <b>₽</b> per item."'
  245. act 'Continue': gt 'city_market', 'tailor'
  246. end
  247. end
  248. end
  249. act 'Leave': minut += 10 & gt 'city_residential'
  250. end
  251. end
  252. --- city_market ---------------------------------