underwear_bodysuits.qsrc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. # underwear_bodysuits
  2. !!This is bodysuits file and that means underwear['type'] = 2
  3. !!bodysuits use the panty term in variables, this is intentional
  4. !!gs 'underwear_bodysuits', 'dispose'
  5. !!to remove bodysuits and destroy them
  6. !!gs 'underwear_bodysuits', 'remove'
  7. !!To remove bodysuits and store them
  8. !!gs 'underwear_bodysuits', 'wear'
  9. !!To wear bodysuits
  10. menu_off = 1
  11. if $ARGS[0] = 'totals':
  12. if $ARGS[1] = 'scandalicious_bodysuits':
  13. total = 100
  14. elseif $ARGS[1] = 'moncheri_bodysuits':
  15. total = 50
  16. elseif $ARGS[1] = 'salacious_bodysuits':
  17. total = 40
  18. elseif $ARGS[1] = 'lusso_bodysuits':
  19. total = 90
  20. end
  21. end
  22. if $ARGS[0] = 'view_bodysuit_list':
  23. !! ARGS 0 - view_bodysuit_list
  24. !! ARGS 1 - action type (clean, dirty, store, bathroom)
  25. if $pursepantytype ! '' or $pursebratype ! '':
  26. '<center><b>You put the '+iif($pursepantytype ! '','bodysuits','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</b></center><br>'
  27. killvar '$pursepantytype' & killvar 'pursepantynumber'
  28. killvar '$pursebratype' & killvar 'pursebranumber'
  29. end
  30. if $ARGS[1] ! 'bathroom':
  31. act 'Return': gt 'wardrobe', 'main'
  32. else
  33. act 'Return': gt $loc, $loc_arg
  34. end
  35. if $ARGS[1] = 'wardrobe':
  36. metka_bodysuits = 0
  37. end
  38. if $ARGS[1] = 'store':
  39. metka_bodysuits = 1
  40. end
  41. if $ARGS[1] = 'unwanted':
  42. metka_bodysuits = 2
  43. end
  44. gs 'underwear_bodysuits', 'filter_header'
  45. '<center><table border=1><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''wardrobe''">Draw</a></TH><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''unwanted''">Unwanted</a></TH></table></center>'
  46. if $pantyworntype ! 'none':act 'Remove bodysuits':gs 'underwear_bodysuits', 'remove' & gt 'underwear_bodysuits', 'view_bodysuit_list', $ARGS[1]
  47. if $ARGS[1] = 'store':
  48. cloc = 1
  49. end
  50. !! Check for no bodysuits
  51. j = 0
  52. if ARRSIZE('moncheri_bodysuits') > 0:
  53. j += 1
  54. if clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  55. end
  56. !!To filter just this set
  57. clo_i = 0
  58. :loopbodysuitquality_filter
  59. i = 1
  60. :loopmoncheribodysuits
  61. if moncheri_bodysuits_s[i] = metka_bodysuits and moncheri_bodysuits[i] = 1:
  62. gs 'underwear_attributes', 'moncheri_bodysuits', i
  63. gs 'underwear_bodysuits', 'bodysuit_filter'
  64. !!sort by filter
  65. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  66. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  67. *p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''moncheri'', <<i>>"><img src="images/pc/items/moncheri/bodysuits/<<i>>.jpg" height="150" /></a>'
  68. end
  69. end
  70. end
  71. i += 1
  72. if i <= ARRSIZE('moncheri_bodysuits'):jump 'loopmoncheribodysuits'
  73. if ARRSIZE('lusso_bodysuits') > 0:
  74. j += 1
  75. if clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
  76. end
  77. i = 1
  78. :looplussobodysuits
  79. if lusso_bodysuits_s[i] = metka_bodysuits and lusso_bodysuits[i] = 1:
  80. gs 'underwear_attributes', 'lusso_bodysuits', i
  81. gs 'underwear_bodysuits', 'bodysuit_filter'
  82. !!sort by filter
  83. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  84. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  85. *p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''lusso'', <<i>>"><img src="images/pc/items/lusso/bodysuits/<<i>>.jpg" height="150" /></a>'
  86. end
  87. end
  88. end
  89. i += 1
  90. if i <= ARRSIZE('lusso_bodysuits'):jump 'looplussobodysuits'
  91. if ARRSIZE('salacious_bodysuits') > 0:
  92. j += 1
  93. if clothingfilter['quality'] = 1:'<center><img src="images/locations/pushkin/exhibitshop/shop_name.png"></center>'
  94. end
  95. i = 1
  96. :loopsalaciousbodysuits
  97. if salacious_bodysuits_s[i] = metka_bodysuits and salacious_bodysuits[i] = 1:
  98. gs 'underwear_attributes', 'salacious_bodysuits', i
  99. gs 'underwear_bodysuits', 'bodysuit_filter'
  100. !!sort by filter
  101. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  102. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  103. *p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''salacious'', <<i>>"><img src="images/pc/items/salacious/bodysuits/<<i>>.jpg" height="150" /></a>'
  104. end
  105. end
  106. end
  107. i += 1
  108. if i <= ARRSIZE('salacious_bodysuits'):jump 'loopsalaciousbodysuits'
  109. if ARRSIZE('scandalicious_bodysuits') > 0:
  110. j += 1
  111. if clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/scandalicious.png"></center>'
  112. end
  113. i = 1
  114. :loopscandaliciousbodysuits
  115. if scandalicious_bodysuits_s[i] = metka_bodysuits and scandalicious_bodysuits[i] = 1:
  116. gs 'underwear_attributes', 'scandalicious_bodysuits', i
  117. gs 'underwear_bodysuits', 'bodysuit_filter'
  118. !!sort by filter
  119. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  120. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  121. *p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''scandalicious'', <<i>>"><img src="images/pc/items/scandalicious/bodysuits/<<i>>.jpg" height="150" /></a>'
  122. end
  123. end
  124. end
  125. i += 1
  126. if i <= ARRSIZE('scandalicious_bodysuits'):jump 'loopscandaliciousbodysuits'
  127. clo_i += 1
  128. if clothingfilter['quality'] = 0 and clo_i <= 7:
  129. jump 'loopbodysuitquality_filter'
  130. end
  131. if j = 0:
  132. *nl
  133. *nl
  134. *nl
  135. *nl
  136. *nl
  137. '<center><b><font color = red>You do not own any bodysuits</font></b></center>'
  138. end
  139. end
  140. if $ARGS[0] = 'view_bodysuit_item':
  141. !! ARGS 0 - view_bodysuit_item
  142. !! ARGS 1 = action type (draw, shop)
  143. !! ARGS 2 - bodysuit type
  144. !! ARGS 3 - bodysuit index
  145. !! ARGS 4 - price for shop
  146. cla
  147. '<center><img src="<<FUNC(''$pcs_outfit_image'', $ARGS[2]+''_bodysuits'', ARGS[3])>>"></center>'
  148. gs 'underwear_attributes', $ARGS[2]+'_bodysuits', ARGS[3]
  149. gs 'underwear_descriptions', 'bodysuit'
  150. if $ARGS[1] = 'shop':
  151. if dyneval('RESULT = <<$ARGS[2]>>_bodysuits[<<ARGS[3]>>]') = 1:
  152. 'You already own this item.'
  153. act 'Leave': gt $loc, $loc_arg
  154. else
  155. price = ARGS[4]
  156. 'Price: <<ARGS[4]>> <b>₽</b>'
  157. act 'Leave': gt $loc, $loc_arg
  158. if money >= price:
  159. act 'Buy (cash)':
  160. money -= price
  161. dynamic $ARGS[2] + '_bodysuits[<<ARGS[3]>>] = 1'
  162. dynamic $ARGS[2] + '_bodysuits_s[<<ARGS[3]>>] = 0'
  163. gt $loc, $loc_arg
  164. end
  165. else
  166. 'You do not have enough cash to buy this bodysuit.'
  167. end
  168. if karta >= price:
  169. act 'Buy (card)':
  170. karta -= price
  171. dynamic $ARGS[2] + '_bodysuits[<<ARGS[3]>>] = 1'
  172. dynamic $ARGS[2] + '_bodysuits_s[<<ARGS[3]>>] = 0'
  173. gt $loc, $loc_arg
  174. end
  175. else
  176. 'You do not have enough money in your bank to buy this bodysuit.'
  177. end
  178. end
  179. else
  180. if $ARGS[1] ! 'bathroom':
  181. if metka_bodysuits ! 1:$RESULT += 'Move this bodysuit to <a href="exec:gt ''underwear_bodysuits'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  182. if metka_bodysuits ! 0:$RESULT += 'Move this bodysuit to <a href="exec:gt ''underwear_bodysuits'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  183. if metka_bodysuits ! 2:$RESULT += 'Move this bodysuit to <a href="exec:gt ''underwear_bodysuits'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  184. end
  185. act 'Return':gt 'underwear_bodysuits', 'view_bodysuit_list', $ARGS[1]
  186. if $ARGS[1] = 'store':
  187. 'This bodysuit is in storage.'
  188. elseif $ARGS[1] = 'unwanted':
  189. 'This bodysuit is unwanted.'
  190. else
  191. if $bodysuitworntype = $ARGS[2] and bodysuitwornnumber = ARGS[3]:
  192. 'You are wearing this bodysuit.'
  193. else
  194. if metka_bodysuits = 0:
  195. act 'Wear':
  196. if CloPanties = 1 and CloBra = 1:
  197. msg'Your outfit is already replacing your underwear'
  198. else
  199. if hypnoPanty > 0:
  200. cla
  201. *clr
  202. 'You pick up the bodysuit and think about trying it on... but you don''t really like wearing bodysuits.'
  203. gs 'willpower', 'misc', 'resist', 'easy'
  204. will_cost += hypnoTime
  205. if will_cost <= pcs_willpwr:
  206. act 'Put it on anyways (<<will_cost>> Willpower)':
  207. gs 'willpower', 'pay', 'resist'
  208. gs 'stat'
  209. gs 'underwear_bodysuits', 'wear2', $ARGS[2], ARGS[3]
  210. if $ARGS[1] = 'wardrobe':
  211. gt 'wardrobe', 'main'
  212. else
  213. gt $loc, $loc_arg
  214. end
  215. end
  216. else
  217. act 'Put it on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  218. end
  219. act 'Back':
  220. gt 'wardrobe', 'main'
  221. end
  222. else
  223. gs 'underwear_bodysuits', 'wear2', $ARGS[2], ARGS[3]
  224. if $ARGS[1] = 'wardrobe':
  225. gt 'wardrobe', 'main'
  226. else
  227. gt $loc, $loc_arg
  228. end
  229. end
  230. end
  231. end
  232. end
  233. end
  234. end
  235. if $ARGS[1] ! 'store':
  236. act 'Move to storage': gt 'underwear_bodysuits', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  237. end
  238. if $ARGS[1] ! 'unwanted':
  239. act 'Move to unwanted': gt 'underwear_bodysuits', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  240. end
  241. if $ARGS[1] ! 'wardrobe':
  242. act 'Move to wardrobe': gt 'underwear_bodysuits', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  243. end
  244. act '<font color="red">Throw this bodysuit away</font>':
  245. dynamic '<<$ARGS[2]>>_bodysuits[<<ARGS[3]>>] = 0'
  246. gt 'wardrobe', 'main'
  247. end
  248. end
  249. end
  250. if $ARGS[0] = 'dest0':
  251. *clr
  252. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 0'
  253. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  254. end
  255. if $ARGS[0] = 'dest1':
  256. *clr
  257. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 1'
  258. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  259. end
  260. if $ARGS[0] = 'dest2':
  261. *clr
  262. dynamic '<<$ARGS[2]>>_bodysuits_s[<<ARGS[3]>>] = 2'
  263. gt 'underwear_bodysuits', 'view_bodysuit_item', $ARGS[1], $ARGS[2], ARGS[3]
  264. end
  265. if $ARGS[0] = 'sum':
  266. $t[0] = 'lusso'
  267. $t[1] = 'salacious'
  268. $t[2] = 'scandalicious'
  269. result = 0
  270. i = 0
  271. :loopsumbodysuits_i
  272. $temp = $t[i]
  273. j = 1
  274. :loopsumbodysuits_j
  275. $temp1 = '<<$temp>>_bodysuits[<<j>>]'
  276. $temp2 = '<<$temp>>_bodysuits_s[<<j>>]'
  277. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  278. j += 1
  279. if j <= dyneval('result = arrsize(''<<$temp>>_bodysuits'')') : jump 'loopsumbodysuits_j'
  280. i += 1
  281. if i <= arrsize('$t'): jump 'loopsumbodysuits_i'
  282. if $ARGS[1] = 'dresser': if $pantyworntype ! 'none' and result > 0: result -= 1
  283. killvar('t')
  284. killvar('temp')
  285. killvar('temp1')
  286. killvar('temp2')
  287. end
  288. if $ARGS[0] = 'dispose':
  289. dynamic $pantyworntype + '_bodysuit[<<pantywornnumber>>] = 0'
  290. $lastwornbodysuittype = 'none'
  291. lastwornbodysuitnumber = 0
  292. $bodysuitworntype = 'none'
  293. bodysuitwornnumber = 0
  294. $pantyworntype = 'none'
  295. $braworntype = 'none'
  296. PBraQuality = 0
  297. PBraMaterial = 0
  298. PBraType = 0
  299. PBraFun = 0
  300. PPanThinness = 0
  301. PBraThinness = 0
  302. PPanCoverFront = 4
  303. PPanCoverBack = 4
  304. PBraCover = 4
  305. gs 'clothing', 'outfit'
  306. end
  307. if $ARGS[0] = 'remove':
  308. $lastwornbodysuittype = $bodysuitworntype
  309. lastwornbodysuitnumber = bodysuitwornnumber
  310. $bodysuitworntype = 'none'
  311. bodysuitwornnumber = 0
  312. underwear['lastworntype'] = 2
  313. $pantyworntype = 'none'
  314. $braworntype = 'none'
  315. PBraQuality = 0
  316. PBraMaterial = 0
  317. PBraType = 0
  318. PBraFun = 0
  319. PPanThinness = 0
  320. PBraThinness = 0
  321. PPanCoverFront = 4
  322. PPanCoverBack = 4
  323. PBraCover = 4
  324. gs 'clothing', 'outfit'
  325. end
  326. if $ARGS[0] = 'wear':
  327. if $ARGS[1] = '':
  328. if dyneval('RESULT = <<$lastwornbodysuittype>>_bodysuits_s[<<lastwornbodysuitnumber>>]') = 0 and $lastwornbodysuittype ! '':
  329. $bodysuitworntype = $lastwornbodysuittype
  330. bodysuitwornnumber = lastwornbodysuitnumber
  331. gs 'underwear_bodysuits', 'wear2', $lastwornpantytype, lastwornpantynumber
  332. else
  333. underwear['type'] = 0
  334. $bodysuitworntype = 'none'
  335. bodysuitwornnumber = 0
  336. end
  337. else
  338. if dyneval('RESULT = <<$ARGS[1]>>_bodysuits_s[<<ARGS[2]>>]') = 0:
  339. gs 'underwear_bodysuits', 'wear2', $ARGS[1], ARGS[2]
  340. else
  341. underwear['type'] = 0
  342. $bodysuitworntype = 'none'
  343. bodysuitwornnumber = 0
  344. end
  345. end
  346. end
  347. if $ARGS[0] = 'wear2':
  348. !! ARGS 0 - action
  349. !! ARGS 1 - bodysuits type name
  350. !! ARGS 2 - bodysuits index
  351. !! removing bra and panties or bodysuit if worn
  352. if underwear['type'] = 0:
  353. gs 'panties', 'remove'
  354. gs 'bras', 'remove'
  355. else
  356. gs 'underwear_bodysuits', 'remove'
  357. end
  358. underwear['type'] = 2
  359. $bodysuitworntype = $ARGS[1]
  360. bodysuitwornnumber = ARGS[2]
  361. $pantyworntype = 'bodysuit'
  362. $braworntype = 'bodysuit'
  363. dynamic $ARGS[1] + '_bodysuits_w[<<ARGS[2]>>] = 1'
  364. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  365. dynamic '<<$ARGS[1]>>_bodysuits_s[<<ARGS[2]>>] = 0'
  366. PBraQuality = BraQuality
  367. PBraMaterial = BraMaterial
  368. PBraType = BraType
  369. PBraFun = BraFun
  370. PPanThinness = PanThinness
  371. PBraThinness = BraThinness
  372. PPanCoverFront = PanCoverFront
  373. PPanCoverBack = PanCoverBack
  374. PBraCover = BraCover
  375. gs 'clothing', 'outfit'
  376. end
  377. if $ARGS[0] = 'wear_last_worn':
  378. !!contingency
  379. if $lastwornbodysuittype = '': $lastwornbodysuittype = 'none'
  380. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype, lastwornbodysuitnumber
  381. end
  382. if $ARGS[0] = 'filter_header':
  383. !!Exclude filters
  384. $Headerstring = '<TD>'
  385. if clothingfilter['sport'] = 0:
  386. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 1 & clothingfilter[''sport_only''] = 0 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  387. else
  388. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 0 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  389. end
  390. !!sort by filters
  391. $Headerstring += '<TD>'
  392. if clothingfilter['number'] = 0:
  393. clothingfilter['quality'] = 1 & clothingfilter['inhibition'] = 1
  394. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  395. else
  396. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  397. end
  398. $Headerstring += '<TD>'
  399. if clothingfilter['quality'] = 0:
  400. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  401. else
  402. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  403. end
  404. !! Show only filers
  405. $Headerstring[1] = '<TD>'
  406. if clothingfilter['sport_only'] = 0:
  407. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 1 & clothingfilter[''sport''] = 0 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  408. else
  409. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 0 & gt ''underwear_bodysuits'', ''view_bodysuit_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  410. end
  411. $Headerstring[2] = '<TH>Include</TH><TH>Sort by</TH><TH></TH>'
  412. $Headerstring[3] = '<TH>Only show</TH>'
  413. '<center><table><<$Headerstring[2]>>'
  414. '<TR><border=1><<$Headerstring>>'
  415. '<TR><border=0><<$Headerstring[3]>>'
  416. '<TR><border=1><<$Headerstring[1]>></table></center>'
  417. end
  418. if $ARGS[0] = 'bodysuit_filter':
  419. !!Exclude filters
  420. clothingfilter['inc'] = 1
  421. !!filters, if inc set to 0 they will not display
  422. if clothingfilter['sport'] = 1 and BraFun = 2:
  423. clothingfilter['inc'] = 0
  424. end
  425. !!only filters
  426. clothingfilter['only'] = 0
  427. !!filters, if only set to 1 they will only display those set
  428. if clothingfilter['sport_only'] = 1 and BraFun = 2:
  429. clothingfilter['only'] = 1
  430. end
  431. if clothingfilter['only'] = clothingfilter['sport_only']:
  432. clothingfilter['only'] = 1
  433. else
  434. clothingfilter['only'] = 0
  435. end
  436. end
  437. if $ARGS[0] = 'shop_filter_header':
  438. !! sort by filters
  439. $Headerstring = '<TD>'
  440. if clothingfilter['number'] = 0:
  441. clothingfilter['quality'] = 1
  442. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  443. else
  444. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  445. end
  446. $Headerstring += '<TD>'
  447. if clothingfilter['quality'] = 0:
  448. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  449. else
  450. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  451. end
  452. $Headerstring[2] = '<TH>Sort by</TH>'
  453. '<center><table><<$Headerstring[2]>>'
  454. '<TR><border=1><<$Headerstring>></table></center>'
  455. end
  456. if $ARGS[0] = 'shop_filter':
  457. end
  458. --- underwear_bodysuits ---------------------------------