sportShop.qsrc 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. # sportShop
  2. !2022/06/20
  3. if $ARGS[0] = 'start' or $ARGS[0] = '':
  4. killvar 'clothingfilter'
  5. $location_type = 'public_indoors'
  6. cls
  7. menu_off = 1
  8. gs 'stat'
  9. gs 'themes', 'indoors'
  10. '<center><b><font color="maroon">Danilovich sporting goods</font></b></center>'
  11. '<center><img src="images/locations/city/citycenter/mall/sportshop/sportshop.jpg"></center>'
  12. *nl
  13. 'As soon as you enter, a high energy song with a thumping baseline fills your eardrums, making you feel pumped and awake. The store is sleek and professional, the walls and floors advertising all different kinds of sporting equipment and attire. The room is filled with beautifully fit people shopping, their bodies varying from big and muscular to lean and trim. If they don''t inspire you to want to work out, the posters advertising past and present famous athletes are motivating as hell.'
  14. *nl
  15. if refillable_bottle = 0 and money >= 1000 and bag > 0:
  16. 'You could buy a high-quality <a href="exec:minut += 5 & money -= 1000 & refillable_bottle = 1 & gt ''sportShop'', ''start''">water bottle (1000 <b>₽</b>)</a> that you can carry around in your purse.'
  17. elseif refillable_bottle = 0 and (money < 1000 or bag = 0):
  18. 'The shop sells high-quality water bottles for 1,000 <b>₽</b>. You could carry one around in '+iif(bag > 0, 'your', 'a')+' purse.'
  19. end
  20. act 'Leave':minut += 3 & gt 'torgcentr'
  21. act 'View sports clothing':minut += 5 & gt 'sportshop', 'clo'
  22. act 'View sports bras':minut += 5 & gt 'sportshop', 'bras'
  23. act 'View sports panties':minut += 5 & gt 'sportshop', 'panties'
  24. act 'View exercise shoes':minut += 5 & gt 'sportshop', 'shoes'
  25. act 'View swimwear':minut += 5 & gt 'sportshop', 'swim'
  26. act 'View purses': minut += 5 & gt 'sportshop', 'purses'
  27. act 'View coats': minut += 5 & gt 'sportshop', 'coats'
  28. !! output from purchase
  29. if $message ! '':
  30. $message
  31. killvar '$message'
  32. else
  33. 'A tall muscular man stands next to the counter, showing a perfect smile. "Welcome, do you need any assistance in selecting equipment or tips how to improve your workout?"'
  34. end
  35. *pl '<center><table align="center" width=80%>'
  36. *p func ('$single_stock_item', 1, 'Skipping Rope', 500, 'skak', 'sportshop', 'start')
  37. *p func ('$single_stock_item', 1, 'Hula Hoop', 1500, 'obruch', 'sportshop', 'start')
  38. *P func ('$single_stock_item', 1, 'Book on Yoga', 1500, 'bookyog', 'sportshop', 'start')
  39. *p func ('$single_stock_item', 1, 'Ice Skates', 3000, 'konki', 'sportshop', 'start')
  40. *p func ('$single_stock_item', 1, 'Skis', 4000, 'pcs_ski_owned', 'sportshop', 'start')
  41. *p func ('$single_stock_item', 1, 'Refillable Water Bottle', 1000, 'refillable_bottle', 'sportshop', 'start')
  42. *p '</table></center>'
  43. end
  44. if $ARGS[0] = 'clo':
  45. $loc_arg = 'clo'
  46. $loc = 'sportShop'
  47. cls
  48. gs'stat'
  49. '<center><b><font color="maroon">Sportswear - one size fits all</font></b></center>'
  50. *nl
  51. gs 'clothing_QV', 'shop_filter_header'
  52. act 'Return':
  53. cla
  54. minut += 1
  55. gt 'sportshop', 'start'
  56. end
  57. !!To filter just this set
  58. clo_i = 0
  59. :loopdanilovich_outfits_filter
  60. if Clothingstock > 16:
  61. i = 1
  62. elseif Clothingstock > 8:
  63. i = 2
  64. else
  65. i = 3
  66. end
  67. :loopdanilovich_outfits
  68. if danilovich_outfits[i] = 0:
  69. gs 'clothing_attributes', 'danilovich_outfits', i
  70. gs 'clothing_QV', 'shop_filter'
  71. !!sort by filter
  72. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  73. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''sportshop'', ''danilovich''"><img src="images/pc/items/danilovich/outfits/<<i>>.jpg" height="250" /></a>'
  74. end
  75. end
  76. i += 3
  77. if i <= 160:jump 'loopdanilovich_outfits'
  78. clo_i += 1
  79. if clothingfilter['quality'] = 0 and clo_i <= 7:
  80. jump 'loopdanilovich_outfits_filter'
  81. elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
  82. jump 'loopdanilovich_outfits_filter'
  83. end
  84. end
  85. if $ARGS[0] = 'danilovich': gt 'clothing', 'view_clothing_item', 'danilovich_outfits',i, 2000, 'shop'
  86. if $ARGS[0] = 'shoes':
  87. $loc_arg = 'shoes'
  88. $loc = 'sportShop'
  89. cls
  90. gs'stat'
  91. '<center><b><font color="maroon">Viewing G&M shoes</font></b></center>'
  92. *nl
  93. gs 'shoes', 'shop_filter_header'
  94. act 'Return':
  95. cla
  96. minut += 1
  97. gt 'sportShop', 'start'
  98. end
  99. !!To filter just this set
  100. clo_i = 0
  101. :loopshoequality_filter
  102. i = 1
  103. :loopdanilovich_shoes
  104. if danilovich_shoe[i] = 0:
  105. gs 'shoe_attributes', 'danilovich', i
  106. gs 'shoes', 'shoe_filter'
  107. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  108. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  109. *p '<a href="exec: i = <<i>> & gt ''sportShop'', ''training_shoes''"><img src="images/pc/items/danilovich/shoes/<<i>>.jpg" height="250" /></a>'
  110. end
  111. end
  112. end
  113. i += 1
  114. if i <= 40:jump 'loopdanilovich_shoes'
  115. clo_i += 1
  116. if Shofilter['quality'] = 0 and clo_i <= 7:
  117. jump 'loopshoequality_filter'
  118. end
  119. end
  120. if $ARGS[0] = 'training_shoes': gt 'shoes', 'view_shoe_item', 'shop', 'danilovich',i, 1500
  121. if $ARGS[0] = 'swim':
  122. $loc_arg = 'swim'
  123. $loc = 'sportShop'
  124. cls
  125. gs'stat'
  126. '<center><b><font color="maroon">Swimwear - one size fits all</font></b></center>'
  127. *nl
  128. gs 'clothing_QV', 'shop_filter_header'
  129. act 'Return':
  130. cla
  131. minut += 1
  132. gt 'sportshop', 'start'
  133. end
  134. !!To filter just this set
  135. clo_i = 0
  136. :loopswim_filter
  137. !!4 is in he supermarket, so skipped
  138. if Clothingstock > 11:
  139. i = 1
  140. else
  141. i = 2
  142. end
  143. :loopswim
  144. if danilovich_swimsuit[i] = 0:
  145. gs 'clothing_attributes', 'danilovich_swimsuit', i
  146. gs 'clothing_QV', 'shop_filter'
  147. !!sort by filter
  148. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  149. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''sportshop'', ''swim1''"><img src="images/pc/items/danilovich/swimwear/<<i>>.jpg" height="250" /></a>'
  150. end
  151. end
  152. i += 3
  153. if i = 4: i += 2
  154. if i <= 30:jump 'loopswim'
  155. clo_i += 1
  156. if clothingfilter['quality'] = 0 and clo_i <= 7:
  157. jump 'loopswim_filter'
  158. elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
  159. jump 'loopswim_filter'
  160. end
  161. end
  162. if $ARGS[0] = 'swim1': gt 'clothing', 'view_clothing_item', 'danilovich_swimsuit',i, 1750, 'shop'
  163. if $ARGS[0] = 'panties':
  164. $loc_arg = 'panties'
  165. $loc = 'sportShop'
  166. cls
  167. gs'stat'
  168. gs 'panties', 'shop_filter_header'
  169. act 'Return':
  170. cla
  171. minut += 1
  172. gt 'sportShop', 'start'
  173. end
  174. !!To filter just this set
  175. clo_i = 0
  176. :looppantyquality_filter
  177. i = 1
  178. :loopdanilovich_panties
  179. if danilovich_panties[i] = 0:
  180. gs 'underwear_attributes', 'danilovich_panties', i
  181. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  182. *p '<a href="exec: i = <<i>> & gt ''sportShop'', ''panties2''"><img src="images/pc/items/danilovich/panties/<<i>>.jpg" height="150" /></a> '
  183. end
  184. end
  185. i += 1
  186. if i <= 8:jump 'loopdanilovich_panties'
  187. clo_i += 1
  188. if clothingfilter['quality'] = 0 and clo_i <= 6:
  189. jump 'looppantyquality_filter'
  190. end
  191. end
  192. if $ARGS[0] = 'panties2':
  193. cla
  194. if danilovich_panties[i] ! 0:
  195. msg 'You already own these panties.'
  196. gt 'sportShop', 'panties'
  197. end
  198. gt 'panties', 'view_panty_item', 'shop', 'danilovich',i, 1000
  199. end
  200. if $ARGS[0] = 'bras':
  201. $loc_arg = 'bras'
  202. $loc = 'sportShop'
  203. cls
  204. gs'stat'
  205. gs 'bras', 'shop_filter_header'
  206. act 'Return':
  207. cla
  208. minut += 1
  209. gt 'sportShop', 'start'
  210. end
  211. !!To filter just this set
  212. clo_i = 0
  213. :loopbraquality_filter
  214. i = 1
  215. :loopdanilovich_bras
  216. if danilovich_bras[i] = 0:
  217. gs 'underwear_attributes', 'danilovich_bras', i
  218. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  219. *p '<a href="exec: i = <<i>> & gt ''sportShop'', ''bras2''"><img src="images/pc/items/danilovich/bras/<<i>>.jpg" height="150" /></a> '
  220. end
  221. end
  222. i += 1
  223. if i <= 8:jump 'loopdanilovich_bras'
  224. clo_i += 1
  225. if clothingfilter['quality'] = 0 and clo_i <= 6:
  226. jump 'loopbraquality_filter'
  227. end
  228. end
  229. if $ARGS[0] = 'bras2':
  230. cla
  231. if danilovich_bras[i] ! 0:
  232. msg 'You already own this bra.'
  233. gt 'sportShop', 'bras'
  234. end
  235. gt 'bras', 'view_bra_item', 'shop', 'danilovich',i, 1000
  236. end
  237. if $ARGS[0] = 'purses':
  238. $loc_arg = 'purses'
  239. $loc = 'sportShop'
  240. menu_off = 1
  241. *clr & cla
  242. gs'stat'
  243. act 'Return':
  244. cla
  245. minut += 1
  246. gt 'sportShop', 'start'
  247. end
  248. i = 1
  249. :loopdanilovich_purses
  250. if danilovich_purses[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportShop'', ''purses2''"><img src="images/pc/items/danilovich/purses/<<i>>.jpg" height="150" /></a> '
  251. i += 1
  252. if i <= 60:jump 'loopdanilovich_purses'
  253. end
  254. if $ARGS[0] = 'purses2': gt 'purses', 'view_purse_item', 'shop', 'danilovich',i, 1500
  255. if $ARGS[0] = 'coats':
  256. $loc_arg = 'coats'
  257. $loc = 'sportShop'
  258. menu_off = 1
  259. *clr & cla
  260. gs'stat'
  261. act 'Return':
  262. cla
  263. minut += 1
  264. gt 'sportShop', 'start'
  265. end
  266. i = 1
  267. :loopdanilovich_coats
  268. if danilovich_coats[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportShop'', ''coats2''"><img src="images/pc/items/danilovich/coats/<<i>>.jpg" height="150" /></a> '
  269. i += 1
  270. if i <= 20:jump 'loopdanilovich_coats'
  271. end
  272. if $ARGS[0] = 'coats2': gt 'coats', 'view_coat_item', 'shop', 'danilovich',i, 1500
  273. --- sportShop ---------------------------------