clothing.qsrc 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  1. # clothing
  2. menu_off = 1
  3. $clothing_list_line = {
  4. !! a single line in a clothing list (wardrobe, etc)
  5. !! ARGS 0 - action type (wardrobe, sell, resize, store, forsale)
  6. !! ARGS 1 - clothing type
  7. !! ARGS 2 - clothing index
  8. gs 'themes', 'clothing', 1
  9. $RESULT = '<TR bgcolor='+$bgcolor+'>'
  10. if Enable_clothwidth > 0:
  11. clothing_temp = Enable_clothwidth - 1
  12. else
  13. clothing_temp = 150 & !clothing widdefault to 150
  14. end
  15. $RESULT +='<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>"><img src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>" width="<<clothing_temp>>"><p><<$ARGS[1]>> outfit</p></a></TD>'
  16. killvar 'clothing_temp'
  17. $swimwear_description = ''
  18. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  19. if $ARGS[1] ! 'gm_school' or ARGS[2] ! 6:
  20. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>_h[<<ARGS[2]>>]' + '</TD>'
  21. if $ARGS[1] ! 'danilovich' and $ARGS[1] ! 'coat' and CloStyle ! 5:
  22. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>_b[<<ARGS[2]>>]' + '</TD>'
  23. else
  24. $RESULT += '<TD></TD>'
  25. end
  26. else
  27. $RESULT += '<TD colspan="2"></TD>'
  28. end
  29. if $ARGS[1] = 'misc_outfits' and ARGS[2] = 1:
  30. $RESULT += '<TD>A hessian sack the hunters gave you.</TD>'
  31. elseif $swimwear_description = '':
  32. gs 'clothing_descriptions'
  33. $RESULT += '<TD><<FUNC(''$short_description'', $ARGS[1])>> <<ARGS[2]>><br/><br/><<$description>></TD>'
  34. else
  35. $RESULT += '<TD>' + $swimwear_description + '</TD>'
  36. end
  37. if CloBimbo = 1:
  38. $RESULT += '<TD>Yes</TD>'
  39. else
  40. $RESULT += '<TD>No</TD>'
  41. end
  42. if CloStyle = 4:
  43. $RESULT += '<TD>Yes</TD>'
  44. else
  45. $RESULT += '<TD>No</TD>'
  46. end
  47. $RESULT += '<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a>'
  48. if $ARGS[0] ! 'sell' and $ARGS[0] ! 'resize':
  49. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $ARGS[1] = 'gm_school' and ARGS[2] = 6:
  50. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Wear</a></TD>'
  51. elseif $ARGS[2] ! 'danilovich_swimsuit' and $ARGS[2] ! 'scandalicious_bikinis' and $ARGS[2] ! 'scandalicious_swimsuit' and $ARGS[2] ! 'allure_bikinis' and $ARGS[2] ! 'allure_bikinis' and dyneval('RESULT = <<$ARGS[1]>>_h[<<ARGS[2]>>]') > 0:
  52. if $ARGS[1] ! 'danilovich' and CloStyle ! 5 and (dyneval('RESULT = <<$ARGS[1]>>_b[<<ARGS[2]>>]') < (pcs_hips - 8) or dyneval('RESULT = <<$ARGS[1]>>_b[<<ARGS[2]>>]') > (pcs_hips + 8)) or (ARRPOS('$CloLosTyp', $ARGS[1]) ! -1 and ARRPOS('CloLosNum',ARGS[2]) ! -1):
  53. $RESULT += '</TD>'
  54. else
  55. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Wear</a></TD>'
  56. end
  57. else
  58. $RESULT += '</TD>'
  59. end
  60. $RESULT += '<TD>'
  61. if cloc ! 1:$RESULT += ' <a href="exec:gt ''clothing'', ''dest1'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Storage</a><BR>'
  62. if cloc ! 0:$RESULT += ' <a href="exec:gt ''clothing'', ''dest0'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Wardrobe</a><BR>'
  63. if $ARGS[1] ! 'gm_school' or ARGS[2] ! 6:
  64. if cloc ! 2:$RESULT += ' <a href="exec:gt ''clothing'', ''dest2'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Unwanted</a>'
  65. end
  66. $RESULT += '</TD>'
  67. end
  68. }
  69. !!cloc, 0 = wardrobe, 1 = storage, 2 = unwanted
  70. if $ARGS[0] = 'dest0':
  71. *clr
  72. dynamic '<<$ARGS[2]>>_s[<<ARGS[3]>>] = 0'
  73. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  74. end
  75. if $ARGS[0] = 'dest1':
  76. *clr
  77. dynamic '<<$ARGS[2]>>_s[<<ARGS[3]>>] = 1'
  78. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  79. end
  80. if $ARGS[0] = 'dest2':
  81. *clr
  82. dynamic '<<$ARGS[2]>>_s[<<ARGS[3]>>] = 2'
  83. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  84. end
  85. if $ARGS[0] = 'view_clothing_list':
  86. !! ARGS 0 - view_clothing_list
  87. !! ARGS 1 - action type (wardrobe, sell, resize, store, unwanted)
  88. !! ARGS 2 - Shop name (kats, moncheri, gm, fashionista, sexshop, exhibitshop, dolls, sports)
  89. if $pursepantytype ! '' or $pursebratype ! '' and $ARGS[1] ! 'resize' and $ARGS[1] ! 'sell':
  90. '<center><b>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</b></center><br>'
  91. killvar '$pursepantytype' & killvar 'pursepantynumber'
  92. killvar '$pursebratype' & killvar 'pursebranumber'
  93. end
  94. if $ARGS[1] = 'wardrobe':
  95. $ward_list_page = $ARGS[1]
  96. '<h3><center><b><font color="maroon">Wardrobe list</font></b></center></h3>'
  97. elseif $ARGS[1] = 'store':
  98. $ward_list_page = $ARGS[1]
  99. '<h3><center><b><font color="maroon">Stored clothing list</font></b></center></h3>'
  100. elseif $ARGS[1] = 'unwanted':
  101. $ward_list_page = $ARGS[1]
  102. '<h3><center><b><font color="maroon">Unwanted clothing list</font></b></center></h3>'
  103. elseif $ARGS[1] = 'sell':
  104. $ward_list_page = $ARGS[1]
  105. '<h3><center><b><font color="maroon">Choose an item to sell</font></b></center></h3>'
  106. end
  107. if $ARGS[2] = 'gm' or $ARGS[2] = 'gm_outfits' or $ARGS[2] = 'gm_dress' or $ARGS[2] = 'gm_office' or $ARGS[2] = 'gm_school' or $ARGS[2] = 'gm_maid' or $ARGS[2] = 'gm_server':
  108. !'<center><b><font color="maroon">Viewing clothes from G&M</font></b></center>'
  109. '<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  110. elseif $ARGS[2] = 'kats':
  111. !'<center><b><font color="maroon">Viewing clothes from PussyKats</font></b></center>'
  112. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  113. elseif $ARGS[2] = 'fashionista':
  114. !'<center><b><font color="maroon">Viewing clothes from Fashionista</font></b></center>'
  115. '<center><img src="images/locations/city/citycenter/mall/fashionista.png"></center>'
  116. elseif $ARGS[2] = 'moncheri':
  117. !'<center><b><font color="maroon">Viewing clothes from Mon Cheri</font></b></center>'
  118. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  119. elseif $ARGS[2] = 'sexshop':
  120. !'<center><b><font color="maroon">Viewing clothes from the sex shop</font></b></center>'
  121. '<center><img src="images/locations/city/citycenter/sexshop/shop_name.png"></center>'
  122. elseif $ARGS[2] = 'exhibitshop':
  123. !'<center><b><font color="maroon">Viewing clothes from the Exhibitionist shop</font></b></center>'
  124. '<center><img src="images/locations/oldtown/exhibitshop/shop_name.png"></center>'
  125. elseif $ARGS[2] = 'dolls':
  126. !'<center><b><font color="maroon">Viewing clothes from Patchwork Dolls</font></b></center>'
  127. '<center><img src="images/locations/city/island/dolls.png"></center>'
  128. elseif $ARGS[2] = 'sports':
  129. !'<center><b><font color="maroon">Viewing sportswear from Danilovich</font></b></center>'
  130. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  131. elseif $ARGS[2] = 'scandalicious':
  132. !'<center><b><font color="maroon">Viewing clothes from Scandalicious</font></b></center>'
  133. '<center><img src="images/locations/city/citycenter/mall/scandalicious.png"></center>'
  134. elseif $ARGS[2] = 'scandalicious_swimwear':
  135. !'<center><b><font color="maroon">Viewing Swimwear from scandalicious</font></b></center>'
  136. '<center><img src="images/locations/city/citycenter/mall/scandalicious_swimwear.png"></center>'
  137. elseif $ARGS[2] = 'allure':
  138. !'<center><b><font color="maroon">Viewing Swimwear from allure</font></b></center>'
  139. '<center><img src="images/locations/pavlovsk/commercial/allure/shop_name.png"></center>'
  140. elseif $ARGS[2] = 'market':
  141. !'<center><b><font color="maroon">Viewing Swimwear from allure</font></b></center>'
  142. '<center>Clothing from the market</center>'
  143. *nl
  144. else
  145. '<center><b><font color="maroon">Click on a shop name to view clothes from that shop</font></b></center>'
  146. if $wloc = 'wardrobe':
  147. act 'Return': killvar '$ward_list_store' & gt 'wardrobe', 'start'
  148. elseif $ARGS[1] = 'sell' or $ARGS[1] = 'resize':
  149. act 'Leave': killvar '$ward_list_store' & gt $loc, $loc_arg
  150. else
  151. act 'Leave': killvar '$ward_list_store' & gt $loc, $loc_arg
  152. end
  153. end
  154. *nl
  155. if $ARGS[1] ! 'sell':
  156. $clothing_header = '<center><table border=1>'
  157. if $ARGS[1] ! 'wardrobe': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Switch to wardrobe list</a></TH>'
  158. $clothing_header += '<TH><a href="exec:gt ''clothing_QV'', ''list'', ''<<$ward_list_store>>''">Switch to icons</a></TH>'
  159. if $ARGS[1] ! 'store': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''store'', ''<<$ward_list_store>>''">Switch to stored clothing list</a></TH>'
  160. if $ARGS[1] ! 'unwanted': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''unwanted'', ''<<$ward_list_store>>''">Switch to unwanted clothing list</a></TH></center>'
  161. $clothing_header
  162. if $ARGS[1] = 'wardrobe':
  163. '<center>These are the clothes that are currently available for you to wear.</center><br>'
  164. elseif $ARGS[1] = 'store':
  165. '<center>These are the clothes you have stored that do not show up in your wardrobe list and cannot be sold at the market.</center><br>'
  166. elseif $ARGS[1] = 'unwanted':
  167. '<center>These are the clothes you''ve marked to be sold at the market.</center><br>'
  168. end
  169. end
  170. if $ARGS[2] = '':
  171. if ARRSIZE('gm_outfits') > 0 or ARRSIZE('gm_dress') > 0:'<center><a href="exec:$ward_list_store = ''gm'' & gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''gm''"><img src="images/locations/city/citycenter/mall/gm.png"></a></center>'
  172. if ARRSIZE('gm_school') > 0:'<center><a href="exec:$ward_list_store = ''gm_school'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_school''"><img src="images/pc/items/gm/school.png"></a></center>'
  173. if ARRSIZE('gm_office') > 0:'<center><a href="exec:$ward_list_store = ''gm_office'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_office''"><img src="images/pc/items/gm/officewear.png"></a></center>'
  174. if ARRSIZE('gm_maid') > 0:'<center><a href="exec:$ward_list_store = ''gm_maid'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_maid''"><img src="images/pc/items/gm/gm_maid.png"></a></center>'
  175. if ARRSIZE('gm_server') > 0:'<center><a href="exec:$ward_list_store = ''gm_server'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_server''"><img src="images/pc/items/gm/gm_server.png"></a></center>'
  176. if ARRSIZE('misc_outfits') > 0:'<center><a href="exec:$ward_list_store = ''misc'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''misc''"><img src="images/pc/items/misc/misc.png"></a></center>'
  177. if ARRSIZE('cats_outfits') > 0 or ARRSIZE('cats_dress') > 0:'<center><a href="exec:$ward_list_store = ''kats'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''kats''"><img src="images/locations/city/citycenter/mall/pussycat.png"></a></center>'
  178. if ARRSIZE('flamingos_outfits') > 0 or ARRSIZE('flamingos_dress') > 0:'<center><a href="exec:$ward_list_store = ''flamingos'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''flamingos''"><img src="images/locations/city/island/flamingos/shop_name.png"></a></center>'
  179. if ARRSIZE('coco_outfits') > 0 or ARRSIZE('coco_dress') > 0:'<center><a href="exec:$ward_list_store = ''coco'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''coco''"><img src="images/locations/pavlovsk/coco/shop_name.png"></a></center>'
  180. if ARRSIZE('fashionista') > 0:'<center><a href="exec:$ward_list_store = ''fashionista'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''fashionista''"><img src="images/locations/city/citycenter/mall/fashionista.png"></a></center>'
  181. if ARRSIZE('moncheri') > 0:'<center><a href="exec:$ward_list_store = ''moncheri'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''moncheri''"><img src="images/locations/city/citycenter/mall/moncheri.png"></a></center>'
  182. if ARRSIZE('scandalicious_outfits') > 0 or ARRSIZE('scandalicious_dress') > 0:'<center><a href="exec:$ward_list_store = ''scandalicious'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''scandalicious''"><img src="images/locations/city/citycenter/mall/scandalicious.png"></a></center>'
  183. if ARRSIZE('scandalicious_bikinis') > 0 or ARRSIZE('scandalicious_swimsuit') > 0:'<center><a href="exec:$ward_list_store = ''scandalicious_swimwear'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''scandalicious_swimwear''"><img src="images/locations/city/citycenter/mall/scandalicious_swimwear.png"></a></center>'
  184. if ARRSIZE('allure_bikinis') > 0 or ARRSIZE('allure_swimsuit') > 0:'<center><a href="exec:$ward_list_store = ''allure'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''allure''"><img src="images/locations/pavlovsk/commercial/allure/shop_name.png"></a></center>'
  185. if ARRSIZE('fancy_burlesque') > 0:'<center><a href="exec:$ward_list_store = ''fancypancy'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''fancypancy''"><img src="images/locations/oldtown/fancypancy/shop_name.png"></a></center>'
  186. if ARRSIZE('eroto_dress') > 0 or ARRSIZE('eroto_outfits') > 0 or ARRSIZE('eroto_strip') > 0:'<center><a href="exec:$ward_list_store = ''sexshop'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''sexshop''"><img src="images/locations/city/citycenter/sexshop/shop_name.png"></a></center>'
  187. if ARRSIZE('exhibit') > 0:'<center><a href="exec:$ward_list_store = ''exhibitshop'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''exhibitshop''"><img src="images/locations/oldtown/exhibitshop/shop_name.png"></a></center>'
  188. if ARRSIZE('dolls_outfits') > 0 or ARRSIZE('dolls_dress') > 0:'<center><a href="exec:$ward_list_store = ''dolls'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''dolls''"><img src="images/locations/city/island/dolls.png"></a></center>'
  189. if ARRSIZE('bomba_outfits') > 0 or ARRSIZE('bomba_dress') > 0:'<center><a href="exec:$ward_list_store = ''bomba'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''bomba''"><img src="images/locations/oldtown/bomba/shop_name.png"></a></center>'
  190. if ARRSIZE('danilovich') > 0:'<center><a href="exec:$ward_list_store = ''sports'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''sports''"><img src="images/locations/city/citycenter/mall/sports.png"></a></center>'
  191. if ARRSIZE('market_outfits') > 0:'<center><a href="exec:$ward_list_store = ''market'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''market''">Clothes from the market</a></center>'
  192. else
  193. $bgcolor='#f3f4ee'
  194. if $ARGS[1] = 'sell':
  195. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH>'
  196. else
  197. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH><TH>Move to</TH>'
  198. end
  199. if $ARGS[1] = 'store':
  200. cloc = 1
  201. elseif $ARGS[1] = 'unwanted':
  202. cloc = 2
  203. else
  204. cloc = 0
  205. end
  206. if $ARGS[2] = 'gm':
  207. $ward_list_store = $ARGS[2]
  208. i = 1
  209. :loopgm_outfits
  210. if gm_outfits[i] = 1 and gm_outfits_s[i] = cloc and ($clothingworntype ! 'gm_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_outfits', i)
  211. i += 1
  212. if i <= ARRSIZE('gm_outfits'):jump 'loopgm_outfits'
  213. $ward_list_store = $ARGS[2]
  214. i = 1
  215. :loopgm_dress
  216. if gm_dress[i] = 1 and gm_dress_s[i] = cloc and ($clothingworntype ! 'gm_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_dress', i)
  217. i += 1
  218. if i <= ARRSIZE('gm_dress'):jump 'loopgm_dress'
  219. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  220. gs 'clothing', 'clothwidth'
  221. end
  222. if $ARGS[2] = 'gm_office':
  223. $ward_list_store = $ARGS[2]
  224. i = 1
  225. :loopoffice
  226. if gm_office[i] = 1 and gm_office_s[i] = cloc and ($clothingworntype ! 'gm_office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_office', i)
  227. i += 1
  228. if i <= ARRSIZE('gm_office'):jump 'loopoffice'
  229. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  230. gs 'clothing', 'clothwidth'
  231. end
  232. if $ARGS[2] = 'gm_school':
  233. $ward_list_store = $ARGS[2]
  234. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and gm_school_s[6] = cloc and ($clothingworntype ! 'gm_school' or clothingwornnumber ! 6):*P dyneval($clothing_list_line, $ARGS[1], 'gm_school', 6)
  235. i = 1
  236. :loopschool
  237. if gm_school[i] = 1 and gm_school_s[i] = cloc and ($clothingworntype ! 'gm_school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_school', i)
  238. i += 1
  239. if i = 6: i = 7
  240. if i <= ARRSIZE('gm_school'):jump 'loopschool'
  241. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  242. gs 'clothing', 'clothwidth'
  243. end
  244. if $ARGS[2] = 'gm_maid':
  245. $ward_list_store = $ARGS[2]
  246. i = 1
  247. :loopgm_maid
  248. if gm_maid[i] = 1 and gm_maid_s[i] = cloc and ($clothingworntype ! 'gm_maid' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_maid', i)
  249. i += 1
  250. if i <= ARRSIZE('gm_maid'):jump 'loopgm_maid'
  251. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  252. gs 'clothing', 'clothwidth'
  253. end
  254. if $ARGS[2] = 'gm_server':
  255. $ward_list_store = $ARGS[2]
  256. i = 1
  257. :loopgm_server
  258. if gm_server[i] = 1 and gm_server_s[i] = cloc and ($clothingworntype ! 'gm_server' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'gm_server', i)
  259. i += 1
  260. if i <= ARRSIZE('gm_server'):jump 'loopgm_server'
  261. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  262. gs 'clothing', 'clothwidth'
  263. end
  264. if $ARGS[2] = 'misc':
  265. $ward_list_store = $ARGS[2]
  266. i = 1
  267. :loopmisc_outfits
  268. if misc_outfits[i] = 1 and misc_outfits_s[i] = cloc and ($clothingworntype ! 'misc_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'misc_outfits', i)
  269. i += 1
  270. if i <= ARRSIZE('misc_outfits'):jump 'loopmisc_outfits'
  271. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  272. gs 'clothing', 'clothwidth'
  273. end
  274. if $ARGS[2] = 'kats':
  275. $ward_list_store = $ARGS[2]
  276. i = 1
  277. :loopcats_dress
  278. if cats_dress[i] = 1 and cats_dress_s[i] = cloc and ($clothingworntype ! 'cats_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cats_dress', i)
  279. i += 1
  280. if i <= ARRSIZE('cats_dress'):jump 'loopcats_dress'
  281. i = 1
  282. :loopcats_outfits
  283. if cats_outfits[i] = 1 and cats_outfits_s[i] = cloc and ($clothingworntype ! 'cats_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cats_outfits', i)
  284. i += 1
  285. if i <= ARRSIZE('cats_outfits'):jump 'loopcats_outfits'
  286. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  287. gs 'clothing', 'clothwidth'
  288. end
  289. if $ARGS[2] = 'flamingos':
  290. $ward_list_store = $ARGS[2]
  291. i = 1
  292. :loopflamingos_dress
  293. if flamingos_dress[i] = 1 and flamingos_dress_s[i] = cloc and ($clothingworntype ! 'flamingos_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'flamingos_dress', i)
  294. i += 1
  295. if i <= ARRSIZE('flamingos_dress'):jump 'loopflamingos_dress'
  296. i = 1
  297. :loopflamingos_outfits
  298. if flamingos_outfits[i] = 1 and flamingos_outfits_s[i] = cloc and ($clothingworntype ! 'flamingos_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'flamingos_outfits', i)
  299. i += 1
  300. if i <= ARRSIZE('flamingos_outfits'):jump 'loopflamingos_outfits'
  301. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  302. gs 'clothing', 'clothwidth'
  303. end
  304. if $ARGS[2] = 'coco':
  305. $ward_list_store = $ARGS[2]
  306. i = 1
  307. :loopcoco_dress
  308. if coco_dress[i] = 1 and coco_dress_s[i] = cloc and ($clothingworntype ! 'coco_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'coco_dress', i)
  309. i += 1
  310. if i <= ARRSIZE('coco_dress'):jump 'loopcoco_dress'
  311. i = 1
  312. :loopcoco_outfits
  313. if coco_outfits[i] = 1 and coco_outfits_s[i] = cloc and ($clothingworntype ! 'coco_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'coco_outfits', i)
  314. i += 1
  315. if i <= ARRSIZE('coco_outfits'):jump 'loopcoco_outfits'
  316. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  317. gs 'clothing', 'clothwidth'
  318. end
  319. if $ARGS[2] = 'fashionista':
  320. $ward_list_store = $ARGS[2]
  321. i = 1
  322. :loopfashionista
  323. if fashionista[i] = 1 and fashionista_s[i] = cloc and ($clothingworntype ! 'fashionista' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fashionista', i)
  324. i += 1
  325. if i <= ARRSIZE('fashionista'):jump 'loopfashionista'
  326. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  327. gs 'clothing', 'clothwidth'
  328. end
  329. if $ARGS[2] = 'moncheri':
  330. $ward_list_store = $ARGS[2]
  331. i = 1
  332. :loopmoncheri
  333. if moncheri[i] = 1 and moncheri_s[i] = cloc and ($clothingworntype ! 'moncheri' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'moncheri', i)
  334. i += 1
  335. if i <= ARRSIZE('moncheri'):jump 'loopmoncheri'
  336. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  337. gs 'clothing', 'clothwidth'
  338. end
  339. if $ARGS[2] = 'scandalicious':
  340. $ward_list_store = $ARGS[2]
  341. i = 1
  342. :loopscandalicious_dress
  343. if scandalicious_dress[i] = 1 and scandalicious_dress_s[i] = cloc and ($clothingworntype ! 'scandalicious_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'scandalicious_dress', i)
  344. i += 1
  345. if i <= ARRSIZE('scandalicious_dress'):jump 'loopscandalicious_dress'
  346. $ward_list_store = $ARGS[2]
  347. i = 1
  348. :loopscandalicious_outfits
  349. if scandalicious_outfits[i] = 1 and scandalicious_outfits_s[i] = cloc and ($clothingworntype ! 'scandalicious_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'scandalicious_outfits', i)
  350. i += 1
  351. if i <= ARRSIZE('scandalicious_outfits'):jump 'loopscandalicious_outfits'
  352. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  353. gs 'clothing', 'clothwidth'
  354. end
  355. if $ARGS[2] = 'scandalicious_swimwear':
  356. $ward_list_store = $ARGS[2]
  357. i = 1
  358. :loopscandalicious_bikinis
  359. if scandalicious_bikinis[i] = 1 and scandalicious_bikinis_s[i] = cloc and ($clothingworntype ! 'scandalicious_bikinis' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'scandalicious_bikinis', i)
  360. i += 1
  361. if i <= ARRSIZE('scandalicious_bikinis'):jump 'loopscandalicious_bikinis'
  362. $ward_list_store = $ARGS[2]
  363. i = 1
  364. :loopscandalicious_swimsuit
  365. if scandalicious_swimsuit[i] = 1 and scandalicious_swimsuit_s[i] = cloc and ($clothingworntype ! 'scandalicious_swimsuit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'scandalicious_swimsuit', i)
  366. i += 1
  367. if i <= ARRSIZE('scandalicious_swimsuit'):jump 'loopscandalicious_swimsuit'
  368. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  369. gs 'clothing', 'clothwidth'
  370. end
  371. if $ARGS[2] = 'allure':
  372. $ward_list_store = $ARGS[2]
  373. i = 1
  374. :loopallure_bikinis
  375. if allure_bikinis[i] = 1 and allure_bikinis_s[i] = cloc and ($clothingworntype ! 'allure_bikinis' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'allure_bikinis', i)
  376. i += 1
  377. if i <= ARRSIZE('allure_bikinis'):jump 'loopallure_bikinis'
  378. $ward_list_store = $ARGS[2]
  379. i = 1
  380. :loopallure_swimsuit
  381. if allure_swimsuit[i] = 1 and allure_swimsuit_s[i] = cloc and ($clothingworntype ! 'allure_swimsuit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'allure_swimsuit', i)
  382. i += 1
  383. if i <= ARRSIZE('allure_swimsuit'):jump 'loopallure_swimsuit'
  384. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  385. gs 'clothing', 'clothwidth'
  386. end
  387. if $ARGS[2] = 'sexshop':
  388. $ward_list_store = $ARGS[2]
  389. i = 1
  390. :looperoto_dress
  391. if eroto_dress[i] = 1 and eroto_dress_s[i] = cloc and ($clothingworntype ! 'eroto_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'eroto_dress', i)
  392. i += 1
  393. if i <= ARRSIZE('eroto_dress'):jump 'looperoto_dress'
  394. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  395. gs 'clothing', 'clothwidth'
  396. $ward_list_store = $ARGS[2]
  397. i = 1
  398. :looperoto_outfits
  399. if eroto_outfits[i] = 1 and eroto_outfits_s[i] = cloc and ($clothingworntype ! 'eroto_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'eroto_outfits', i)
  400. i += 1
  401. if i <= ARRSIZE('eroto_outfits'):jump 'looperoto_outfits'
  402. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  403. gs 'clothing', 'clothwidth'
  404. $ward_list_store = $ARGS[2]
  405. i = 1
  406. :looperoto_strip
  407. if eroto_strip[i] = 1 and eroto_strip_s[i] = cloc and ($clothingworntype ! 'eroto_strip' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'eroto_strip', i)
  408. i += 1
  409. if i <= ARRSIZE('eroto_strip'):jump 'looperoto_strip'
  410. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  411. gs 'clothing', 'clothwidth'
  412. end
  413. if $ARGS[2] = 'exhibitshop':
  414. $ward_list_store = $ARGS[2]
  415. i = 1
  416. :loopexhibit
  417. if exhibit[i] = 1 and exhibit_s[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  418. i += 1
  419. if i <= ARRSIZE('exhibit'):jump 'loopexhibit'
  420. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  421. gs 'clothing', 'clothwidth'
  422. end
  423. if $ARGS[2] = 'fancypancy':
  424. $ward_list_store = $ARGS[2]
  425. i = 1
  426. :loopfancy_burlesque
  427. if fancy_burlesque[i] = 1 and fancy_burlesque_s[i] = cloc and ($clothingworntype ! 'fancy_burlesque' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fancy_burlesque', i)
  428. i += 1
  429. if i <= ARRSIZE('fancy_burlesque'):jump 'loopfancy_burlesque'
  430. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  431. gs 'clothing', 'clothwidth'
  432. end
  433. if $ARGS[2] = 'dolls':
  434. cla
  435. $ward_list_store = $ARGS[2]
  436. i = 1
  437. :loopdolls_outfits
  438. if dolls_outfits[i] = 1 and dolls_outfits_s[i] = cloc and ($clothingworntype ! 'dolls_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'dolls_outfits', i)
  439. i += 1
  440. if i <= ARRSIZE('dolls_outfits'):jump 'loopdolls_outfits'
  441. $ward_list_store = $ARGS[2]
  442. i = 1
  443. :loopdolls_dress
  444. if dolls_dress[i] = 1 and dolls_dress_s[i] = cloc and ($clothingworntype ! 'dolls_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'dolls_dress', i)
  445. i += 1
  446. if i <= ARRSIZE('dolls_dress'):jump 'loopdolls_dress'
  447. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  448. gs 'clothing', 'clothwidth'
  449. end
  450. if $ARGS[2] = 'bomba':
  451. cla
  452. $ward_list_store = $ARGS[2]
  453. i = 1
  454. :loopbomba_outfits
  455. if bomba_outfits[i] = 1 and bomba_outfits_s[i] = cloc and ($clothingworntype ! 'bomba_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'bomba_outfits', i)
  456. i += 1
  457. if i <= ARRSIZE('bomba_outfits'):jump 'loopbomba_outfits'
  458. i = 1
  459. :loopbomba_dress
  460. if bomba_dress[i] = 1 and bomba_dress_s[i] = cloc and ($clothingworntype ! 'bomba_dress' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'bomba_dress', i)
  461. i += 1
  462. if i <= ARRSIZE('bomba_dress'):jump 'loopbomba_dress'
  463. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  464. gs 'clothing', 'clothwidth'
  465. end
  466. if $ARGS[2] = 'sports':
  467. $ward_list_store = $ARGS[2]
  468. i = 1
  469. :loopdanilovich
  470. if danilovich[i] = 1 and danilovich_s[i] = cloc and ($clothingworntype ! 'danilovich' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'danilovich', i)
  471. i += 1
  472. if i <= ARRSIZE('danilovich'):jump 'loopdanilovich'
  473. i = 1
  474. :loopdanilovich_swimsuit
  475. if danilovich_swimsuit[i] = 1 and danilovich_swimsuit_s[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'danilovich_swimsuit', i)
  476. i += 1
  477. if i <= ARRSIZE('danilovich_swimsuit'):jump 'loopdanilovich_swimsuit'
  478. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  479. gs 'clothing', 'clothwidth'
  480. end
  481. if $ARGS[2] = 'market':
  482. $ward_list_store = $ARGS[2]
  483. i = 1
  484. :loopmarket_outfits
  485. if market_outfits[i] = 1 and market_outfits_s[i] = cloc and ($clothingworntype ! 'market_outfits' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'market_outfits', i)
  486. i += 1
  487. if i <= ARRSIZE('market_outfits'):jump 'loopmarket_outfits'
  488. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  489. gs 'clothing', 'clothwidth'
  490. end
  491. '</table>'
  492. end
  493. end
  494. if $ARGS[0] = 'clothwidth':
  495. act 'Set image size for this view':
  496. Enable_clothwidth = input("Enter height in pixels you want for images on this page <br>(Default 150, min 50, max 500)")
  497. if Enable_clothwidth < 50:
  498. Enable_clothwidth = 50
  499. elseif Enable_clothwidth > 500:
  500. Enable_clothwidth = 500
  501. end
  502. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  503. end
  504. end
  505. if $ARGS[0] = 'view_clothing_item':
  506. !! ARGS 0 - view_clothing_item
  507. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  508. !! ARGS 2 - clothing type
  509. !! ARGS 3 - clothing index
  510. !! ARGS 4 - price for shop
  511. $swimwear_description = ''
  512. cla
  513. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  514. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  515. $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  516. $RESULT += '<<ARGS[3]>>'
  517. '<<$RESULT>>'
  518. if $ARGS[2] = 'misc_outfits' and ARGS[3] = 1:
  519. 'A hessian sack the hunters gave you.'
  520. elseif $swimwear_description = '':
  521. gs 'clothing_descriptions'
  522. '<<$description>>'
  523. else
  524. $swimwear_description
  525. end
  526. if CloBimbo = 1 and cheatbimbo = 0:'This item is considered bimbo clothing.'
  527. if CloStyle = 4:'This outfit can be used for prostitution.'
  528. if CloInhibit > 10:
  529. if CloInhibit + 10 > pcs_inhib and CloInhibit <= pcs_inhib: 'You find this outfit more revealing than you are completely comfortable with but that makes it quite exciting too.'
  530. end
  531. !!CloStyle2: 1 Maid, 2 Server, 3 Stripper, 4 School
  532. if CloStyle2 = 1: 'This is a maid outfit.'
  533. if CloStyle2 = 2: 'This outfit is a server uniform.'
  534. if CloStyle2 = 3: 'This outfit is a stripper uniform, suitable for jobs that require one.'
  535. if CloStyle2 = 4:
  536. if CloInhibit <= 10:
  537. '<font color="blue">This uniform is very conservative. Only the nerds would approve of you wearing it.</font>'
  538. elseif CloSkirt < 5 and CloThinness < 5 and CloBra = 0:
  539. if CloQuality = 4:
  540. '<font color="blue">This uniform complies with the regulations and is of good quality. It would certainly help you with your standing with the cool kids and jocks.</font>'
  541. else
  542. '<font color="blue">This uniform complies with the school regulations on skirt length. Nobody in school would be offended by you wearing it.</font>'
  543. end
  544. elseif CloSkirt = 5 and CloThinness < 5 and CloBra = 0:
  545. if CloQuality = 4:
  546. '<font color="blue">This uniform slightly breaches the school regulations on skirt length and is of good quality. Everybody apart from the nerds would approve of you wearing it.</font>'
  547. else
  548. '<font color="blue">This uniform slightly breaches the school regulations on skirt length. The gopnik would approve of you wearing it.</font>'
  549. end
  550. else
  551. '<font color="red">This uniform makes a mockery of the school uniform regulations. Everybody in school apart from the gopniks will think that you''re a slut.</font>'
  552. end
  553. end
  554. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'gm_school' or ARGS[3] ! 6):
  555. $RESULT = '(strength '
  556. dynamic '$RESULT += <<$ARGS[2]>>_h[<<ARGS[3]>>]'
  557. if $ARGS[2] ! 'danilovich' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  558. $RESULT += ', hip size '
  559. dynamic '$RESULT += <<$ARGS[2]>>_b[<<ARGS[3]>>]'
  560. end
  561. $RESULT += ')'
  562. '<<$RESULT>>'
  563. end
  564. if $ARGS[1] = 'shop':
  565. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  566. 'You already own this item.'
  567. act 'Leave': gt $loc, $loc_arg
  568. else
  569. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  570. price = ARGS[4]
  571. else
  572. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  573. price = price / 50 * 50
  574. end
  575. 'Price: <<price>> <b>₽</b>'
  576. act 'Leave': gt $loc, $loc_arg
  577. if CloInhibit > pcs_inhib:
  578. 'You don''t feel daring enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  579. elseif karta + bankDebtLimit < Price and money < Price:
  580. 'You cannot afford this outfit.'
  581. else
  582. if money >= Price:
  583. act 'Buy (cash)':
  584. h = 0
  585. if CloStyle = 2:h = 10
  586. if CloStyle = 5:h = 20
  587. h += (3 * CloQuality)
  588. money -= price
  589. gs 'clothing', 'view_clothing_item_buy', $ARGS[1], $ARGS[2], ARGS[3], ARGS[4]
  590. end
  591. end
  592. if karta + bankDebtLimit >= Price:
  593. act 'Buy (card)':
  594. h = 0
  595. if CloStyle = 2:h = 10
  596. if CloStyle = 5:h = 20
  597. h += (3 * CloQuality)
  598. karta -= price
  599. gs 'clothing', 'view_clothing_item_buy', $ARGS[1], $ARGS[2], ARGS[3], ARGS[4]
  600. end
  601. end
  602. end
  603. end
  604. elseif $ARGS[1] = 'wardrobe':
  605. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  606. if $ARGS[2] ! 'gm_school' or ARGS[3] ! 6:
  607. !! if the clothing is worn out
  608. if dyneval('RESULT = <<$ARGS[2]>>_h[<<ARGS[3]>>]') <= 0:
  609. 'This item is worn and is not suitable for further wear.'
  610. if pcs_sewng >= 60 and tkan > 0:
  611. cla
  612. 'You can repair this thanks to your sewing skill.'
  613. act 'Repair item':
  614. if rand (1, 100) < 30:
  615. *clr
  616. cla
  617. tkan -= 1
  618. minut += 30
  619. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] += 30'
  620. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/fix' + rand(1,2) + '.jpg"></center>'
  621. 'You spend 30 minutes fixing the outfit.'
  622. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  623. else
  624. *clr
  625. cla
  626. tkan += 3
  627. minut += 30
  628. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  629. '<center><img <<$set_imgh>> src="images/pc/activities/sewing/fix' + rand(1,2) + '.jpg"></center>'
  630. 'Despite your skill with a needle, this outfit has proved beyond repair. All that is left of it is only good for your cloth pile.'
  631. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  632. end
  633. end
  634. act 'Return': gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  635. end
  636. exit
  637. end
  638. !! if the clothing is a type that checks for hip size
  639. if $ARGS[2] ! 'danilovich' and CloStyle ! 5:
  640. !! if the hipsize is too far from your hipsize
  641. dynamic 'RESULT = <<$ARGS[2]>>_b[<<ARGS[3]>>]'
  642. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  643. if RESULT < pcs_hips:
  644. 'This item is too small for you to wear.'
  645. else
  646. 'This item is too large for you to wear.'
  647. end
  648. if (pcs_sewng >= 50 and tkan > 0) or $loc_arg = 'tailor':
  649. cla & *nl
  650. if $loc_arg = 'tailor':
  651. 'You can pay to have this resized for (500 <b>₽</b>).'
  652. else
  653. 'You can resize this thanks to your sewing skill.'
  654. end
  655. act 'Return': gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  656. act 'Resize item':
  657. cla
  658. if $loc_arg = 'tailor':
  659. minut += 15
  660. money -= 500
  661. dynamic $ARGS[2] + '_b[<<ARGS[3]>>] = pcs_hips'
  662. *nl
  663. 'You hand the clothing over to the tailor who takes it into the back. Fifteen minutes later, he presents your clothing back to you, adjusted to fit you perfectly.'
  664. else
  665. tkan -= 1
  666. minut += 30
  667. dynamic $ARGS[2] + '_b[<<ARGS[3]>>] = pcs_hips'
  668. 'You spend 30 minutes resizing the outfit.'
  669. end
  670. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  671. end
  672. end
  673. exit
  674. end
  675. end
  676. end
  677. if $ARGS[2] ! 'danilovich_swimsuit' and $ARGS[2] ! 'scandalicious_bikinis' and $ARGS[2] ! 'scandalicious_swimsuit' and $ARGS[2] ! 'allure_bikinis' and $ARGS[2] ! 'allure_bikinis':
  678. if CloInhibit > pcs_inhib:
  679. 'You don''t feel daring enough to wear an outfit this revealing.'
  680. elseif ARRPOS('$CloLosTyp', $ARGS[2]) ! -1 and ARRPOS('CloLosNum',ARGS[3]) ! -1 :
  681. 'You lost these clothes somewhere, maybe you can find them again?.'
  682. else
  683. act 'Wear':
  684. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  685. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  686. end
  687. end
  688. end
  689. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  690. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  691. if $ARGS[2] ! 'coat':
  692. act 'Move back to wardrobe':
  693. dynamic $ARGS[2] + '_s[<<ARGS[3]>>] = 0'
  694. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  695. end
  696. end
  697. elseif $ARGS[1] = 'sell':
  698. $ward_list_page = $ARGS[1]
  699. act 'Keep item':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  700. !! value is based on the strength remaining
  701. dynamic 'RESULT = <<$ARGS[2]>>_h[<<ARGS[3]>>]'
  702. if RESULT > 45:
  703. 'You can sell this item for 500 <b>₽</b>.'
  704. act 'Sell':
  705. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  706. money += 500
  707. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  708. end
  709. elseif RESULT > 30:
  710. 'You can sell this item for 300 <b>₽</b>.'
  711. act 'Sell':
  712. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  713. money += 300
  714. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  715. end
  716. elseif RESULT > 0:
  717. 'You can sell this item for 100 <b>₽</b>.'
  718. act 'Sell':
  719. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  720. money += 100
  721. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  722. end
  723. else
  724. 'This item is too worn to have any sale value.'
  725. act 'Throw it away':
  726. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  727. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  728. end
  729. end
  730. elseif $ARGS[1] = 'resize':
  731. act 'Leave item alone':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  732. if $ARGS[2] ! 'danilovich' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  733. if dyneval('RESULT = <<$ARGS[2]>>_b[<<ARGS[3]>>]') ! pcs_hips and money >= 500:
  734. 'You can have this resized for 500 <b>₽</b>.'
  735. act 'Resize':
  736. money -= 500
  737. dynamic '<<$ARGS[2]>>_b[<<ARGS[3]>>] = pcs_hips'
  738. gt 'clothing', 'view_clothing_list', 'resize'
  739. end
  740. end
  741. end
  742. end
  743. end
  744. if $ARGS[0] = 'view_clothing_item_buy':
  745. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  746. if $ARGS[2] = 'gm_outfits' or $ARGS[2] = 'gm_dress' or $ARGS[2] = 'gm_office':
  747. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 70 + <<h>>'
  748. elseif $ARGS[2] = 'cats_dress' or $ARGS[2] = 'cats_outfits' or $ARGS[2] = 'flamingos_dress' or $ARGS[2] = 'flamingos_outfits' or $ARGS[2] = 'coco_dress' or $ARGS[2] = 'coco_outfits':
  749. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 90 + <<h>>'
  750. elseif $ARGS[2] = 'moncheri':
  751. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 15 + <<h>>'
  752. elseif $ARGS[2] = 'eroto_dress' or $ARGS[2] = 'eroto_outfits' or $ARGS[2] = 'eroto_strip' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'fancy_burlesque':
  753. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 35 + <<h>>'
  754. elseif $ARGS[2] = 'gm_school' or $ARGS[2] = 'gm_maid' or $ARGS[2] = 'gm_server':
  755. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 120 + <<h>>'
  756. elseif $ARGS[2] = 'danilovich':
  757. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 100 + <<h>>'
  758. elseif $ARGS[2] = 'coat':
  759. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 250 + <<h>>'
  760. else
  761. dynamic $ARGS[2] + '_h[<<ARGS[3]>>] = 60 + <<h>>'
  762. end
  763. dynamic $ARGS[2] + '_b[<<ARGS[3]>>] = pcs_hips'
  764. dynamic $ARGS[2] + '_s[<<ARGS[3]>>] = 0'
  765. gs 'stat'
  766. gt $loc, $loc_arg
  767. end
  768. if $ARGS[0] = 'strip':
  769. !$ARGS[1] = location when stripping outdoors
  770. if $clothingworntype = 'nude': exit
  771. cumspclnt = 6
  772. gs 'cum_cleanup'
  773. if cloth_vid = 1:
  774. last_vid = 1
  775. else
  776. last_vid = 0
  777. end
  778. if PCloStyle2 = 4:
  779. $schbrand = $clothingworntype
  780. schtype = clothingwornnumber
  781. end
  782. if $ARGS[1] ! '' :
  783. DYNAMIC '$CloLos<<$clothingworntype>>[<<clothingwornnumber>>]=<<$ARGS[1]>>'
  784. $CloLosLoc[] = $ARGS[1]
  785. $CloLosTyp[$ARGS[1]] = $clothingworntype
  786. CloLosNum[$ARGS[1]] = clothingwornnumber
  787. CloLosDay[$ARGS[1]] = daystart
  788. KILLVAR '$lastwornclothingtype'
  789. KILLVAR 'lastwornclothingnumber'
  790. else
  791. $lastwornclothingtype = $clothingworntype
  792. lastwornclothingnumber = clothingwornnumber
  793. end
  794. $clothingworntype = 'nude'
  795. clothingwornnumber = 0
  796. CloQuality = 0
  797. CloThinness = 0
  798. CloTopCut = 0
  799. CloBra = 0
  800. CloPantsShortness = 0
  801. CloSkirtShortness = 0
  802. CloPanties = 0
  803. CloStyle = 0
  804. CloStyle2 = 0
  805. CloBimbo = 0
  806. CloOnePiece = 0
  807. PShoQuaility = 0
  808. PShoCut = 0
  809. PShoHeels = 0
  810. PShoStyle = 0
  811. PCloQuality = 0
  812. PCloThinness = 0
  813. PCloTopCut = 0
  814. PCloPants = 0
  815. PCloSkirt = 0
  816. PCloStyle = 0
  817. PCloStyle2 = 0
  818. PCloBimbo = 0
  819. PCloInhibit = 0
  820. PCloOnePiece = 0
  821. PXCloThinness = 0
  822. PXCloTopCut = 0
  823. PXCloBottomShortness = 0
  824. glamur = 0
  825. sport = 0
  826. ski = 0
  827. ofclo = 0
  828. sexual = 0
  829. odevnesh = 0
  830. ! WD: Bimbo look
  831. cloth_vid = 0
  832. exhibiHideNewCloth = 0
  833. end
  834. if $ARGS[0] = 'recover_lost_clothes':
  835. !$ARGS[1] = location
  836. !ARGS[2] = 1 : wear the clothes, ARGS[2] = 2 : Return to shop (lost FOREVAH!)
  837. $cloLoc = $ARGS[1]
  838. cloAction = ARGS[2]
  839. $clothType = $CloLosTyp[$cloLoc]
  840. clothNumber = CloLosNum[$cloLoc]
  841. dayLost = CloLosDay[$cloLoc]
  842. DYNAMIC 'KILLVAR ''$CloLos<<$clothingworntype>>'', <<clothingwornnumber>>'
  843. findLocInd = ARRPOS('$CloLosTyp', $clothType)
  844. KILLVAR '$CloLosTyp', findLocInd
  845. findLocInd = ARRPOS('CloLosNum', clothNumber)
  846. KILLVAR 'CloLosNum', findLocInd
  847. findLocInd = ARRPOS('CloLosDay', CloLosDay[$cloLoc])
  848. KILLVAR 'CloLosDay', findLocInd
  849. findLocInd = ARRPOS('$CloLosLoc', $cloLoc)
  850. KILLVAR '$CloLosLoc', findLocInd
  851. KILLVAR 'findLocInd'
  852. if cloAction = 1:
  853. gs 'clothing', 'wear', $clothType, clothNumber
  854. elseif cloAction = 2 :
  855. dynamic $clothType + '_s[<<clothNumber>>] = 1'
  856. end
  857. KILLVAR '$cloLoc'
  858. KILLVAR 'cloAction'
  859. KILLVAR '$clothType'
  860. KILLVAR 'clothNumber'
  861. end
  862. if $ARGS[0] = 'wear':
  863. !! ARGS 0 - action
  864. !! ARGS 1 - clothing type name
  865. !! ARGS 2 - clothing index
  866. gs 'clothing', 'strip'
  867. PCloswimwear = 0
  868. $clothingworntype = $ARGS[1]
  869. clothingwornnumber = ARGS[2]
  870. dynamic $ARGS[1] + '_w[<<ARGS[2]>>] = 1'
  871. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  872. dynamic '<<$ARGS[1]>>_s[<<ARGS[2]>>] = 0'
  873. if CloStyle2 = 4:
  874. $schbrand = $clothingworntype
  875. schtype = clothingwornnumber
  876. end
  877. PCloQuality = CloQuality
  878. PCloThinness = CloThinness
  879. PCloTopCut = CloTopCut
  880. PCloBra = CloBra
  881. PCloOnePiece = CloOnePiece
  882. PCloPants = CloPantsShortness
  883. PCloSkirt = CloSkirtShortness
  884. PCloPanties = CloPanties
  885. PCloStyle = CloStyle
  886. PCloStyle2 = CloStyle2
  887. PCloInhibit = CloInhibit
  888. if cheatbimbo = 0:
  889. PCloBimbo = CloBimbo
  890. !! This is counter for setting bimbo points overnight, don''t change bimbocl setting unless changing that
  891. if CloBimbo = 1: bimbocl = 1
  892. else
  893. PCloBimbo = 0
  894. CloBimbo = 0
  895. bimbocl = 0
  896. end
  897. if PCloTopCut > 1:
  898. if tits = 2 or tits = 3: PCloTopCut += 1
  899. if tits >= 4: PCloTopCut += 2
  900. if PCloTopCut > 2 and tits >=6: PCloTopCut += 1
  901. end
  902. !Calculations for clothing beauty, multiplied by natural beauty
  903. if PCloThinness > 0:
  904. if PCloThinness = 1:
  905. PXCloThinness = 150
  906. elseif PCloThinness = 2:
  907. PXCloThinness = 200
  908. elseif PCloThinness = 3:
  909. PXCloThinness = 250
  910. elseif PCloThinness = 4:
  911. PXCloThinness = 300
  912. elseif PCloThinness = 5:
  913. PXCloThinness = 350
  914. elseif PCloThinness = 6:
  915. PXCloThinness = 400
  916. end
  917. end
  918. if PCloTopCut > 0:
  919. if PCloTopCut = 1:
  920. PXCloTopCut = 100
  921. elseif PCloTopCut = 2:
  922. PXCloTopCut = 150
  923. elseif PCloTopCut = 3:
  924. PXCloTopCut = 200
  925. elseif PCloTopCut = 4:
  926. PXCloTopCut = 250
  927. elseif PCloTopCut = 5:
  928. PXCloTopCut = 300
  929. elseif PCloTopCut = 6:
  930. PXCloTopCut = 350
  931. elseif PCloTopCut >= 7:
  932. PXCloTopCut = 400
  933. end
  934. end
  935. if PCloBra = 1:
  936. PXCloTopCut = 400
  937. $braworntype = 'none'
  938. elseif PCloBra = 2:
  939. PXCloTopCut = 500
  940. end
  941. if PCloSkirt > 0:
  942. if PCloSkirt = 1:
  943. PXCloBottomShortness = 100
  944. elseif PCloSkirt = 2:
  945. PXCloBottomShortness = 150
  946. elseif PCloSkirt = 3:
  947. PXCloBottomShortness = 200
  948. elseif PCloSkirt = 4:
  949. PXCloBottomShortness = 250
  950. elseif PCloSkirt = 5:
  951. PXCloBottomShortness = 300
  952. elseif PCloSkirt = 6:
  953. PXCloBottomShortness = 350
  954. elseif PCloSkirt >= 7:
  955. PXCloBottomShortness = 400
  956. end
  957. end
  958. if PCloPants > 0:
  959. if PCloPants = 1:
  960. PXCloBottomShortness = 100
  961. elseif PCloPants = 2:
  962. PXCloBottomShortness = 150
  963. elseif PCloPants = 3:
  964. PXCloBottomShortness = 200
  965. elseif PCloPants = 4:
  966. PXCloBottomShortness = 250
  967. elseif PCloPants = 5:
  968. PXCloBottomShortness = 300
  969. elseif PCloPants = 6:
  970. PXCloBottomShortness = 350
  971. elseif PCloPants >= 7:
  972. PXCloBottomShortness = 400
  973. end
  974. end
  975. if PCloPanties = 1: PXCloBottomShortness = 400
  976. if $clothingworntype = 'danilovich_swimsuit' or $clothingworntype = 'scandalicious_swimsuit' or $clothingworntype = 'scandalicious_bikinis' or $clothingworntype = 'allure_swimsuit' or $clothingworntype = 'allure_bikinis': PCloswimwear = 1
  977. end
  978. if $ARGS[0] = 'wear_last_worn':
  979. !!contingency
  980. if $lastwornclothingtype = '': $lastwornclothingtype = 'nude'
  981. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  982. end
  983. if $ARGS[0] = 'swamp_clothes':
  984. if ARGS[1] = 1:
  985. !hessian clothing to owned, sets size and equipped.
  986. misc_outfits[1] = 1
  987. misc_outfits_s[1] = 0
  988. misc_outfits_h[1] = 100
  989. misc_outfits_b[1] = pcs_hips
  990. swamp_clothes = 1
  991. gs 'clothing', 'wear', 'misc_outfits', 1
  992. end
  993. if ARGS[1] = 0:
  994. !hessian clothing no longer owned, but not unequipped.
  995. misc_outfits[1] = 0
  996. swamp_clothes = 0
  997. end
  998. end
  999. --- clothing ---------------------------------