purses.qsrc 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. # purses
  2. !!2021/04/15
  3. if $ARGS[0] = 'view_purse_list':
  4. menu_off = 1
  5. gs 'stat'
  6. !! ARGS 0 - view_purse_list
  7. if $ARGS[1] = 'wardrobe':
  8. ploc = 0
  9. end
  10. if $ARGS[1] = 'store':
  11. ploc = 1
  12. end
  13. if $ARGS[1] = 'unwanted':
  14. ploc = 2
  15. end
  16. act 'Return' :gt 'wardrobe', 'start'
  17. $clothing_header = '<center><table border=1>'
  18. if $ARGS[1] ! 'wardrobe': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''wardrobe''">Switch to wardrobe list</a></TH>'
  19. if $ARGS[1] ! 'store': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''store''">Switch to stored clothing list</a></TH>'
  20. if $ARGS[1] ! 'unwanted': $clothing_header += '<TH><a href="exec:gt ''purses'', ''view_purse_list'', ''unwanted''">Switch to unwanted clothing list</a></TH></center>'
  21. '<<$clothing_header>>'
  22. if $ARGS[1] = 'wardrobe':
  23. '<h3><center><b><font color="maroon">Wardrobe list</font></b></center></h3>'
  24. elseif $ARGS[1] = 'store':
  25. '<h3><center><b><font color="maroon">Stored purses list</font></b></center></h3>'
  26. elseif $ARGS[1] = 'unwanted':
  27. '<h3><center><b><font color="maroon">Unwanted purses list</font></b></center></h3>'
  28. elseif $ARGS[1] = 'sell':
  29. '<h3><center><b><font color="maroon">Choose an item to sell</font></b></center></h3>'
  30. end
  31. '<center><img src="images/locations/city/island/dolls/shop_name.png"></center>'
  32. i = 1
  33. :loopdollspurses
  34. 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/items/dolls/purses/<<i>>.jpg" height="300" /></a>'
  35. i += 1
  36. if i <= ARRSIZE('dolls_purses'):jump 'loopdollspurses'
  37. '<center><img src="images/locations/pushkin/bomba/shop_name.png"></center>'
  38. i = 1
  39. :loopbomba_purses
  40. if bomba_purses[i] = 1 and bomba_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''bomba'', <<i>>"><img src="images/pc/items/bomba/purses/<<i>>.jpg" height="300" /></a>'
  41. i += 1
  42. if i <= ARRSIZE('bomba_purses'):jump 'loopbomba_purses'
  43. '<center><img src="images/locations/city/citycenter/mall/fashionista.png"></center>'
  44. i = 1
  45. :loopfashionistapurses
  46. 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/items/fashionista/purses/<<i>>.jpg" height="300" /></a>'
  47. i += 1
  48. if i <= ARRSIZE('fashionista_purses'):jump 'loopfashionistapurses'
  49. '<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  50. i = 1
  51. :loopgmpurses
  52. if gm_purses[i] = 1 and gm_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''gm'', <<i>>"><img src="images/pc/items/gm/purses/<<i>>.jpg" height="300" /></a>'
  53. i += 1
  54. if i <= ARRSIZE('gm_purses'):jump 'loopgmpurses'
  55. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  56. i = 1
  57. :loop_cats_purses
  58. if cats_purses[i] = 1 and cats_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''cats'', <<i>>"><img src="images/pc/items/cats/purses/<<i>>.jpg" height="300" /></a>'
  59. i += 1
  60. if i <= ARRSIZE('cats_purses'):jump 'loop_cats_purses'
  61. '<center><img src="images/locations/pavlovsk/coco/shop_name.png"></center>'
  62. i = 1
  63. :loop_coco_purses
  64. if coco_purses[i] = 1 and coco_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''coco'', <<i>>"><img src="images/pc/items/coco/purses/<<i>>.jpg" height="300" /></a>'
  65. i += 1
  66. if i <= ARRSIZE('coco_purses'):jump 'loop_coco_purses'
  67. '<center><img src="images/locations/city/island/flamingos/shop_name.png"></center>'
  68. i = 1
  69. :loop_flamingos_purses
  70. if flamingos_purses[i] = 1 and flamingos_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''flamingos'', <<i>>"><img src="images/pc/items/flamingos/purses/<<i>>.jpg" height="300" /></a>'
  71. i += 1
  72. if i <= ARRSIZE('flamingos_purses'):jump 'loop_flamingos_purses'
  73. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  74. i = 1
  75. :loop_danilovich_purses
  76. if danilovich_purses[i] = 1 and danilovich_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''danilovich'', <<i>>"><img src="images/pc/items/danilovich/purses/<<i>>.jpg" height="300" /></a>'
  77. i += 1
  78. if i <= ARRSIZE('danilovich_purses'):jump 'loop_danilovich_purses'
  79. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  80. i = 1
  81. :loop_moncheri_purses
  82. if moncheri_purses[i] = 1 and moncheri_pursesS[i] = ploc:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''<<$ARGS[1]>>'', ''moncheri'', <<i>>"><img src="images/pc/items/moncheri/purses/<<i>>.jpg" height="300" /></a>'
  83. i += 1
  84. if i <= ARRSIZE('moncheri_purses'):jump 'loop_moncheri_purses'
  85. end
  86. if $ARGS[0] = 'view_purse_item':
  87. menu_off = 1
  88. gs 'stat'
  89. !! ARGS 0 - view_purse_item
  90. !! ARGS 1 = action type (home, shop)
  91. !! ARGS 2 - purse type
  92. !! ARGS 3 - purse index
  93. !! ARGS 4 - price for shop
  94. cla
  95. '<center><img src="<<FUNC(''$purse_image'', $ARGS[2], ARGS[3])>>"></center>'
  96. gs 'purses', 'descriptions', $ARGS[2]
  97. if $ARGS[1] = 'shop':
  98. if dyneval('RESULT = <<$ARGS[2]>>_purses[<<ARGS[3]>>]') = 1:
  99. 'You already own this purse.'
  100. act 'Leave': gt $loc, $loc_arg
  101. else
  102. price = ARGS[4]
  103. 'Price: <<ARGS[4]>> <b>₽</b>'
  104. act 'Leave': gt $loc, $loc_arg
  105. if money >= price:
  106. act 'Buy (cash)':
  107. money -= price
  108. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  109. if bag = 0:
  110. bag = 1
  111. $currentpursetype = $ARGS[2]
  112. currentpursenumber = ARGS[3]
  113. end
  114. gt $loc, $loc_arg
  115. end
  116. else
  117. 'You do not have enough cash to buy this purse.'
  118. end
  119. if karta + bankDebtLimit >= price:
  120. act 'Buy (card)':
  121. karta -= price
  122. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  123. if bag = 0:
  124. bag = 1
  125. $currentpursetype = $ARGS[2]
  126. currentpursenumber = ARGS[3]
  127. end
  128. gt $loc, $loc_arg
  129. end
  130. else
  131. 'You do not have enough money in your bank to buy this purse.'
  132. end
  133. end
  134. else
  135. act 'Return':gt 'purses', 'view_purse_list', $ARGS[1]
  136. if $currentpursetype = $ARGS[2] and currentpursenumber = ARGS[3]:
  137. 'You are using this purse.'
  138. else
  139. if ploc = 0:
  140. 'This purse is in your wardrobe.'
  141. act 'Use this purse':
  142. $currentpursetype = $ARGS[2]
  143. currentpursenumber = ARGS[3]
  144. bag = 1
  145. gt 'wardrobe', 'start'
  146. end
  147. elseif ploc = 1:
  148. 'This purse is in storage.'
  149. elseif ploc = 2:
  150. 'This purse is unwanted.'
  151. end
  152. if ploc ! 1:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  153. if ploc ! 0:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  154. if ploc ! 2:$RESULT += 'Move this purse to <a href="exec:gt ''purses'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  155. if $ARGS[1] ! 'store':
  156. act 'Move to storage': gt 'purses', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  157. end
  158. if $ARGS[1] ! 'unwanted':
  159. act 'Move to unwanted': gt 'purses', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  160. end
  161. if $ARGS[1] ! 'wardrobe':
  162. act 'Move to wardrobe': gt 'purses', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  163. end
  164. end
  165. end
  166. end
  167. if $ARGS[0] = 'dest0':
  168. *clr
  169. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 0'
  170. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  171. end
  172. if $ARGS[0] = 'dest1':
  173. *clr
  174. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 1'
  175. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  176. end
  177. if $ARGS[0] = 'dest2':
  178. *clr
  179. dynamic '<<$ARGS[2]>>_pursesS[<<ARGS[3]>>] = 2'
  180. gt 'purses', 'view_purse_list', $ARGS[1], $ARGS[2], ARGS[3]
  181. end
  182. if $ARGS[0] = 'descriptions':
  183. if $ARGS[1] = 'dolls':
  184. 'Let your freak flag fly with this perfect purse for the hot, independent girl that lives the alt lifestyle.'
  185. elseif $ARGS[1] = 'bomba':
  186. 'Yeah you have attitude and with this bag everyone knows it.'
  187. elseif $ARGS[1] = 'coco':
  188. 'A trendy bag for a young adult.'
  189. elseif $ARGS[1] = 'flamingos':
  190. 'You look like the girl about town with this bag.'
  191. elseif $ARGS[1] = 'danilovich':
  192. 'A sports bag for all your junk. Practical and durable but not fashionable'
  193. elseif $ARGS[1] = 'fashionista':
  194. 'A stylish handbag for any fashion-forward female!'
  195. elseif $ARGS[1] = 'gm':
  196. 'A functional, if not too fashionable, handbag for carrying all of the essentials.'
  197. elseif $ARGS[1] = 'cats':
  198. 'Is it a bag? Is it a pet? Is it a toy? Who cares you stand out and look cute.'
  199. elseif $ARGS[1] = 'moncheri':
  200. 'A high-fashion handbag for ladies with discerning tastes. Show how classy you are with this expensive accessory.'
  201. end
  202. end
  203. if $ARGS[0] = 'remove':
  204. killvar '$currentpursetype'
  205. killvar 'currentpursenumber'
  206. bag = 0
  207. end
  208. --- purses ---------------------------------