mod_addedflavour_shop_maternity.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # mod_addedflavour_shop_maternity
  2. if $ARGS[0] = 'start' or $ARGS[0] = '':
  3. *clr & cla
  4. $loc = 'mod_addedflavour_shop_maternity'
  5. $loc_arg = 'start'
  6. $location_type = 'public_indoors'
  7. $menu_loc = 'mod_addedflavour_shop_maternity'
  8. $menu_arg = 'start'
  9. menu_off = 0
  10. gs 'stat'
  11. gs 'themes', 'indoors'
  12. gs 'mod_addedflavour_shop_maternity' , 'config'
  13. '<center><b><font color="maroon">Materinstvo</font></b></center>'
  14. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/locations/city/citycenter/mall/maternity/Shop.jpg"></center>'
  15. *nl
  16. '<center>This is a shop dedicated to all things pregnancy related. Here you can buy Pregnancy Clothing or items to aid the process of getting through the day.</center>'
  17. act 'Leave the Shop': minut += rand(0,2) & gt 'torgcentr'
  18. act 'View clothes': minut += rand(4,6) & gt 'mod_addedflavour_shop_maternity', 'view' , 'clothes' , 0
  19. act 'View items': minut += rand(4,6) & gt 'mod_addedflavour_shop_maternity', 'view' , 'items' , 9
  20. end
  21. if $ARGS[0] = 'view':
  22. *clr & cla
  23. $loc = 'mod_addedflavour_shop_maternity'
  24. $loc_arg = 'view'
  25. $menu_loc = 'mod_addedflavour_shop_maternity'
  26. $menu_arg = 'view'
  27. menu_off = 0
  28. modVar_AF_Temp = ARGS[2]
  29. $modVar_AF_TempStr2 = $ARGS[1]
  30. gs 'stat'
  31. '<center><b><font color="maroon">Materinstvo</font></b></center>'
  32. $modVar_AF_TempStr = $modArr_AF_MaternityItemPic[modVar_AF_Temp]
  33. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="<<$modVar_AF_TempStr>>"></center>'
  34. *nl
  35. '<center><a href="exec: gs ''mod_addedflavour_shop_maternity'' , ''previous'' "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/LeftArrow.png"></a><a href="exec: gs ''mod_addedflavour_shop_maternity'' , ''next'' "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/RightArrow.png"></a></center>'
  36. $modVar_AF_TempStr = $modArr_AF_MaternityItemName[modVar_AF_Temp]
  37. '<center><b><h3><<$modVar_AF_TempStr>></h3></b></center>'
  38. $modVar_AF_TempStr = $modArr_AF_MaternityItemDesc[modVar_AF_Temp]
  39. '<center><<$modVar_AF_TempStr>></center>'
  40. *nl
  41. if modArr_AF_MaternityItemOwned[modVar_AF_Temp] > 0 and $modArr_AF_MaternityItemName[modVar_AF_Temp] ! 'Morning Sickness Pills':
  42. '<center><b>You already own this item<b></center>'
  43. elseif modArr_AF_MaternityItemOwned[modVar_AF_Temp] > 0:
  44. modVar_AF_Temp2 = modArr_AF_MaternityItemOwned[modVar_AF_Temp]
  45. '<center><b>You have <<modVar_AF_Temp2>> pills left<b></center>'
  46. if money >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  47. act 'Buy Item (Cash)' : money -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] += 21 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  48. end
  49. if karta >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  50. act 'Buy Item (Card)' : karta -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] += 21 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  51. end
  52. elseif $modArr_AF_MaternityItemName[modVar_AF_Temp] = 'Morning Sickness Pills':
  53. modVar_AF_Temp2 = modArr_AF_MaternityItemPrice[modVar_AF_Temp]
  54. '<center><b>A Tin of 21 Pills costs <<modVar_AF_Temp2>>₽</b></center>'
  55. if money >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  56. act 'Buy Item (Cash)' : money -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] += 21 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  57. end
  58. if karta >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  59. act 'Buy Item (Card)' : karta -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] += 21 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  60. end
  61. else
  62. modVar_AF_Temp2 = modArr_AF_MaternityItemPrice[modVar_AF_Temp]
  63. '<center><b>This item costs <<modVar_AF_Temp2>>₽</b></center>'
  64. if money >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  65. act 'Buy Item (Cash)' : money -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] = 1 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  66. end
  67. if karta >= modArr_AF_MaternityItemPrice[modVar_AF_Temp]:
  68. act 'Buy Item (Card)' : karta -= modArr_AF_MaternityItemPrice[modVar_AF_Temp] & modArr_AF_MaternityItemOwned[modVar_AF_Temp] = 1 & gt 'mod_addedflavour_shop_maternity' , 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  69. end
  70. end
  71. if $modVar_AF_TempStr2 = 'clothes':
  72. act 'Switch to Item Department' : gt 'mod_addedflavour_shop_maternity', 'view' , 'items' , 9
  73. elseif $modVar_AF_TempStr2 = 'items':
  74. act 'Switch to Clothing Department' : gt 'mod_addedflavour_shop_maternity', 'view' , 'clothes' , 0
  75. end
  76. act 'Return': gt 'mod_addedflavour_shop_maternity' , 'start'
  77. end
  78. if $ARGS[0] = 'next':
  79. modVar_AF_Temp += 1
  80. if modVar_AF_Temp > 12:
  81. modVar_AF_Temp = 9
  82. elseif modVar_AF_Temp > 8 and $modVar_AF_TempStr2 = 'clothes':
  83. modVar_AF_Temp = 0
  84. end
  85. gt 'mod_addedflavour_shop_maternity', 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  86. end
  87. if $ARGS[0] = 'previous':
  88. modVar_AF_Temp -= 1
  89. if modVar_AF_Temp < 0:
  90. modVar_AF_Temp = 8
  91. elseif modVar_AF_Temp < 9 and $modVar_AF_TempStr2 = 'items':
  92. modVar_AF_Temp = 12
  93. end
  94. gt 'mod_addedflavour_shop_maternity', 'view' , $modVar_AF_TempStr2 , modVar_AF_Temp
  95. end
  96. if $ARGS[0] = 'config':
  97. if modVar_AF_MaternityShopConfig = 0:
  98. modVar_AF_MaternityShopConfig = 1
  99. KILLVAR '$modArr_AF_MaternityItemName'
  100. KILLVAR 'modArr_AF_MaternityItemPrice'
  101. KILLVAR '$modArr_AF_MaternityItemDesc'
  102. KILLVAR 'modArr_AF_MaternityItemOwned'
  103. KILLVAR '$modArr_AF_MaternityItemPic'
  104. $modArr_AF_MaternityItemName[] = 'Pregnancy Onesie'
  105. modArr_AF_MaternityItemPrice[] = 1850
  106. $modArr_AF_MaternityItemDesc[] = 'All the fabric you need and all the room to grow into. This item is an all-in-one onepiece designed to be comfortable at all stages of your pregnancy.'
  107. modArr_AF_MaternityItemOwned[] = 0
  108. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/1.jpg'
  109. $modArr_AF_MaternityItemName[] = 'Body Fitting Dress'
  110. modArr_AF_MaternityItemPrice[] = 3850
  111. $modArr_AF_MaternityItemDesc[] = 'A dress designed to follow the contours of your body while remaining stylish as those contours change as your pregnancy progresses.'
  112. modArr_AF_MaternityItemOwned[] = 0
  113. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/2.jpg'
  114. $modArr_AF_MaternityItemName[] = 'Pregnancy Throw-Over'
  115. modArr_AF_MaternityItemPrice[] = 1675
  116. $modArr_AF_MaternityItemDesc[] = 'A simple yet playful design, intended to be something you can quickly throw over your existing clothing while being accommodating to your body as it changes.'
  117. modArr_AF_MaternityItemOwned[] = 0
  118. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/3.jpg'
  119. $modArr_AF_MaternityItemName[] = 'Funny T-Shirt'
  120. modArr_AF_MaternityItemPrice[] = 1430
  121. $modArr_AF_MaternityItemDesc[] = 'A playful T-Shirt that allows you to feel comfortable yet casual.'
  122. modArr_AF_MaternityItemOwned[] = 0
  123. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/4.jpg'
  124. $modArr_AF_MaternityItemName[] = 'Corded Dress in Burgandy'
  125. modArr_AF_MaternityItemPrice[] = 4150
  126. $modArr_AF_MaternityItemDesc[] = 'A very stylish number that comes with a cord to allow you to keep it looking fitted throughout your changing size.'
  127. modArr_AF_MaternityItemOwned[] = 0
  128. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/5.jpg'
  129. $modArr_AF_MaternityItemName[] = 'Long T-Shirt'
  130. modArr_AF_MaternityItemPrice[] = 1780
  131. $modArr_AF_MaternityItemDesc[] = 'A longer T-Shirt with a playful design to draw people''s eye''s to your new life.'
  132. modArr_AF_MaternityItemOwned[] = 0
  133. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/6.jpg'
  134. $modArr_AF_MaternityItemName[] = 'Blue Dress'
  135. modArr_AF_MaternityItemPrice[] = 8940
  136. $modArr_AF_MaternityItemDesc[] = 'This knee-length dress comes with a frilled hem and plunging neckline, providing a look of elegance while remaining comfortable.'
  137. modArr_AF_MaternityItemOwned[] = 0
  138. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/7.jpg'
  139. $modArr_AF_MaternityItemName[] = 'Grey Long-Shirt'
  140. modArr_AF_MaternityItemPrice[] = 1580
  141. $modArr_AF_MaternityItemDesc[] = 'A simple design but coming with plenty of comfort.'
  142. modArr_AF_MaternityItemOwned[] = 0
  143. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/8.jpg'
  144. $modArr_AF_MaternityItemName[] = 'Pregnancy Toga'
  145. modArr_AF_MaternityItemPrice[] = 11050
  146. $modArr_AF_MaternityItemDesc[] = 'An Out There design but perfect for the summer. The dress allows air to access your skin while keeping a sense of elegance and flexibility.'
  147. modArr_AF_MaternityItemOwned[] = 0
  148. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/9.jpg'
  149. $modArr_AF_MaternityItemName[] = 'Pregnancy Ball'
  150. modArr_AF_MaternityItemPrice[] = 2475
  151. $modArr_AF_MaternityItemDesc[] = 'A Pregnancy Ball that can either provide a malleable sitting position or adaptive workout tool. <i>[<font color="Blue">Item exists at the home and can provide comfort or exercise</font>]</i>'
  152. modArr_AF_MaternityItemOwned[] = 0
  153. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/ball.jpg'
  154. $modArr_AF_MaternityItemName[] = 'Pregnancy Brace'
  155. modArr_AF_MaternityItemPrice[] = 975
  156. $modArr_AF_MaternityItemDesc[] = 'A simple but effective brace designed to re-balance your frame to better carry your weight. <i>[<font color="Blue">Item can be put on every morning and provides a Mood Boost every hour</font>]</i>'
  157. modArr_AF_MaternityItemOwned[] = 0
  158. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/brace.jpg'
  159. $modArr_AF_MaternityItemName[] = 'Pregnancy Pillow'
  160. modArr_AF_MaternityItemPrice[] = 1275
  161. $modArr_AF_MaternityItemDesc[] = 'A long flexible pillow that allows you to maneuver it into whatever form provides the best comfort. <i>[<font color="Blue">Item exists at the home and provides a Mood Boost when used, can also be used with Child</font>]</i>'
  162. modArr_AF_MaternityItemOwned[] = 0
  163. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/pillow.jpg'
  164. $modArr_AF_MaternityItemName[] = 'Morning Sickness Pills'
  165. modArr_AF_MaternityItemPrice[] = 400
  166. $modArr_AF_MaternityItemDesc[] = 'Easygoing pills in multiple flavours all of which are intended to relieve some of the burdon that comes with Morning Sickness. Price is for a tin of 21 pieces. <i>[<font color="Blue">Provides a Mood and Stamina Boost when consumed</font>]</i>'
  167. modArr_AF_MaternityItemOwned[] = 0
  168. $modArr_AF_MaternityItemPic[] = 'mod/addedflavour/images/locations/city/citycenter/mall/maternity/pills.jpg'
  169. end
  170. end
  171. --- mod_addedflavour_shop_maternity ---------------------------------