shoes.qsrc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. # shoes
  2. !!This is the main file for shoes, like clothes but for your feet.
  3. $shoe_list_line = {
  4. !! a single line in a shoe list (shoe rack, etc)
  5. !! ARGS 0 - action type (shoe rack, sell, store, forsale)
  6. !! ARGS 1 - shoe type
  7. !! ARGS 2 - shoe index
  8. gs 'themes', 'clothing'
  9. $RESULT = '<TR bgcolor='+$temp_bcolor+'>'
  10. if Enable_clothwidth > 0:
  11. shoe_temp = Enable_clothwidth - 1
  12. else
  13. shoe_temp = 75 & !shoe widdefault to 75
  14. end
  15. $RESULT +='<TD><a href="exec:gt ''shoes'', ''view_shoe_item'', ''wardrobe'', ''<<$ARGS[1]>>'', <<ARGS[2]>>"><img src="<<FUNC(''$shoe_image'', $ARGS[1], ARGS[2])>>" width="<<shoe_temp>>"></a></TD>'
  16. killvar 'shoe_temp'
  17. gs 'shoe_attributes', $ARGS[1], ARGS[2]
  18. $RESULT += '<TD><<FUNC(''$shoe_description'', $ARGS[1])>> <<ARGS[2]>></TD>'
  19. $RESULT += '<TD><<FUNC(''$shoe_description2'', $ARGS[1])>></TD>'
  20. if ShoStyle = 2:
  21. $RESULT += '<TD>Yes</TD>'
  22. else
  23. $RESULT += '<TD>No</TD>'
  24. end
  25. if ShoStyle = 1:
  26. $RESULT += '<TD>Yes</TD>'
  27. else
  28. $RESULT += '<TD>No</TD>'
  29. end
  30. $RESULT += '<TD><a href="exec:gt ''shoes'', ''view_shoe_item'', ''wardrobe'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a></TD>'
  31. $RESULT += '<TD>'
  32. if sloc ! 1:$RESULT += ' <a href="exec:gt ''shoes'', ''dest1'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Storage</a>'
  33. if sloc ! 0:$RESULT += ' <a href="exec:gt ''shoes'', ''dest0'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Wardrobe</a>'
  34. if sloc ! 2:$RESULT += ' <a href="exec:gt ''shoes'', ''dest2'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Unwanted</a>'
  35. $RESULT += '</TD>'
  36. }
  37. if $ARGS[0] = 'dest0':
  38. *clr
  39. dynamic '<<$ARGS[2]>>_shoe_s[<<ARGS[3]>>] = 0'
  40. gt 'shoes', 'view_shoe_list', $ARGS[1]
  41. end
  42. if $ARGS[0] = 'dest1':
  43. *clr
  44. dynamic '<<$ARGS[2]>>_shoe_s[<<ARGS[3]>>] = 1'
  45. gt 'shoes', 'view_shoe_list', $ARGS[1]
  46. end
  47. if $ARGS[0] = 'dest2':
  48. *clr
  49. dynamic '<<$ARGS[2]>>_shoe_s[<<ARGS[3]>>] = 2'
  50. gt 'shoes', 'view_shoe_list', $ARGS[1]
  51. end
  52. if $ARGS[0] = 'view_shoe_list':
  53. !! ARGS 0 - view_shoe_list
  54. !! ARGS 1 - action type (wardrobe, storage, unwanted, sell)
  55. !! ARGS 2 - brothel flag (brothel)
  56. $regularwornshoetype = ''
  57. act 'Return':gt 'wardrobe', 'main'
  58. if $ARGS[1] ! 'sell' :'<center><table border=1><TH><a href="exec:gt ''shoes'', ''view_shoe_list'', ''wardrobe''">Wardrobe </a></TH><TH><a href="exec:gt ''shoes'', ''view_shoe_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''shoes'', ''view_shoe_list'', ''unwanted''">Unwanted</a></TH></table></center>'
  59. if $ARGS[1] ! 'sell' :
  60. '<center><b>Select shoes to wear</b> *Bonus to attractiveness only applied in wardrobe and outdoors.</center>'
  61. if $shoeworntype ! 'none':
  62. act 'Remove shoes':
  63. gs 'shoes', 'strip'
  64. gt 'shoes', 'view_shoe_list', $ARGS[1]
  65. end
  66. end
  67. end
  68. if $ARGS[1] = 'wardrobe':
  69. sloc = 0
  70. end
  71. if $ARGS[1] = 'store':
  72. sloc = 1
  73. end
  74. if $ARGS[1] = 'unwanted':
  75. sloc = 2
  76. end
  77. gs 'shoes', 'filter_header', 'store'
  78. '<center><table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Shoe</TH><TH>Description</TH><TH>Bimbo</TH><TH>Stripper</TH><TH>Actions</TH>'
  79. !!To filter just this set
  80. clo_i = 0
  81. :loopshoequality_filter
  82. i = 1
  83. :loopmoncheri_shoe
  84. if moncheri_shoe_s[i] = sloc and moncheri_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  85. gs 'shoe_attributes', 'moncheri', i
  86. gs 'shoes', 'shoe_filter'
  87. !!sort by filter
  88. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  89. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  90. *P dyneval($shoe_list_line, $ARGS[1], 'moncheri', i)
  91. end
  92. end
  93. end
  94. i += 1
  95. if i <= ARRSIZE('moncheri_shoe'):jump 'loopmoncheri_shoe'
  96. i = 1
  97. :loopcats_shoe
  98. if cats_shoe_s[i] = sloc and cats_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  99. gs 'shoe_attributes', 'cats', i
  100. gs 'shoes', 'shoe_filter'
  101. !!sort by filter
  102. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  103. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  104. *P dyneval($shoe_list_line, $ARGS[1], 'cats', i)
  105. end
  106. end
  107. end
  108. i += 1
  109. if i <= ARRSIZE('cats_shoe'):jump 'loopcats_shoe'
  110. i = 1
  111. :loopbomba_shoe
  112. if bomba_shoe_s[i] = sloc and bomba_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  113. gs 'shoe_attributes', 'bomba', i
  114. gs 'shoes', 'shoe_filter'
  115. !!sort by filter
  116. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  117. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  118. *P dyneval($shoe_list_line, $ARGS[1], 'bomba', i)
  119. end
  120. end
  121. end
  122. i += 1
  123. if i <= ARRSIZE('bomba_shoe'):jump 'loopbomba_shoe'
  124. i = 1
  125. :loopdolls_shoe
  126. if dolls_shoe_s[i] = sloc and dolls_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  127. gs 'shoe_attributes', 'dolls', i
  128. gs 'shoes', 'shoe_filter'
  129. !!sort by filter
  130. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  131. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  132. *P dyneval($shoe_list_line, $ARGS[1], 'dolls', i)
  133. end
  134. end
  135. end
  136. i += 1
  137. if i <= ARRSIZE('dolls_shoe'):jump 'loopdolls_shoe'
  138. i = 1
  139. :loopgm_shoe
  140. if gm_shoe_s[i] = sloc and gm_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  141. gs 'shoe_attributes', 'gm', i
  142. gs 'shoes', 'shoe_filter'
  143. !!sort by filter
  144. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  145. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  146. *P dyneval($shoe_list_line, $ARGS[1], 'gm', i)
  147. end
  148. end
  149. end
  150. i += 1
  151. if i <= ARRSIZE('gm_shoe'):jump 'loopgm_shoe'
  152. i = 1
  153. :looperoto_shoe
  154. if eroto_shoe_s[i] = sloc and eroto_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  155. gs 'shoe_attributes', 'eroto', i
  156. gs 'shoes', 'shoe_filter'
  157. !!sort by filter
  158. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  159. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  160. *P dyneval($shoe_list_line, $ARGS[1], 'eroto', i)
  161. end
  162. end
  163. end
  164. i += 1
  165. if i <= ARRSIZE('eroto_shoe'):jump 'looperoto_shoe'
  166. i = 1
  167. :loopscandalicious_shoe
  168. if scandalicious_shoe_s[i] = sloc and scandalicious_shoe[i] = 1 and Shofilter['sport_only'] = 0:
  169. gs 'shoe_attributes', 'scandalicious', i
  170. gs 'shoes', 'shoe_filter'
  171. !!sort by filter
  172. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  173. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  174. *P dyneval($shoe_list_line, $ARGS[1], 'scandalicious', i)
  175. end
  176. end
  177. end
  178. i += 1
  179. if i <= ARRSIZE('scandalicious_shoe'):jump 'loopscandalicious_shoe'
  180. i = 1
  181. :loopdanilovich_shoe
  182. if danilovich_shoe_s[i] = sloc and danilovich_shoe[i] = 1 and Shofilter['sport'] = 0:
  183. gs 'shoe_attributes', 'danilovich', i
  184. gs 'shoes', 'shoe_filter'
  185. !!sort by filter
  186. if (Shofilter['quality'] = 0 and ShoQuality = clo_i) or Shofilter['number'] = 0:
  187. if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
  188. *P dyneval($shoe_list_line, $ARGS[1], 'danilovich', i)
  189. end
  190. end
  191. end
  192. i += 1
  193. if i <= ARRSIZE('danilovich_shoe'):jump 'loopdanilovich_shoe'
  194. clo_i += 1
  195. if Shofilter['quality'] = 0 and clo_i <= 7:
  196. jump 'loopshoequality_filter'
  197. end
  198. '</table></center>'
  199. killvar '$temp_bcolor'
  200. end
  201. if $ARGS[0] = 'moncheri':
  202. *P FUNC('$attributes_moncheri_shoes', $ARGS[0], ARGS[1])
  203. elseif $ARGS[0] = 'cats':
  204. *P FUNC('$attributes_cats_shoes', $ARGS[0], ARGS[1])
  205. elseif $ARGS[0] = 'bomba':
  206. *P FUNC('$attributes_bomba_shoes', $ARGS[0], ARGS[1])
  207. elseif $ARGS[0] = 'dolls':
  208. *P FUNC('$attributes_dolls_shoes', $ARGS[0], ARGS[1])
  209. elseif $ARGS[0] = 'gm':
  210. *P FUNC('$attributes_gm_shoes', $ARGS[0], ARGS[1])
  211. elseif $ARGS[0] = 'eroto':
  212. *P FUNC('$attributes_eroto_shoes', $ARGS[0], ARGS[1])
  213. elseif $ARGS[0] = 'scandalicious':
  214. *P FUNC('$attributes_scandalicious_shoes', $ARGS[0], ARGS[1])
  215. elseif $ARGS[0] = 'danilovich':
  216. *P FUNC('$attributes_danilovich_shoes', $ARGS[0], ARGS[1])
  217. end
  218. if $ARGS[0] = 'gym':
  219. if $regularwornshoetype = '':
  220. $regularwornshoetype = $shoeworntype
  221. regularwornshoenumber = shoewornnumber
  222. end
  223. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  224. i = 1
  225. :loopdanilovich_shoe2
  226. if danilovich_shoe[i] = 1 and danilovich_shoe_s[i] = 0:'<a href="exec:gt ''shoes'', ''view_shoe_item'', ''wardrobe'', ''danilovich'', <<i>>"><img src="images/pc/items/danilovich/shoes/<<i>>.jpg" height="250" /></a>'
  227. i += 1
  228. if i <= 40:jump 'loopdanilovich_shoe2'
  229. act 'Return': gt $loc, $loc_arg
  230. if $shoeworntype ! $regularwornshoetype: gs 'shoes', 'gym2'
  231. end
  232. if $ARGS[0] = 'gym2':
  233. act 'Put your regular shoes back on':
  234. $shoeworntype = $regularwornshoetype
  235. shoewornnumber = regularwornshoenumber
  236. killvar '$regularwornshoetype'
  237. killvar 'regularwornshoenumber'
  238. gt 'shoes', 'gym'
  239. end
  240. end
  241. if $ARGS[0] = 'view_shoe_item':
  242. !! ARGS 0 - view_shoe_item
  243. !! ARGS 1 = action type (wardrobe, shop, sell)
  244. !! ARGS 2 - shoes type
  245. !! ARGS 3 - shoes index
  246. !! ARGS 4 - price for shop
  247. cla
  248. '<center><img src="<<FUNC(''$shoe_image'', $ARGS[2], ARGS[3])>>"></center>'
  249. gs 'shoe_attributes', $ARGS[2], ARGS[3]
  250. FUNC('$shoe_description', $ARGS[2]) + '<<ARGS[3]>>'
  251. *nl
  252. FUNC('$shoe_description2', $ARGS[2])
  253. *nl
  254. if ShoStyle = 1:'This shoe is considered stripper style and most suitable for stripping or whoring.'
  255. if ShoStyle = 2:'This shoe is considered bimbo style and makes your mind drift toward sexual thoughts.'
  256. if ShoStyle = 3:'This shoe is considered alternative style and makes you feel more assertive and aggressive.'
  257. if $ARGS[1] = 'shop':
  258. if dyneval('RESULT = <<$ARGS[2]>>_shoe[<<ARGS[3]>>]') = 1:
  259. 'You already own these shoes.'
  260. act 'Leave': gt $loc, $loc_arg
  261. else
  262. price = ('<<ARGS[4]>>' * ((5 * ShoQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  263. price = price / 50 * 50
  264. 'Price: <<price>> <b>₽</b>'
  265. act 'Leave': gt $loc, $loc_arg
  266. if money >= Price:
  267. act 'Buy (cash)':
  268. h = 0
  269. if ShoStyle = 2:h = 10
  270. if ShoStyle = 5:h = 20
  271. h += (3 * ShoQuality)
  272. money -= price
  273. dynamic '<<$ARGS[2]>>_shoe[<<ARGS[3]>>] = 1'
  274. gt $loc, $loc_arg
  275. end
  276. else
  277. 'You do not have enough cash to buy these shoes.'
  278. end
  279. if karta + bankDebtLimit >= price:
  280. act 'Buy (card)':
  281. h = 0
  282. if ShoStyle = 2:h = 10
  283. if ShoStyle = 5:h = 20
  284. h += (3 * ShoQuality)
  285. karta -= price
  286. dynamic '<<$ARGS[2]>>_shoe[<<ARGS[3]>>] = 1'
  287. gt $loc, $loc_arg
  288. end
  289. end
  290. if karta + bankDebtLimit < Price and money < Price:
  291. 'You do not have enough money to buy these shoes.'
  292. end
  293. end
  294. elseif $ARGS[1] = 'wardrobe':
  295. if $regularwornshoetype = '':
  296. act 'Leave in closet':gt 'shoes', 'view_shoe_list', $ARGS[1]
  297. else
  298. act 'Return': gt 'shoes', 'gym'
  299. end
  300. act 'Wear':
  301. gs 'shoes', 'wear', $ARGS[2], ARGS[3]
  302. if $regularwornshoetype = '':
  303. gt 'wardrobe', 'main'
  304. else
  305. gt 'shoes', 'gym'
  306. end
  307. end
  308. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  309. act 'Return':gt 'shoes', 'view_shoe_list', $ARGS[1]
  310. end
  311. end
  312. if $ARGS[0] = 'strip':
  313. if $shoeworntype = 'none': exit
  314. $lastwornshoetype = $shoeworntype
  315. lastwornshoenumber = shoewornnumber
  316. $shoeworntype = 'none'
  317. shoewornnumber = 0
  318. ShoQuality = 0
  319. ShoHeels = 0
  320. ShoCut = 0
  321. ShoStyle = 0
  322. PShoQuality = 0
  323. PShoHeels = 0
  324. PShoCut = 0
  325. PShoStyle = 0
  326. end
  327. if $ARGS[0] = 'setup':
  328. end
  329. if $ARGS[0] = 'wear':
  330. !! ARGS 0 - action
  331. !! ARGS 1 - shoe type name / last worn
  332. !! ARGS 2 - shoe index
  333. if $ARGS[1] = 'last_worn':
  334. $shoeworntype = $lastwornshoetype
  335. shoewornnumber = lastwornshoenumber
  336. else
  337. $shoeworntype = $ARGS[1]
  338. shoewornnumber = ARGS[2]
  339. end
  340. if $shoeworntype = 'none':
  341. PShoQuality = 0
  342. PShoCut = 0
  343. PShoHeels = 0
  344. PShoStyle = 0
  345. exit
  346. end
  347. gs 'shoe_attributes', $ARGS[1], ARGS[2]
  348. dynamic '<<$ARGS[1]>>_shoe_s[<<ARGS[2]>>] = 0'
  349. PShoQuality = ShoQuality
  350. PShoHeels = ShoHeels
  351. PShoCut = ShoCut
  352. PShoStyle = ShoStyle
  353. !Calculations for shoes beauty, multiplied by natural beauty
  354. if PShoHeels > 0:
  355. if PShoHeels = 1:
  356. PXShoHeels = 25
  357. elseif PShoHeels = 2:
  358. PXShoHeels = 50
  359. elseif PShoHeels = 3:
  360. PXShoHeels = 100
  361. elseif PShoHeels = 4:
  362. PXShoHeels = 150
  363. elseif PShoHeels = 5:
  364. PXShoHeels = 200
  365. elseif PShoHeels = 6:
  366. PXShoHeels = 300
  367. elseif PShoHeels >= 7:
  368. PXShoHeels = 400
  369. end
  370. end
  371. end
  372. if $ARGS[0] = 'filter_header':
  373. !! exclude filters
  374. $Headerstring = '<TD>'
  375. if Shofilter['sport'] = 0:
  376. $Headerstring += '<a href="exec:Shofilter[''sport''] = 1 & Shofilter[''sport_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  377. else
  378. $Headerstring += '<a href="exec:Shofilter[''sport''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  379. end
  380. $Headerstring += '<TD>'
  381. if Shofilter['stripper'] = 0:
  382. $Headerstring += '<a href="exec:Shofilter[''stripper''] = 1 & Shofilter[''stripper_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/stripper.png"></a></TD>'
  383. else
  384. $Headerstring += '<a href="exec:Shofilter[''stripper''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/stripper_off.png"></a></TD>'
  385. end
  386. $Headerstring += '<TD>'
  387. if Shofilter['bimbo'] = 0:
  388. $Headerstring += '<a href="exec:Shofilter[''bimbo''] = 1 & Shofilter[''bimbo_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/bimbo.png"></a></TD>'
  389. else
  390. $Headerstring += '<a href="exec:Shofilter[''bimbo''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/bimbo_off.png"></a></TD>'
  391. end
  392. $Headerstring += '<TD>'
  393. if Shofilter['alternative'] = 0:
  394. $Headerstring += '<a href="exec:Shofilter[''alternative''] = 1 & Shofilter[''alternative_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/alternative.png"></a></TD>'
  395. else
  396. $Headerstring += '<a href="exec:Shofilter[''alternative''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/alternative_off.png"></a></TD>'
  397. end
  398. !! sort by filters
  399. $Headerstring += '<TD>'
  400. if Shofilter['number'] = 0:
  401. Shofilter['quality'] = 1
  402. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  403. else
  404. $Headerstring += '<a href="exec:Shofilter[''number''] = 0 & Shofilter[''quality''] = 1 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  405. end
  406. $Headerstring += '<TD>'
  407. if Shofilter['quality'] = 0:
  408. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  409. else
  410. $Headerstring += '<a href="exec:Clo_i = 0 & Shofilter[''quality''] = 0 & Shofilter[''number''] = 1 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  411. end
  412. !! Show only filers
  413. $Headerstring[1] = '<TD>'
  414. if Shofilter['sport_only'] = 0:
  415. $Headerstring[1] += '<a href="exec:Shofilter[''sport_only''] = 1 & Shofilter[''sport''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  416. else
  417. $Headerstring[1] += '<a href="exec:Shofilter[''sport_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  418. end
  419. $Headerstring[1] += '<TD>'
  420. if Shofilter['stripper_only'] = 0:
  421. $Headerstring[1] += '<a href="exec:Shofilter[''stripper_only''] = 1 & Shofilter[''stripper''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/stripper_off.png"></a></TD>'
  422. else
  423. $Headerstring[1] += '<a href="exec:Shofilter[''stripper_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/stripper.png"></a></TD>'
  424. end
  425. $Headerstring[1] += '<TD>'
  426. if Shofilter['bimbo_only'] = 0:
  427. $Headerstring[1] += '<a href="exec:Shofilter[''bimbo_only''] = 1 & Shofilter[''bimbo''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/bimbo_off.png"></a></TD>'
  428. else
  429. $Headerstring[1] += '<a href="exec:Shofilter[''bimbo_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/bimbo.png"></a></TD>'
  430. end
  431. $Headerstring[1] += '<TD>'
  432. if Shofilter['alternative_only'] = 0:
  433. $Headerstring[1] += '<a href="exec:Shofilter[''alternative_only''] = 1 & Shofilter[''alternative''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/alternative_off.png"></a></TD>'
  434. else
  435. $Headerstring[1] += '<a href="exec:Shofilter[''alternative_only''] = 0 & gt ''shoes'', ''view_shoe_list''"><img src="images/system/icons/clothing/alternative.png"></a></TD>'
  436. end
  437. $Headerstring[2] = '<TH>Include</TH><TH></TH><TH></TH><TH></TH><TH>Sort by</TH><TH></TH>'
  438. $Headerstring[3] = '<TH>Only show</TH>'
  439. '<center><table><<$Headerstring[2]>>'
  440. '<TR><border=1><<$Headerstring>>'
  441. '<TR><border=0><<$Headerstring[3]>>'
  442. '<TR><border=1><<$Headerstring[1]>></table></center>'
  443. end
  444. if $ARGS[0] = 'shoe_filter':
  445. !!Exclude filters
  446. Shofilter['inc'] = 1
  447. !!filters, if inc set to 0 they will not display
  448. if Shofilter['stripper'] = 1 and ShoStyle = 1:
  449. Shofilter['inc'] = 0
  450. end
  451. !!filters, if inc set to 0 they will not display
  452. if Shofilter['bimbo'] = 1 and ShoStyle = 2:
  453. Shofilter['inc'] = 0
  454. end
  455. !!filters, if inc set to 0 they will not display
  456. if Shofilter['alternative'] = 1 and ShoStyle = 3:
  457. Shofilter['inc'] = 0
  458. end
  459. !!only filters
  460. Shofilter['only'] = 0
  461. !!filters, if only set to 1 they will only display those set
  462. if Shofilter['stripper_only'] = 1 and ShoStyle = 1:
  463. Shofilter['only'] += 1
  464. end
  465. if Shofilter['bimbo_only'] = 1 and ShoStyle = 2:
  466. Shofilter['only'] += 1
  467. end
  468. if Shofilter['alternative_only'] = 1 and ShoStyle = 3:
  469. Shofilter['only'] += 1
  470. end
  471. !!Check total count to make sure it fits all groups selected
  472. if Shofilter['only'] = Shofilter['stripper_only'] + Shofilter['bimbo_only'] + Shofilter['alternative_only']:
  473. Shofilter['only'] = 1
  474. else
  475. Shofilter['only'] = 0
  476. end
  477. end
  478. if $ARGS[0] = 'shop_filter_header':
  479. !! exclude filters
  480. $Headerstring = '<TD>'
  481. if Shofilter['stripper'] = 0:
  482. $Headerstring += '<a href="exec:Shofilter[''stripper''] = 1 & Shofilter[''stripper_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/stripper.png"></a></TD>'
  483. else
  484. $Headerstring += '<a href="exec:Shofilter[''stripper''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/stripper_off.png"></a></TD>'
  485. end
  486. $Headerstring += '<TD>'
  487. if Shofilter['bimbo'] = 0:
  488. $Headerstring += '<a href="exec:Shofilter[''bimbo''] = 1 & Shofilter[''bimbo_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/bimbo.png"></a></TD>'
  489. else
  490. $Headerstring += '<a href="exec:Shofilter[''bimbo''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/bimbo_off.png"></a></TD>'
  491. end
  492. $Headerstring += '<TD>'
  493. if Shofilter['alternative'] = 0:
  494. $Headerstring += '<a href="exec:Shofilter[''alternative''] = 1 & Shofilter[''alternative_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/alternative.png"></a></TD>'
  495. else
  496. $Headerstring += '<a href="exec:Shofilter[''alternative''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/alternative_off.png"></a></TD>'
  497. end
  498. !! sort by filters
  499. $Headerstring += '<TD>'
  500. if Shofilter['number'] = 0:
  501. Shofilter['quality'] = 1
  502. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  503. else
  504. $Headerstring += '<a href="exec:Shofilter[''number''] = 0 & Shofilter[''quality''] = 1 & Shofilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  505. end
  506. $Headerstring += '<TD>'
  507. if Shofilter['quality'] = 0:
  508. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  509. else
  510. $Headerstring += '<a href="exec:Shofilter[''quality''] = 0 & Shofilter[''number''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  511. end
  512. !! Show only filers
  513. $Headerstring[1] = '<TD>'
  514. if Shofilter['stripper_only'] = 0:
  515. $Headerstring[1] += '<a href="exec:Shofilter[''stripper_only''] = 1 & Shofilter[''stripper''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/stripper_off.png"></a></TD>'
  516. else
  517. $Headerstring[1] += '<a href="exec:Shofilter[''stripper_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/stripper.png"></a></TD>'
  518. end
  519. $Headerstring[1] += '<TD>'
  520. if Shofilter['bimbo_only'] = 0:
  521. $Headerstring[1] += '<a href="exec:Shofilter[''bimbo_only''] = 1 & Shofilter[''bimbo''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/bimbo_off.png"></a></TD>'
  522. else
  523. $Headerstring[1] += '<a href="exec:Shofilter[''bimbo_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/bimbo.png"></a></TD>'
  524. end
  525. $Headerstring[1] += '<TD>'
  526. if Shofilter['alternative_only'] = 0:
  527. $Headerstring[1] += '<a href="exec:Shofilter[''alternative_only''] = 1 & Shofilter[''alternative''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/alternative_off.png"></a></TD>'
  528. else
  529. $Headerstring[1] += '<a href="exec:Shofilter[''alternative_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/alternative.png"></a></TD>'
  530. end
  531. $Headerstring[2] = '<TH>Include</TH><TH></TH><TH></TH><TH>Sort by</TH><TH></TH>'
  532. $Headerstring[3] = '<TH>Only show</TH>'
  533. '<center><table><<$Headerstring[2]>>'
  534. '<TR><border=1><<$Headerstring>>'
  535. '<TR><border=0><<$Headerstring[3]>>'
  536. '<TR><border=1><<$Headerstring[1]>></table></center>'
  537. end
  538. if $ARGS[0] = 'shop_filter':
  539. !!Exclude filters
  540. Shofilter['inc'] = 1
  541. !!filters, if inc set to 0 they will not display
  542. if Shofilter['stripper'] = 1 and ShoStyle = 1:
  543. Shofilter['inc'] = 0
  544. end
  545. !!filters, if inc set to 0 they will not display
  546. if Shofilter['bimbo'] = 1 and ShoStyle = 2:
  547. Shofilter['inc'] = 0
  548. end
  549. !!filters, if inc set to 0 they will not display
  550. if Shofilter['alternative'] = 1 and ShoStyle = 3:
  551. Shofilter['inc'] = 0
  552. end
  553. !!only filters
  554. Shofilter['only'] = 0
  555. !!filters, if only set to 1 they will only display those set
  556. if Shofilter['stripper_only'] = 1 and ShoStyle = 1:
  557. Shofilter['only'] += 1
  558. end
  559. if Shofilter['bimbo_only'] = 1 and ShoStyle = 2:
  560. Shofilter['only'] += 1
  561. end
  562. if Shofilter['alternative_only'] = 1 and ShoStyle = 3:
  563. Shofilter['only'] += 1
  564. end
  565. !!Check total count to make sure it fits all groups selected
  566. if Shofilter['only'] = Shofilter['stripper_only'] + Shofilter['bimbo_only'] + Shofilter['alternative_only']:
  567. Shofilter['only'] = 1
  568. else
  569. Shofilter['only'] = 0
  570. end
  571. end
  572. --- shoes ---------------------------------