1
0

shoes.qsrc 20 KB

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