purses.qsrc 5.5 KB

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