sportShop.qsrc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. if skak = 0 and money >= 500:
  37. *p func ('$single_stock_item', 1, 'Skipping Rope', 500, 'skak', 'sportshop', 'start')
  38. end
  39. if obruch = 0 and money >= 1500:
  40. *p func ('$single_stock_item', 1, 'Hula Hoop', 1500, 'obruch', 'sportshop', 'start')
  41. end
  42. if bookYog = 0 and money >= 1500:
  43. *P func ('$single_stock_item', 1, 'Book on Yoga', 1500, 'bookyog', 'sportshop', 'start')
  44. end
  45. if konki = 0 and money >= 3000:
  46. *p func ('$single_stock_item', 1, 'Ice Skates', 3000, 'konki', 'sportshop', 'start')
  47. end
  48. if refillable_bottle = 0 and money >= 1000 and bag > 0:
  49. *p func ('$single_stock_item', 1, 'Refillable Water Bottle', 1000, 'refillable_bottle', 'sportshop', 'start')
  50. end
  51. *p '</table></center>'
  52. end
  53. if $ARGS[0] = 'clo':
  54. $loc_arg = 'clo'
  55. $loc = 'sportShop'
  56. cls
  57. gs'stat'
  58. '<center><b><font color="maroon">Sportswear - one size fits all</font></b></center>'
  59. *nl
  60. gs 'clothing_QV', 'shop_filter_header'
  61. act 'Return':
  62. cla
  63. minut += 1
  64. gt 'sportshop', 'start'
  65. end
  66. !!To filter just this set
  67. clo_i = 0
  68. :loopdanilovich_outfits_filter
  69. if Clothingstock > 16:
  70. i = 1
  71. elseif Clothingstock > 8:
  72. i = 2
  73. else
  74. i = 3
  75. end
  76. :loopdanilovich_outfits
  77. if danilovich_outfits[i] = 0:
  78. gs 'clothing_attributes', 'danilovich_outfits', i
  79. gs 'clothing_QV', 'shop_filter'
  80. !!sort by filter
  81. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  82. 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>'
  83. end
  84. end
  85. i += 3
  86. if i <= 160:jump 'loopdanilovich_outfits'
  87. clo_i += 1
  88. if clothingfilter['quality'] = 0 and clo_i <= 7:
  89. jump 'loopdanilovich_outfits_filter'
  90. elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
  91. jump 'loopdanilovich_outfits_filter'
  92. end
  93. end
  94. if $ARGS[0] = 'danilovich': gt 'clothing', 'view_clothing_item', 'danilovich_outfits',i, 2000, 'shop'
  95. if $ARGS[0] = 'shoes':
  96. $loc_arg = 'shoes'
  97. $loc = 'sportShop'
  98. cls
  99. gs'stat'
  100. act 'Return':
  101. cla
  102. minut += 1
  103. gt 'sportShop', 'start'
  104. end
  105. i = 1
  106. :loopdanilovich_shoes
  107. if danilovich_shoe[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportShop'', ''training_shoes''"><img src="images/pc/items/danilovich/shoes/<<i>>.jpg" height="250" /></a>'
  108. i += 1
  109. if i <= 40:jump 'loopdanilovich_shoes'
  110. end
  111. if $ARGS[0] = 'training_shoes': gt 'shoes', 'view_shoe_item', 'shop', 'danilovich',i, 1500
  112. if $ARGS[0] = 'swim':
  113. $loc_arg = 'swim'
  114. $loc = 'sportShop'
  115. cls
  116. gs'stat'
  117. '<center><b><font color="maroon">Swimwear - one size fits all</font></b></center>'
  118. *nl
  119. gs 'clothing_QV', 'shop_filter_header'
  120. act 'Return':
  121. cla
  122. minut += 1
  123. gt 'sportshop', 'start'
  124. end
  125. !!To filter just this set
  126. clo_i = 0
  127. :loopswim_filter
  128. !!4 is in he supermarket, so skipped
  129. if Clothingstock > 11:
  130. i = 1
  131. else
  132. i = 2
  133. end
  134. :loopswim
  135. if danilovich_swimsuit[i] = 0:
  136. gs 'clothing_attributes', 'danilovich_swimsuit', i
  137. gs 'clothing_QV', 'shop_filter'
  138. !!sort by filter
  139. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  140. 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>'
  141. end
  142. end
  143. i += 3
  144. if i = 4: i += 2
  145. if i <= 30:jump 'loopswim'
  146. clo_i += 1
  147. if clothingfilter['quality'] = 0 and clo_i <= 7:
  148. jump 'loopswim_filter'
  149. elseif clothingfilter['inhibition'] = 0 and clo_i <= 40:
  150. jump 'loopswim_filter'
  151. end
  152. end
  153. if $ARGS[0] = 'swim1': gt 'clothing', 'view_clothing_item', 'danilovich_swimsuit',i, 1750, 'shop'
  154. if $ARGS[0] = 'panties':
  155. $loc_arg = 'panties'
  156. $loc = 'sportShop'
  157. cls
  158. gs'stat'
  159. act 'Return':
  160. cla
  161. minut += 1
  162. gt 'sportShop', 'start'
  163. end
  164. i = 1
  165. :loopsport_panties
  166. if sport_panties[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportShop'', ''panties2''"><img src="images/pc/panties/sport/<<i>>.jpg" height="150" /></a> '
  167. i += 1
  168. if i <= 8:jump 'loopsport_panties'
  169. end
  170. if $ARGS[0] = 'panties2':
  171. cla
  172. if sport_panties[i] ! 0:
  173. msg 'You already own these panties.'
  174. gt 'sportShop', 'panties'
  175. end
  176. gt 'panties', 'view_panty_item', 'shop', 'sport',i, 1000
  177. end
  178. if $ARGS[0] = 'bras':
  179. $loc_arg = 'bras'
  180. $loc = 'sportShop'
  181. cls
  182. gs'stat'
  183. act 'Return':
  184. cla
  185. minut += 1
  186. gt 'sportShop', 'start'
  187. end
  188. i = 1
  189. :loopsport_bras
  190. if sport_bras[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportShop'', ''bras2''"><img src="images/pc/bras/sport/<<i>>.jpg" height="150" /></a> '
  191. i += 1
  192. if i <= 8:jump 'loopsport_bras'
  193. end
  194. if $ARGS[0] = 'bras2':
  195. cla
  196. if sport_bras[i] ! 0:
  197. msg 'You already own this bra.'
  198. gt 'sportShop', 'bras'
  199. end
  200. gt 'bras', 'view_bra_item', 'shop', 'sport',i, 1000
  201. end
  202. if $ARGS[0] = 'purses':
  203. $loc_arg = 'purses'
  204. $loc = 'sportShop'
  205. menu_off = 1
  206. *clr & cla
  207. gs'stat'
  208. act 'Return':
  209. cla
  210. minut += 1
  211. gt 'sportShop', 'start'
  212. end
  213. i = 1
  214. :loopdanilovich_purses
  215. 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> '
  216. i += 1
  217. if i <= 60:jump 'loopdanilovich_purses'
  218. end
  219. if $ARGS[0] = 'purses2': gt 'purses', 'view_purse_item', 'shop', 'danilovich',i, 1500
  220. if $ARGS[0] = 'coats':
  221. $loc_arg = 'coats'
  222. $loc = 'sportShop'
  223. menu_off = 1
  224. *clr & cla
  225. gs'stat'
  226. act 'Return':
  227. cla
  228. minut += 1
  229. gt 'sportShop', 'start'
  230. end
  231. i = 1
  232. :loopdanilovich_coats
  233. 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> '
  234. i += 1
  235. if i <= 20:jump 'loopdanilovich_coats'
  236. end
  237. if $ARGS[0] = 'coats2': gt 'coats', 'view_coat_item', 'shop', 'danilovich',i, 1500
  238. --- sportShop ---------------------------------