purses 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # purses
  2. if $ARGS[0] = 'view_purse_list':
  3. !! ARGS 0 - view_purse_list
  4. act 'Leave':gt $loc, $metka
  5. !! '<center><img src="images/locations/?/shop_name.png"></center>'
  6. '<center>Dolls (image pending)</center>'
  7. i = 1
  8. :loopdollspurses
  9. if dolls_purses[i] = 1:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''home'', ''dolls'', <<i>>"><img src="images/pc/purses/dolls/<<i>>.jpg" height="300" /></a>'
  10. i += 1
  11. if i <= ARRSIZE('dolls_purses'):jump 'loopdollspurses'
  12. '<center><img src="images/locations/city/citycenter/mall/fashionistat.png"></center>'
  13. i = 1
  14. :loopfashionistapurses
  15. if fashionista_purses[i] = 1:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''home'', ''fashionista'', <<i>>"><img src="images/pc/purses/fashionista/<<i>>.jpg" height="300" /></a>'
  16. i += 1
  17. if i <= ARRSIZE('fashionista_purses'):jump 'loopfashionistapurses'
  18. '<center><img src="images/locations/city/citycenter/mall/GM.png"></center>'
  19. i = 1
  20. :loopcheappurses
  21. if cheap_purses[i] = 1:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''home'', ''cheap'', <<i>>"><img src="images/pc/purses/cheap/<<i>>.jpg" height="300" /></a>'
  22. i += 1
  23. if i <= ARRSIZE('cheap_purses'):jump 'loopcheappurses'
  24. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  25. i = 1
  26. :loopkatspurses
  27. if kats_purses[i] = 1:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''home'', ''kats'', <<i>>"><img src="images/pc/purses/kats/<<i>>.jpg" height="300" /></a>'
  28. i += 1
  29. if i <= ARRSIZE('kats_purses'):jump 'loopkatspurses'
  30. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  31. i = 1
  32. :loopboutiquepurses
  33. if boutique_purses[i] = 1:*p '<a href="exec:gt ''purses'', ''view_purse_item'', ''home'', ''boutique'', <<i>>"><img src="images/pc/purses/moncheri/<<i>>.jpg" height="300" /></a>'
  34. i += 1
  35. if i <= ARRSIZE('boutique_purses'):jump 'loopboutiquepurses'
  36. end
  37. if $ARGS[0] = 'view_purse_item':
  38. !! ARGS 0 - view_purse_item
  39. !! ARGS 1 = action type (home, shop)
  40. !! ARGS 2 - purse type
  41. !! ARGS 3 - purse index
  42. !! ARGS 4 - price for shop
  43. cla
  44. '<center><img src="<<FUNC(''$purse_image'', $ARGS[2], ARGS[3])>>"></center>'
  45. gs 'purses', 'descriptions', $ARGS[2]
  46. if $ARGS[1] = 'shop':
  47. if dyneval('RESULT = <<$ARGS[2]>>_purses[<<ARGS[3]>>]') = 1:
  48. 'You already own this purse.'
  49. act 'Leave': gt $loc, $metka
  50. else
  51. price = ARGS[4]
  52. 'Price: <<ARGS[4]>> <b>₽</b>'
  53. act 'Leave': gt $loc, $metka
  54. if money >= price:
  55. act 'Buy':
  56. money -= price
  57. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  58. dynamic $ARGS[2] + '_pursesC[<<ARGS[3]>>] = 0'
  59. gt $loc, $metka
  60. end
  61. else
  62. 'You cannot afford this purse.'
  63. end
  64. end
  65. elseif $ARGS[1] = 'home':
  66. act 'Return':gt 'purses', 'view_purse_list', $ARGS[1]
  67. if $currentpursetype = $ARGS[2] and currentpursenumber = ARGS[3]:
  68. 'You are using this purse.'
  69. else
  70. act 'Use this purse':
  71. $currentpursetype = $ARGS[2]
  72. currentpursenumber = ARGS[3]
  73. bag = 1
  74. if menu_option = 1:dynamic $menu_addoldmenu
  75. if menu_option = 0:gs 'obj_din', 'new'
  76. gt 'purses', 'view_purse_list', $ARGS[1]
  77. end
  78. end
  79. end
  80. end
  81. if $ARGS[0] = 'descriptions':
  82. if $ARGS[1] = 'dolls':
  83. 'Let your freak flag fly with this perfect purse for the hot, independent girl that lives the alt lifestyle.'
  84. elseif $ARGS[1] = 'fashionista':
  85. 'A stylish handbag for any fashion-forward female!'
  86. elseif $ARGS[1] = 'cheap':
  87. 'A functional, if not too fashionable, handbag for carrying all of the essentials.'
  88. elseif $ARGS[1] = 'kats':
  89. 'A fun and flirty purse for any young lady looking for fun on a night out.'
  90. elseif $ARGS[1] = 'boutique':
  91. 'A high-fashion handbag for ladies with discerning tastes. Show how classy you are with this expensive accessory.'
  92. end
  93. end
  94. --- purses ---------------------------------