1
0

shop.qsrc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. # shop
  2. !! This is the supermarket, located in several places
  3. !! Main entrance
  4. if $ARGS[0] = 'start':
  5. CLOSE ALL
  6. if sound = 0:PLAY 'sound/shop.mp3',30
  7. $shoplocation = 'main'
  8. end
  9. if $ARGS[0] = 'start' or $ARGS[0] = 'move': minut += 1
  10. !! Main area
  11. if $shoplocation = 'main':
  12. *clr & cla
  13. '<center><b><font color="maroon">Supermarket</font></b></center>'
  14. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  15. if hour < 8 or hour > 20:
  16. 'The supermarket is currently closed.'
  17. act 'Leave the store':minut += 3 & gt $loc
  18. exit
  19. end
  20. 'In the hall stands an <a href="exec:$shoplocation = ''ATM'' & gt ''shop'', ''move''">ATM</a>, from which you can withdraw money from your bank account.'
  21. 'There is a branch of communication giants <a href="exec:$shoplocation = ''megafon'' & gt ''shop'', ''move''">MegaFon</a>.'
  22. 'On the other side is on the wall <a href="exec: gs ''noticeboard'',''start''">Public notice board</a>, where you can check various private and official advertisement.'
  23. '<br>Most of the space in the supermarket is taken up by the <a href="exec:$shoplocation = ''grocery'' & gt ''shop'', ''move''">grocery department</a>, but the store has many smaller departments as well. <a href="exec:$shoplocation=''cosmetics'' & gt ''shop'', ''move''">Cosmetics</a>, <a href="exec:$shoplocation = ''hardware'' & gt ''shop'', ''move''">hardware</a>, <a href="exec:$shoplocation = ''clothing'' & gt ''shop'', ''move''">clothing</a> and the department of <a href="exec:$shoplocation = ''tech'' & gt ''shop'', ''move''">household appliances</a>. Not far from the entrance is a <a href="exec:$shoplocation = ''icecream'' & gt ''shop'', ''move''">counter selling ice cream</a>.'
  24. gs 'stat'
  25. gs 'themes', 'indoors'
  26. !! The store in the town and in the altstart only
  27. if $loc = 'pavCommercial' and StoryLine = 1:
  28. if week < 6 and hour >= 8 and hour < 16:
  29. *nl
  30. 'Your sister <a href="exec:$shoplocation = ''Anya'' & gt ''shop'', ''move''">Anya</a> is sitting at the cash register.'
  31. end
  32. end
  33. !! Store in the residential district
  34. if $loc = 'street':
  35. if rand(1, 20) = 20:
  36. if dimaQW = 0:
  37. 'By the store entrance a man is looking at you appreciatively.'
  38. act 'Return the look':gt 'event', 'dima'
  39. elseif dimaQW = 1:
  40. 'In the lobby of the store you notice Dima and you are frozen with fear, you want to run, but your legs won''t respond.'
  41. 'Your heart is thumping in your chest, your vision narrows, you feel faint.'
  42. act 'Pass out':gt 'event', 'scoreslut1'
  43. else
  44. 'You meet the same Dima whos friend fucked and abused you. Dima grins confidently and says, "Hello."'
  45. act 'Hello':
  46. cla
  47. '"Come with me, My wife''s away", says Dima.'
  48. act 'Fuck no':gt 'shop', 'start'
  49. act 'I deserve this':
  50. *clr & cla
  51. if rand(1, 2) = 1:
  52. cla
  53. stat['vaginal'] += 1
  54. oral += 1
  55. pcs_throat += 1
  56. spafinloc = 12
  57. gs 'cum_manage'
  58. swallow += 1
  59. pcs_horny = 0
  60. minut += 10
  61. 'Dima takes you to his house and orders you to lie across the sofa. You get on into position, he calls you a bitch and a starts fucking you in the mouth.'
  62. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostdt2.jpg"></center>'
  63. 'Dima finally finishes in your mouth, you obediently swallow and lick the remnants of sperm off his big cock.'
  64. act 'Leave': minut += 3 & gt 'street'
  65. else
  66. cla
  67. stat['vaginal'] += 1
  68. stat['anal'] += 1
  69. spafinloc = 4
  70. gs 'cum_manage'
  71. spank += 1
  72. boom = 5
  73. pcs_horny = 0
  74. minut += 30
  75. 'Dima has brings you to his house and right in the corridor begins to kiss and undress you. When you are naked he takes you to the bathroom.'
  76. 'There he unscrews the showerhead and puts the hose in your ass. Quickly you feel the fullness and Dima sits you on the toilet. After the rough enema, he bends you over and puts his big dick in your ass.'
  77. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostanal2.jpg"></center>'
  78. 'Dima fucks you in the ass whilst slapping your butt, at first it is painful, but gradually you get it and it feels amazing. Finally, your ass fills with hot liquid and Dima moans and grabs your buttocks.'
  79. act 'Leave': minut += 3 & gt 'street'
  80. end
  81. end
  82. end
  83. end
  84. end
  85. end
  86. '<br>The store is crowded with shoppers.'
  87. !! This is connected to the trade mission
  88. if TorgPredZ > 0:
  89. !! the location of the shop hasn''t been done today
  90. if ($loc = 'street' and StreetShopTPday ! daystart) or ($loc = 'Nord' and nordShopTPday ! daystart) or ($loc = 'torgcentr' and downShopTPday ! daystart):
  91. act 'Arrange products':
  92. *clr & cla
  93. if $loc = 'street':StreetShopTPday = daystart
  94. if $loc = 'Nord':nordShopTPday = daystart
  95. if $loc = 'torgcentr':downShopTPday = daystart
  96. mtprand = rand(40, 130)
  97. minut += mtprand
  98. TorgPredZ -= 1
  99. TorgPredZV += 1
  100. gs 'stat'
  101. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  102. 'You arranged the products for quite a while and when I finally managed, then went to the cashier and you check it struck.'
  103. act 'Exit':gt 'shop', 'start'
  104. end
  105. end
  106. end
  107. act 'Leave the store': minut += 3 & gt $loc
  108. exit
  109. end
  110. if $shoplocation = 'ATM':
  111. '<center><b><font color="maroon">ATM</font></b></center>'
  112. '<center><img <<$set_imgh>> src="images/locations/shared/store/atm.jpg"></center>'
  113. if bankAccount = 1:
  114. if karta >= 0:
  115. 'You have <<karta>> <b>₽</b> in your account.'
  116. 'You have an overdraft limit of <font color="blue"><<bankDebtLimit>></font>!'
  117. else
  118. 'You are overdrawn by <font color="red"><<-1 * karta>> <b>₽</b></font>.'
  119. 'You have a remaining credit limit of <font color="blue"><<bankDebtLimit + karta>></font>!'
  120. end
  121. '<br>ATM Deposit Fee: 100 <b>₽</b>'
  122. if atmDeposit = 0:
  123. act 'Deposit money':
  124. cla
  125. minut += 5
  126. kartaINATM = input ("How much money you want to deposit into the account? Note: A service charge of 100 <b>₽</b> will be deducted from the amount deposited.")
  127. if kartaINATM < 100 or kartaINATM > money:
  128. 'This is not a valid input.'
  129. else
  130. atmDeposit += kartaINATM - 100
  131. atmDepositDate = daystart + 2
  132. money -= kartaINATM
  133. '<br>You deposited <<kartaINATM>> <b>₽</b> into your account.'
  134. 'It will take 2 days for funds to be available. Your new balance will be <<karta+atmDeposit>> <b>₽</b>.'
  135. end
  136. gs 'stat'
  137. act 'Move away': gt 'shop'
  138. end
  139. else
  140. '<br>★ Processing deposit of <<atmDeposit>> <b>₽</b> in <<atmDepositDate - daystart>> days.'
  141. end
  142. if karta + bankDebtLimit > 0:
  143. act 'Withdraw money from the ATM':
  144. cla
  145. minut += 5
  146. kartaOUT = input ("How much money you want to withdraw?")
  147. if kartaOUT <= 0 or kartaOUT > karta + bankDebtLimit:
  148. '<br>Invalid operation.'
  149. else
  150. karta -= kartaOUT
  151. money += kartaOUT
  152. if karta > 0:
  153. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have <<karta>> <b>₽</b> left in your bank account.'
  154. elseif karta = 0:
  155. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have no money left in your bank account.'
  156. else
  157. '<br>You withdraw <<kartaOUT>> <b>₽</b>. <font color="red">Your bank account is overdrawn by <b><<karta>> ₽</b>.</font>'
  158. end
  159. end
  160. gs 'stat'
  161. act 'Move away': gt 'shop'
  162. end
  163. else
  164. 'You have maxed out your overdraft.'
  165. end
  166. else
  167. 'You don''t have a bank account yet!'
  168. end
  169. act 'Move away':gt 'shop', 'start'
  170. end
  171. if $shoplocation = 'grocery':
  172. *clr & cla
  173. '<center><b><font color="maroon">Grocery</font></b></center>'
  174. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop1.jpg"></center>'
  175. if hour < 8 or hour > 20:
  176. 'The grocery is currently closed.'
  177. act 'Leave the grocery':gt 'shop', 'start'
  178. exit
  179. end
  180. !! output from purchase
  181. if $message ! '':
  182. '<center>'+$message+'</center>'
  183. killvar '$message'
  184. else
  185. ''
  186. end
  187. *pl '<center><table align="center" width=80%>'
  188. *P FUNC ('$stock_item', 1, 'Regular food', 80, 'eda', $CURLOC)
  189. *P FUNC ('$stock_item', 10, 'Regular food', 800, 'eda', $CURLOC)
  190. *P FUNC ('$stock_item', 1, 'Diet food', 300, 'edaD', $CURLOC)
  191. *P FUNC ('$stock_item', 10, 'Diet food', 3000, 'edaD', $CURLOC)
  192. *P FUNC ('$stock_item', 10, 'Tea biscuits', 400, 'pranik', $CURLOC)
  193. *P FUNC ('$single_stock_item', 1, 'Bottle of water', 100, 'bottle', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  194. *P FUNC ('$single_stock_item', 1, 'Sandwich', 100, 'buterbrod', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  195. *P FUNC ('$single_stock_item', 1, 'Cheap Bottle of wine', 200, 'wine', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  196. *P '</table></center>'
  197. gs 'stat'
  198. gs 'themes', 'indoors'
  199. act 'Leave the grocery':gt 'shop', 'start'
  200. end
  201. if $shoplocation= 'cosmetics':
  202. *clr & cla
  203. '<center><b><font color="maroon">Cosmetics Department</font></b></center>'
  204. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop2.jpg"></center>'
  205. if hour < 8 or hour > 20:
  206. 'The cosmetics department is currently closed.'
  207. act 'Leave the cosmetics department':gt 'shop', 'start'
  208. exit
  209. end
  210. !! output from purchase
  211. if $message ! '':
  212. '<center>'+$message+'</center>'
  213. killvar '$message'
  214. else
  215. ''
  216. end
  217. *pl '<center><table align="center" width=80%>'
  218. *P FUNC ('$stock_item', 50, 'Cosmetics', 1300, 'kosmetica', $CURLOC)
  219. *P FUNC ('$stock_item', 10, 'Plain false lashes', 1500, 'falselashesplain',$CURLOC)
  220. *P FUNC ('$stock_item', 3, 'Mink false lashes', 900, 'falselashesmink',$CURLOC)
  221. *P FUNC ('$stock_item', 40, 'Razors', 700, 'stanok', $CURLOC)
  222. *P FUNC ('$stock_item', 20, 'Sunblock', 500, 'krem', $CURLOC)
  223. *P FUNC ('$stock_item', 20, 'Tampons', 200, 'tampon', $CURLOC)
  224. *P FUNC ('$stock_item', 20, 'Sanitary napkins', 100, 'sanpad', $CURLOC)
  225. *P FUNC ('$stock_item', 30, 'Shampoo', 250, 'shampoo', $CURLOC)
  226. *P FUNC ('$stock_item', 10, 'Hair scrunchies', 80, 'hscrunch', $CURLOC)
  227. *P FUNC ('$stock_item', 12, 'Hair pins', 100, 'hpingrip', $CURLOC)
  228. *P FUNC ('$stock_item', 10, 'Wipes', 50, 'salfetka', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  229. *P FUNC ('$stock_item', 10, 'Portable makeup', 700, 'kosmetitka', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  230. *P FUNC ('$stock_item', 20, 'Mouthwash', 150, 'mouthwash', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  231. *P FUNC ('$single_stock_item', 1, 'Comb', 150, 'greben', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a handbag')
  232. *P '</table></center>'
  233. gs 'stat'
  234. gs 'themes', 'indoors'
  235. act 'Leave the cosmetics department': gt 'shop', 'start'
  236. if $loc = 'torgcentr': gs 'shoplifting', 'city'
  237. end
  238. if $shoplocation = 'hardware':
  239. *clr & cla
  240. '<center><b><font color="maroon">Division of household goods</font></b></center>'
  241. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop3.jpg"></center>'
  242. if hour < 8 or hour > 20:
  243. 'The hardware department is currently closed.'
  244. act 'Leave the hardware department':gt 'shop', 'start'
  245. exit
  246. end
  247. !! output from purchase
  248. if $message ! '':
  249. '<center>'+$message+'</center>'
  250. killvar '$message'
  251. else
  252. ''
  253. end
  254. *pl '<center><table align="center" width=80%>'
  255. *P FUNC ('$stock_item', 20, 'Dishwashing detergent', 500, 'fairy', $CURLOC)
  256. *P FUNC ('$stock_item', 30, 'Clothing detergent', 500, 'poroshok', $CURLOC)
  257. *P FUNC ('$stock_item', 5, 'Plates', 450, 'cltarelka', $CURLOC)
  258. *P FUNC ('$stock_item', 5, 'Fabric', 250, 'tkan', $CURLOC)
  259. *P FUNC ('$single_stock_item', 1, 'Sewing kit', 500, 'sewing_kit', $CURLOC)
  260. *P FUNC ('$single_stock_item', 1, 'Umbrella', 1000, 'umbrella', $CURLOC, '', iif(bag > 0, 0, 1), 'You need a purse')
  261. *P '</table></center>'
  262. *nl
  263. gs 'stat'
  264. gs 'themes', 'indoors'
  265. act 'Leave the hardware department':gt 'shop', 'start'
  266. 'On the counter you can see fabric suitable for sewing. It''s sold in large squares costing 50 <b>₽</b> each. You have <<tkan>> squares of fabric.'
  267. end
  268. if $shoplocation = 'clothing':
  269. *clr & cla
  270. '<center><b><font color="maroon">Department of Women''s Clothing</font></b></center>'
  271. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop4.jpg"></center>'
  272. if hour < 8 or hour > 20:
  273. 'The women''s clothing department is currently closed.'
  274. act 'Leave the women''s clothing department':gt 'shop', 'start'
  275. exit
  276. else
  277. if $message ! '':
  278. '<center>'+$message+'</center>'
  279. killvar '$message'
  280. else
  281. ''
  282. end
  283. 'Women''s clothing at unbeatable prices, panties and bras 300<b>₽</b> each'
  284. gs 'stat'
  285. gs 'themes', 'indoors'
  286. act 'Leave the women''s clothing department':gt 'shop', 'start'
  287. act 'View clothing': $shoplocation = 'clothing1' & gt 'shop'
  288. act 'View underwear': $shoplocation = 'underwear' & gt 'shop'
  289. if swimwear[4] = 0:
  290. act 'View swimwear':
  291. *clr & cla
  292. '<center><img <<$set_imgh>> src="images/pc/clothing/12swimwear/4.jpg"></center>'
  293. gs 'clothing_attributes', 'swimwear', 4
  294. 'Swimwear 4'
  295. FUNC('$clothing_name', 'swimwear', 4)
  296. if CloInhibit > pcs_inhib:'You don''t feel daring enough to buy an outfit this revealing.'
  297. 'Costs 1,000 <b>₽</b>.'
  298. act 'Leave':gt 'shop'
  299. if money >= 1000 and CloInhibit <= pcs_inhib:
  300. act 'Buy':
  301. cla
  302. money -= 1000
  303. swimwear[4] = 1
  304. swimwearH[4] = 60
  305. swimwearB[4] = pcs_hips
  306. gt 'shop', '<font color="green">You bought <b>swimwear 4</b>.</font>'
  307. end
  308. end
  309. end
  310. end
  311. if coat[1] = 0:
  312. act 'View coats':
  313. *clr & cla
  314. '<center><img <<$set_imgh>> src="images/pc/clothing/11coat/1.jpg"></center>'
  315. gs 'clothing_attributes', 'coat', 1
  316. 'Coat 1'
  317. FUNC('$clothing_name', 'coat', 1)
  318. if CloInhibit > pcs_inhib:'You don''t feel daring enough to buy an outfit this revealing.'
  319. 'Costs 5,000 <b>₽</b>.'
  320. act 'Leave':gt 'shop'
  321. if money >= 5000 and CloInhibit <= pcs_inhib:
  322. act 'Buy':
  323. cla
  324. money -= 5000
  325. coat[1] = 1
  326. coatH[1] = 60
  327. gt 'shop', '<font color="green">You bought <b>coat 1</b>.</font>'
  328. end
  329. end
  330. end
  331. end
  332. if konki!1:
  333. 'A pair of ice-skates are available for 3000 <b>₽</b>.'
  334. if money >= 3000:
  335. act 'Buy ice skates (3000 <b>₽</b>)':
  336. *clr & cla
  337. money -= 3000
  338. konki = 1
  339. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/lake/konki_shop.jpg"></center>'
  340. 'You buy a pair of skates.'
  341. act 'Move away from the counter':gt'shop'
  342. end
  343. end
  344. end
  345. end
  346. end
  347. if $shoplocation = 'clothing1':
  348. *clr & cla
  349. if $loc ! 'shop': $loc_bak = $loc
  350. $loc = 'shop'
  351. '<center><B>Click on an outfit to view details</B></center>'
  352. if office[1] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''office'', 1, 3000"><img src="images/pc/clothing/5office/1.jpg" height="250" /></a>'
  353. if office[2] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''office'', 2, 3000"><img src="images/pc/clothing/5office/2.jpg" height="250" /></a>'
  354. *nl
  355. if cheap[68] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 68, 1500"><img src="images/pc/clothing/1cheap/68.jpg" height="250" /></a>'
  356. if cheap[3] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 3, 1500"><img src="images/pc/clothing/1cheap/3.jpg" height="250" /></a>'
  357. if cheap[80] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 80, 1500"><img src="images/pc/clothing/1cheap/80.jpg" height="250" /></a>'
  358. if cheap[10] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 10, 1500"><img src="images/pc/clothing/1cheap/10.jpg" height="250" /></a>'
  359. if cheap[45] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 45, 1500"><img src="images/pc/clothing/1cheap/45.jpg" height="250" /></a>'
  360. if cheap[51] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''cheap'', 51, 1500"><img src="images/pc/clothing/1cheap/51.jpg" height="250" /></a>'
  361. *nl
  362. if exercise[4] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''exercise'', 4, 3000"><img src="images/pc/clothing/7exercise/4.jpg" height="250" /></a>'
  363. if exercise[20] = 0: *p '<a href="exec:gt ''clothing'', ''view_clothing_item'', ''shop'', ''exercise'', 20, 3000"><img src="images/pc/clothing/7exercise/20.jpg" height="250" /></a>'
  364. act 'Return':
  365. $loc = $loc_bak
  366. $shoplocation = 'clothing'
  367. gt 'shop'
  368. end
  369. end
  370. !! Women''s clothing underwear viewer
  371. if $shoplocation = 'underwear':
  372. *clr & cla
  373. if $loc ! 'shop': $loc_bak = $loc
  374. $loc = 'shop'
  375. '<center><B>Click on an item to view details</B></center>'
  376. if basic_panties[7] = 0:*p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''cheap'', 7, 300"><img src="images/pc/panties/basic/7.jpg" height="250" /></a>'
  377. if basic_panties[9] = 0:*p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''cheap'', 9, 300"><img src="images/pc/panties/basic/9.jpg" height="250" /></a>'
  378. if basic_panties[12] = 0:*p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''cheap'', 12, 300"><img src="images/pc/panties/basic/12.jpg" height="250" /></a>'
  379. if basic_panties[21] = 0:*p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''cheap'', 21, 300"><img src="images/pc/panties/basic/21.jpg" height="250" /></a>'
  380. if basic_panties[37] = 0:*p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''cheap'', 37, 300"><img src="images/pc/panties/basic/37.jpg" height="250" /></a>'
  381. *nl
  382. if basic_bras[11] = 0:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''cheap'', 11, 300"><img src="images/pc/bras/basic/11.jpg" height="250" /></a>'
  383. if basic_bras[12] = 0:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''cheap'', 12, 300"><img src="images/pc/bras/basic/12.jpg" height="250" /></a>'
  384. if basic_bras[16] = 0:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''cheap'', 16, 300"><img src="images/pc/bras/basic/16.jpg" height="250" /></a>'
  385. if basic_bras[18] = 0:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''cheap'', 18, 300"><img src="images/pc/bras/basic/18.jpg" height="250" /></a>'
  386. act 'Return':
  387. $loc = $loc_bak
  388. $shoplocation = 'clothing'
  389. gt 'shop'
  390. end
  391. end
  392. !! Household appliances
  393. if $shoplocation = 'tech':
  394. *clr & cla
  395. '<center><b><font color="maroon">Department of household appliances</font></b></center>'
  396. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop5.jpg"></center>'
  397. if hour < 8 or hour > 20:
  398. 'The household appliance department is currently closed.'
  399. act 'Leave the appliance department':gt 'shop', 'start'
  400. exit
  401. end
  402. if $message ! '':
  403. '<center>'+$message+'</center>'
  404. killvar '$message'
  405. else
  406. ''
  407. end
  408. *pl '<center><table align="center" width=80%>'
  409. *P FUNC ('$single_stock_item', 1, 'Small TV', 15000, 'TV', $CURLOC, '', iif(home_owned[1] > 0 or home_owned[3] > 0 or home_owned[4] = 1 or home_owned[5] > 2, 0, 1), 'You need your own home')
  410. *P FUNC ('$single_stock_item', 2, 'Large Plasma TV', 30000, 'TV', $CURLOC, '', iif(home_owned[1] > 0 or home_owned[3] > 0 or home_owned[4] = 1 or home_owned[5] > 2, 0, 1), 'You need your own home')
  411. *P FUNC ('$single_stock_item', 1, 'Computer', 40000, 'komp', $CURLOC)
  412. *p FUNC ('$single_stock_item', 1, 'Computer game Dead Sunset', 800, 'GameCD2', $CURLOC, '', iif(komp > 0, 0, 1), 'You need a computer')
  413. *P FUNC ('$single_stock_item', 1, 'Dishwasher', 28000, 'posudomashina', $CURLOC, '', iif(home_owned[1] > 0 or home_owned[3] > 0 or home_owned[4] = 1 or home_owned[5] > 2, 0, 1), 'You need your own home')
  414. *P FUNC ('$single_stock_item', 1, 'Washing machine', 30000, 'stiralka', $CURLOC, '', iif(home_owned[1] > 0 or home_owned[3] > 0 or home_owned[4] = 1 or home_owned[5] > 2, 0, 1), 'You need your own home')
  415. *P FUNC ('$single_stock_item', 1, 'Camera', 20000, 'zenit', $CURLOC)
  416. *P FUNC ('$single_stock_item', 1, 'Mini camera disguised as a cigarette pack', 100000, 'minifoto', $CURLOC)
  417. *P FUNC ('$single_stock_item', 1, 'Webcam', 2000, 'webcamera', $CURLOC, '', iif((npc_rel['A11']>=30 and webcamera = 0) or (camwhore = 1 and webcamera = 0), 0, 1), 'You have no use for this')
  418. *P '</table></center>'
  419. gs 'stat'
  420. gs 'themes', 'indoors'
  421. act 'Leave the appliance department':gt 'shop', 'start'
  422. end
  423. !! Ice cream counter
  424. if $shoplocation = 'icecream':
  425. 'Ice cream is available for sale for 50 <b>₽</b>.'
  426. act 'Move away from the counter':gt 'shop', 'start'
  427. if money >= 50:
  428. act 'Buy ice cream':
  429. *clr & cla
  430. money -= 50
  431. fat += 3
  432. pcs_mood += 50
  433. pcs_hydra += 60
  434. pcs_energy += 30
  435. cumspclnt = 2
  436. gs 'cum_cleanup'
  437. pcs_breath = 0
  438. gs 'stat'
  439. '<center><img <<$set_imgh>> src="images/shared/food/icecreem.jpg"></center>'
  440. 'You bought ice cream and ate it not going far.'
  441. act 'Move away from the counter':gt 'shop', 'start'
  442. end
  443. end
  444. end
  445. if $shoplocation = 'megafon':
  446. *clr & cla
  447. minut+=3
  448. gs'stat'
  449. i = 0
  450. '<center><b><font color = maroon>MegaFon shop</font></B></center>'
  451. '<center><img src="images/system/phone/megafon2.jpg" ></center>'
  452. *pl '<center><table align="center">'
  453. :loopcard
  454. if i = 0:
  455. n = 5
  456. price = 60
  457. $buy_link = '<a' + iif(money >= 60, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  458. elseif i = 1:
  459. n = 10
  460. price = 115
  461. $buy_link = '<a' + iif(money >= 115, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  462. elseif i = 2:
  463. n = 20
  464. price = 220
  465. $buy_link = '<a' + iif(money >= 220, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  466. elseif i = 3:
  467. n = 50
  468. price = 520
  469. $buy_link = '<a' + iif(money >= 520, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  470. end
  471. i += 1
  472. '<tr><td align="center"><<n>> hour internet card </td><td align="right">(you have <<internet>> hours of internet access) </td><td align="right"><<$buy_link>> </td><td align="left">for <<price>> <b>₽</b></td></tr>'
  473. if i < 4:
  474. jump 'loopcard'
  475. end
  476. '</table></center>'
  477. act 'Return to the Supermarket':gt'shop','start'
  478. if money > 0:
  479. act 'Put the money on the phone':
  480. cla
  481. set minut = minut + 5
  482. obmennik = input ("How many <b>₽</b> do you want to deposit?")
  483. if obmennik <= 0:
  484. '<center><br><b>Do you want to think again?</b></center>'
  485. act 'Exit Department':gt'shop','start'
  486. else
  487. if money < obmennik:
  488. '<center><br>You do not have <b><<obmennik>></b> <b>₽</b>.</center>'
  489. act 'Exit Department':gt'shop','start'
  490. end
  491. if money >= obmennik:
  492. set balans = balans + obmennik
  493. set money = money - obmennik
  494. clr
  495. gs'stat'
  496. '<center><br>You put <b><<obmennik>></b> <b>₽</b> to the account.</center>'
  497. act 'Exit Department':gt'shop','start'
  498. end
  499. end
  500. end
  501. end
  502. end
  503. if $shoplocation = 'Anya':
  504. cla
  505. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister.jpg"></center>'
  506. gs'dinsister'
  507. dynamic $sischecks
  508. '"<<$pcs_nickname>>, do not disturb me at work, can''t you see I have customers?""'
  509. act '<B>Move away</B>':gt'shop','start'
  510. end
  511. --- shop ---------------------------------