purses.qsrc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. # purses
  2. if $ARGS[0] = 'view_purse_list':
  3. menu_off = 1
  4. gs 'stat'
  5. !! ARGS 0 - view_purse_list
  6. if $ARGS[1] = 'wardrobe':
  7. ploc = 0
  8. end
  9. if $ARGS[1] = 'store':
  10. ploc = 1
  11. end
  12. if $ARGS[1] = 'unwanted':
  13. ploc = 2
  14. end
  15. act 'Return' :gt 'wardrobe', 'start'
  16. $clothing_header = '<center><table border=1>'
  17. if $ARGS[1] ! 'wardrobe': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''wardrobe''">Switch to wardrobe list</a></TH>'
  18. if $ARGS[1] ! 'store': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''store''">Switch to stored clothing list</a></TH>'
  19. if $ARGS[1] ! 'unwanted': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''unwanted''">Switch to unwanted clothing list</a></TH></center>'
  20. '<<$clothing_header>>'
  21. if $ARGS[1] = 'wardrobe':
  22. '<h3><center><b><font color="maroon">Wardrobe list</font></b></center></h3>'
  23. elseif $ARGS[1] = 'store':
  24. '<h3><center><b><font color="maroon">Stored purses list</font></b></center></h3>'
  25. elseif $ARGS[1] = 'unwanted':
  26. '<h3><center><b><font color="maroon">Unwanted purses list</font></b></center></h3>'
  27. elseif $ARGS[1] = 'sell':
  28. '<h3><center><b><font color="maroon">Choose an item to sell</font></b></center></h3>'
  29. end
  30. '<center><img src="images/locations/city/island/dolls.png"></center>'
  31. i = 1
  32. :loopdollspurses
  33. if dolls_purses[i] = 1 and dolls_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''dolls'', <<i>>"><img src="images/pc/purses/dolls/<<i>>.jpg" height="300" /></a>'
  34. i += 1
  35. if i <= ARRSIZE('dolls_purses'):jump 'loopdollspurses'
  36. '<center><img src="images/locations/city/citycenter/mall/fashionistat.png"></center>'
  37. i = 1
  38. :loopfashionistapurses
  39. if fashionista_purses[i] = 1 and fashionista_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''fashionista'', <<i>>"><img src="images/pc/purses/fashionista/<<i>>.jpg" height="300" /></a>'
  40. i += 1
  41. if i <= ARRSIZE('fashionista_purses'):jump 'loopfashionistapurses'
  42. '<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  43. i = 1
  44. :loopcheappurses
  45. if cheap_purses[i] = 1 and cheap_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''cheap'', <<i>>"><img src="images/pc/purses/cheap/<<i>>.jpg" height="300" /></a>'
  46. i += 1
  47. if i <= ARRSIZE('cheap_purses'):jump 'loopcheappurses'
  48. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  49. i = 1
  50. :loopkatspurses
  51. if kats_purses[i] = 1 and kats_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''kats'', <<i>>"><img src="images/pc/purses/kats/<<i>>.jpg" height="300" /></a>'
  52. i += 1
  53. if i <= ARRSIZE('kats_purses'):jump 'loopkatspurses'
  54. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  55. i = 1
  56. :loopboutiquepurses
  57. if boutique_purses[i] = 1 and boutique_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''boutique'', <<i>>"><img src="images/pc/purses/moncheri/<<i>>.jpg" height="300" /></a>'
  58. i += 1
  59. if i <= ARRSIZE('boutique_purses'):jump 'loopboutiquepurses'
  60. end
  61. if $ARGS[0] = 'view_purse_item':
  62. menu_off = 1
  63. gs 'stat'
  64. !! ARGS 0 - view_purse_item
  65. !! ARGS 1 = action type (home, shop)
  66. !! ARGS 2 - purse type
  67. !! ARGS 3 - purse index
  68. !! ARGS 4 - price for shop
  69. cla
  70. '<center><img src="<<FUNC(''$purse_image'', $ARGS[2], ARGS[3])>>"></center>'
  71. gs 'purses', 'descriptions', $ARGS[2]
  72. if $ARGS[1] = 'shop':
  73. if dyneval('RESULT = <<$ARGS[2]>>_purses[<<ARGS[3]>>]') = 1:
  74. 'You already own this purse.'
  75. act 'Leave': gt $loc, $loc_arg
  76. else
  77. price = ARGS[4]
  78. 'Price: <<ARGS[4]>> <b>₽</b>'
  79. act 'Leave': gt $loc, $loc_arg
  80. if money >= price:
  81. act 'Buy (cash)':
  82. money -= price
  83. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  84. if bag = 0:
  85. bag = 1
  86. $currentpursetype = $ARGS[2]
  87. currentpursenumber = ARGS[3]
  88. end
  89. gt $loc, $loc_arg
  90. end
  91. else
  92. 'You do not have enough cash to buy this purse.'
  93. end
  94. if karta + bankDebtLimit >= price:
  95. act 'Buy (card)':
  96. karta -= price
  97. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  98. if bag = 0:
  99. bag = 1
  100. $currentpursetype = $ARGS[2]
  101. currentpursenumber = ARGS[3]
  102. end
  103. gt $loc, $loc_arg
  104. end
  105. else
  106. 'You do not have enough money in your bank to buy this purse.'
  107. end
  108. end
  109. else
  110. act 'Return':gt 'purses', 'view_purse_list', $ARGS[1]
  111. if $currentpursetype = $ARGS[2] and currentpursenumber = ARGS[3]:
  112. 'You are using this purse.'
  113. else
  114. if sloc = 0:
  115. 'This purse is in your wardrobe.'
  116. act 'Use this purse':
  117. $currentpursetype = $ARGS[2]
  118. currentpursenumber = ARGS[3]
  119. bag = 1
  120. gt 'wardrobe', 'start'
  121. end
  122. elseif sloc = 1:
  123. 'This purse is in storage.'
  124. elseif sloc = 2:
  125. 'This purse is unwanted.'
  126. end
  127. if sloc ! 1:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  128. if sloc ! 0:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  129. if sloc ! 2:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  130. if $ARGS[1] ! 'store':
  131. act 'Move to storage': gt 'purses', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  132. end
  133. if $ARGS[1] ! 'unwanted':
  134. act 'Move to unwanted': gt 'purses', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  135. end
  136. if $ARGS[1] ! 'wardrobe':
  137. act 'Move to wardrobe': gt 'purses', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  138. end
  139. end
  140. end
  141. end
  142. if $ARGS[0] = 'dest0':
  143. *clr
  144. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 0'
  145. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  146. end
  147. if $ARGS[0] = 'dest1':
  148. *clr
  149. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 1'
  150. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  151. end
  152. if $ARGS[0] = 'dest2':
  153. *clr
  154. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 2'
  155. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  156. end
  157. if $ARGS[0] = 'descriptions':
  158. if $ARGS[1] = 'dolls':
  159. 'Let your freak flag fly with this perfect purse for the hot, independent girl that lives the alt lifestyle.'
  160. elseif $ARGS[1] = 'fashionista':
  161. 'A stylish handbag for any fashion-forward female!'
  162. elseif $ARGS[1] = 'cheap':
  163. 'A functional, if not too fashionable, handbag for carrying all of the essentials.'
  164. elseif $ARGS[1] = 'kats':
  165. 'A fun and flirty purse for any young lady looking for fun on a night out.'
  166. elseif $ARGS[1] = 'boutique':
  167. 'A high-fashion handbag for ladies with discerning tastes. Show how classy you are with this expensive accessory.'
  168. end
  169. end
  170. if $ARGS[0] = 'remove':
  171. killvar '$currentpursetype'
  172. killvar 'currentpursenumber'
  173. bag = 0
  174. end
  175. --- purses ---------------------------------