underwear_bodysuits.qsrc 17 KB

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