shop_gm.qsrc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. # shop_gm
  2. !2022/03/12
  3. if $ARGS[0] = 'start':
  4. killvar 'clothingfilter'
  5. gs 'shortgs', 'setloc', 'shop_gm', 'start'
  6. $location_type = 'event'
  7. menu_off = 0
  8. gs 'stat'
  9. gs 'themes', 'indoors'
  10. '<center><b><font color="maroon">Welcome to G & M - Clothes for all your needs</font></b></center>'
  11. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/gandm/shop.jpg"</center>'
  12. 'G&M is not fancy, it''s certainly not high fashion but it''s cheap and has specific work and school wear.'
  13. act 'Leave the store':
  14. $shoplocation = ''
  15. if torg = 1:
  16. minut += 3
  17. gt 'city_mall'
  18. else
  19. gt 'pav_industrial'
  20. end
  21. end
  22. act 'Visit clothing department':
  23. cla
  24. menu_off = 1
  25. act 'Return': gt 'shop_gm', 'start'
  26. act 'View clothing': minut += 5 & gt 'shop_gm', 'clothes'
  27. act 'View dresses': minut += 5 & gt 'shop_gm', 'dresses'
  28. act 'View office wear': minut += 5 & gt 'shop_gm', 'office'
  29. act 'View maid outfits': minut += 5 & gt 'shop_gm', 'gm_maid'
  30. act 'View server uniforms': minut += 5 & gt 'shop_gm', 'gm_server'
  31. act 'View school uniforms': minut += 5 & gt 'shop_gm', 'school'
  32. end
  33. act 'View regular shoes': minut += 5 & gt 'shop_gm', 'shoes'
  34. act 'View panties': minut += 5 & gt 'shop_gm', 'panties'
  35. act 'View bras': minut += 5 & gt 'shop_gm', 'bras'
  36. act 'View purses': minut += 5 & gt 'shop_gm', 'purses'
  37. act 'View coats': minut += 5 & gt 'shop_gm', 'coats'
  38. end
  39. if $ARGS[0] = 'clothes':
  40. gs 'shortgs', 'setloc', 'shop_gm', 'clothes'
  41. menu_off = 0
  42. gs 'stat'
  43. '<center><b><font color="maroon">Viewing G&M outfits</font></b></center>'
  44. *nl
  45. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  46. gs 'clothing_QV', 'shop_filter_header'
  47. gs 'clothing', 'totals', 'gm_outfits'
  48. !!To filter just this set
  49. clo_i = 0
  50. :loopgm_outfits_filter
  51. i = 1 + Clothingstock mod 3
  52. :loopgm_outfits
  53. if gm_outfits[i] = 0:
  54. gs 'clothing_attributes', 'gm_outfits', i
  55. gs 'clothing_QV', 'shop_filter'
  56. !!sort by filter
  57. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  58. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''gm_outfits''"><img src="images/pc/items/gm/outfits/<<i>>.jpg" height="250" /></a>'
  59. end
  60. end
  61. i += 3
  62. if i <= total: jump 'loopgm_outfits'
  63. clo_i += 1
  64. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  65. jump 'loopgm_outfits_filter'
  66. end
  67. end
  68. if $ARGS[0] = 'gm_outfits':
  69. if gm_outfits[i] ! 0:
  70. msg 'You already own these clothes.'
  71. gt 'shop_gm', 'clothes'
  72. end
  73. gt 'clothing', 'view_clothing_item', 'gm_outfits', i, 1000, 'shop'
  74. end
  75. if $ARGS[0] = 'dresses':
  76. gs 'shortgs', 'setloc', 'shop_gm', 'dresses'
  77. menu_off = 0
  78. gs 'stat'
  79. '<center><b><font color="maroon">Viewing G&M dresses</font></b></center>'
  80. *nl
  81. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  82. gs 'clothing_QV', 'shop_filter_header'
  83. gs 'clothing', 'totals', 'gm_dress'
  84. !!To filter just this set
  85. clo_i = 0
  86. :loopgm_dress_filter
  87. i = 1 + (Clothingstock / 3) mod 4
  88. :loopgm_dress
  89. if gm_dress[i] = 0:
  90. gs 'clothing_attributes', 'gm_dress', i
  91. gs 'clothing_QV', 'shop_filter'
  92. !!sort by filter
  93. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  94. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''gm_dress''"><img src="images/pc/items/gm/dress/<<i>>.jpg" height="250" /></a>'
  95. end
  96. end
  97. i += 3
  98. if i <= total: jump 'loopgm_dress'
  99. clo_i += 1
  100. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  101. jump 'loopgm_dress_filter'
  102. end
  103. end
  104. if $ARGS[0] = 'gm_dress':
  105. if gm_dress[i] ! 0:
  106. msg 'You already own this dress.'
  107. gt 'shop_gm', 'dresses'
  108. end
  109. gt 'clothing', 'view_clothing_item', 'gm_dress', i, 1000, 'shop'
  110. end
  111. if $ARGS[0] = 'office':
  112. gs 'shortgs', 'setloc', 'shop_gm', 'office'
  113. menu_off = 0
  114. gs 'stat'
  115. '<center><b><font color="maroon">Viewing G&M office clothing</font></b></center>'
  116. *nl
  117. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  118. gs 'clothing_QV', 'shop_filter_header'
  119. gs 'clothing', 'totals', 'gm_office'
  120. !!To filter just this set
  121. clo_i = 0
  122. :loopoffice_filter
  123. i = 1
  124. :loopoffice
  125. if gm_office[i] = 0:
  126. gs 'clothing_attributes', 'gm_office', i
  127. gs 'clothing_QV', 'shop_filter'
  128. !!sort by filter
  129. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  130. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''officeclo''"><img src="images/pc/items/gm/office/<<i>>.jpg" height="250" /></a>'
  131. end
  132. end
  133. i += 1
  134. if i <= total: jump 'loopoffice'
  135. clo_i += 1
  136. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  137. jump 'loopoffice_filter'
  138. end
  139. end
  140. if $ARGS[0] = 'officeclo':
  141. if gm_office[i] ! 0:
  142. msg 'You already own these clothes.'
  143. gt 'shop_gm', 'office'
  144. end
  145. gt 'clothing', 'view_clothing_item', 'gm_office', i, 2000, 'shop'
  146. end
  147. if $ARGS[0] = 'gm_maid':
  148. gs 'shortgs', 'setloc', 'shop_gm', 'gm_maid'
  149. menu_off = 0
  150. gs 'stat'
  151. '<center><b><font color="maroon">Viewing G&M maid outfits</font></b></center>'
  152. *nl
  153. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  154. gs 'clothing_QV', 'shop_filter_header'
  155. gs 'clothing', 'totals', 'gm_maid'
  156. !!To filter just this set
  157. clo_i = 0
  158. :loopgm_maid_filter
  159. i = 1 + (Clothingstock / 12) mod 2
  160. :loopgm_maid
  161. if gm_maid[i] = 0:
  162. gs 'clothing_attributes', 'gm_maid', i
  163. gs 'clothing_QV', 'shop_filter'
  164. !!sort by filter
  165. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  166. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''gm_maidclo''"><img src="images/pc/items/gm/maid/<<i>>.jpg" height="250" /></a>'
  167. end
  168. end
  169. i += 2
  170. if i <= total: jump 'loopgm_maid'
  171. clo_i += 1
  172. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  173. jump 'loopgm_maid_filter'
  174. end
  175. end
  176. if $ARGS[0] = 'gm_maidclo': gt 'clothing', 'view_clothing_item', 'gm_maid', i, 2000, 'shop'
  177. if $ARGS[0] = 'gm_server':
  178. gs 'shortgs', 'setloc', 'shop_gm', 'gm_server'
  179. menu_off = 0
  180. gs 'stat'
  181. '<center><b><font color="maroon">Viewing G&M server uniforms</font></b></center>'
  182. *nl
  183. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  184. gs 'clothing_QV', 'shop_filter_header'
  185. gs 'clothing', 'totals', 'gm_server'
  186. !!To filter just this set
  187. clo_i = 0
  188. :loopgm_server_filter
  189. i = 1 + (Clothingstock / 6) mod 2
  190. :loopgm_server
  191. if gm_server[i] = 0:
  192. gs 'clothing_attributes', 'gm_server', i
  193. gs 'clothing_QV', 'shop_filter'
  194. !!sort by filter
  195. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  196. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''gm_serverclo''"><img src="images/pc/items/gm/server/<<i>>.jpg" height="250" /></a>'
  197. end
  198. end
  199. i += 2
  200. if i <= total: jump 'loopgm_server'
  201. clo_i += 1
  202. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  203. jump 'loopgm_server_filter'
  204. end
  205. end
  206. if $ARGS[0] = 'gm_serverclo': gt 'clothing', 'view_clothing_item', 'gm_server', i, 2000, 'shop'
  207. if $ARGS[0] = 'school':
  208. gs 'shortgs', 'setloc', 'shop_gm', 'school'
  209. menu_off = 0
  210. gs 'stat'
  211. '<center><b><font color="maroon">Viewing G&M school uniforms</font></b></center>'
  212. *nl
  213. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  214. gs 'clothing_QV', 'shop_filter_header'
  215. gs 'clothing', 'totals', 'gm_school'
  216. !!To filter just this set
  217. clo_i = 0
  218. :loopgm_school_filter
  219. i = 1 + (Clothingstock / 8) mod 3
  220. :loopschool
  221. if gm_school[i] = 0:
  222. gs 'clothing_attributes', 'gm_school', i
  223. gs 'clothing_QV', 'shop_filter'
  224. !!sort by filter
  225. if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
  226. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''schoolclo''"><img src="images/pc/items/gm/school/<<i>>.jpg" height="250" /></a>'
  227. end
  228. end
  229. i += 3
  230. if i = 6: i = 9
  231. if i <= total: jump 'loopschool'
  232. clo_i += 1
  233. if clothingfilter['quality'] = 0 and clo_i <= 7 or clothingfilter['inhibition'] = 0 and clo_i <= 50:
  234. jump 'loopgm_school_filter'
  235. end
  236. end
  237. if $ARGS[0] = 'schoolclo':
  238. if gm_school[i] ! 0:
  239. msg 'You already own these clothes.'
  240. gt 'shop_gm', 'school'
  241. end
  242. gt 'clothing', 'view_clothing_item', 'gm_school', i, 1500, 'shop'
  243. end
  244. if $ARGS[0] = 'shoes':
  245. gs 'shortgs', 'setloc', 'shop_gm', 'shoes'
  246. menu_off = 0
  247. gs 'stat'
  248. '<center><b><font color="maroon">Viewing G&M shoes</font></b></center>'
  249. *nl
  250. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  251. gs 'shoes', 'shop_filter_header'
  252. gs 'shoes', 'totals', 'gm_shoes'
  253. !!To filter just this set
  254. clo_i = 0
  255. :loopshoequality_filter
  256. i = 1
  257. :loopgm_shoes
  258. if gm_shoe[i] = 0:
  259. gs 'shoe_attributes', 'gm', i
  260. gs 'shoes', 'shoe_filter'
  261. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  262. if Shofilter['inc'] = 1 and Shofilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''shoes2''"><img src="images/pc/items/gm/shoes/<<i>>.jpg" height="250" /></a>'
  263. end
  264. end
  265. i += 1
  266. if i <= total: jump 'loopgm_shoes'
  267. clo_i += 1
  268. if Shofilter['quality'] = 0 and clo_i <= 7:
  269. jump 'loopshoequality_filter'
  270. end
  271. end
  272. if $ARGS[0] = 'shoes2': gt 'shoes', 'view_shoe_item', 'shop', 'gm', i, 700
  273. if $ARGS[0] = 'coats':
  274. gs 'shortgs', 'setloc', 'shop_gm', 'coats'
  275. menu_off = 0
  276. gs 'stat'
  277. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  278. gs 'coats', 'totals', 'gm_coats'
  279. i = 1
  280. :loopcoats
  281. if gm_coats[i] = 0:*p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''coats2''"><img src="images/pc/items/gm/coats/<<i>>.jpg" height="250" /></a>'
  282. i += 1
  283. if i <= total: jump 'loopcoats'
  284. end
  285. if $ARGS[0] = 'coats2': gt 'coats', 'view_coat_item', 'shop', 'gm', i, 1500
  286. if $ARGS[0] = 'purses':
  287. gs 'shortgs', 'setloc', 'shop_gm', 'purses'
  288. menu_off = 0
  289. gs 'stat'
  290. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  291. gs 'purses', 'totals', 'gm_purses'
  292. i = 1
  293. :looppurses
  294. if gm_purses[i] = 0:*p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''purses2''"><img src="images/pc/items/gm/purses/<<i>>.jpg" height="250" /></a>'
  295. i += 1
  296. if i <= total: jump 'looppurses'
  297. end
  298. if $ARGS[0] = 'purses2': gt 'purses', 'view_purse_item', 'shop', 'gm',i, 1500
  299. if $ARGS[0] = 'panties':
  300. gs 'shortgs', 'setloc', 'shop_gm', 'panties'
  301. menu_off = 0
  302. gs 'stat'
  303. '<center><b><font color="maroon">Viewing G&M panties</font></b></center>'
  304. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  305. gs 'panties', 'shop_filter_header'
  306. gs 'panties', 'totals', 'gm_panties'
  307. !!To filter just this set
  308. clo_i = 0
  309. :looppantyquality_filter
  310. i = 1
  311. :looppanties
  312. if gm_panties[i] = 0:
  313. gs 'underwear_attributes', 'gm_panties', i
  314. if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
  315. *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''panties2''"><img src="images/pc/items/gm/panties/<<i>>.jpg" height="150" /></a>'
  316. end
  317. end
  318. i += 1
  319. if i = 7 or i = 9 or i = 21 or i = 37: i += 1
  320. if i <= 37: jump 'looppanties'
  321. clo_i += 1
  322. if clothingfilter['quality'] = 0 and clo_i <= 6:
  323. jump 'looppantyquality_filter'
  324. end
  325. end
  326. if $ARGS[0] = 'panties2': gt 'panties', 'view_panty_item', 'shop', 'gm', i, 300
  327. if $ARGS[0] = 'bras':
  328. gs 'shortgs', 'setloc', 'shop_gm', 'bras'
  329. menu_off = 0
  330. gs 'stat'
  331. '<center><b><font color="maroon">Viewing G&M bras</font></b></center>'
  332. *nl
  333. act 'Return': minut += 1 & gt 'shop_gm', 'start'
  334. gs 'bras', 'shop_filter_header'
  335. gs 'bras', 'totals', 'gm_bras'
  336. !!To filter just this set
  337. clo_i = 0
  338. :loopbraquality_filter
  339. i = 1
  340. :loopgm_bras
  341. if gm_bras[i] = 0:
  342. gs 'underwear_attributes', 'gm_bras', i
  343. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  344. *p '<a href="exec: i = <<i>> & gt ''shop_gm'', ''bras2''"><img src="images/pc/items/gm/bras/<<i>>.jpg" height="150" /></a>'
  345. end
  346. end
  347. i += 1
  348. if i = 11 or i = 16 or i = 18: i += 1
  349. if i <= total: jump 'loopgm_bras'
  350. clo_i += 1
  351. if clothingfilter['quality'] = 0 and clo_i <= 6:
  352. jump 'loopbraquality_filter'
  353. end
  354. end
  355. if $ARGS[0] = 'bras2': gt 'bras', 'view_bra_item', 'shop', 'gm', i, 300
  356. --- shop_gm ---------------------------------