shop.qsrc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. # shop
  2. !! This is the supermarket, located in several places
  3. !! Main entrance
  4. !!2022/03/17
  5. if $ARGS[0] = 'start':
  6. $menu_loc = 'shop'
  7. $menu_arg = 'start'
  8. menu_off = 0
  9. CLOSE ALL
  10. $location_type = 'public_indoors'
  11. gs 'themes', 'indoors'
  12. if sound = 0:PLAY 'sound/shop.mp3',30
  13. $shoplocation = 'main'
  14. end
  15. if $ARGS[0] = 'start' or $ARGS[0] = 'move': minut += 1
  16. !! Main area
  17. if $shoplocation = 'main':
  18. *clr & cla
  19. '<center><b><font color="maroon">Supermarket</font></b></center>'
  20. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  21. if hour < 8 or hour > 20:
  22. 'The supermarket is currently closed.'
  23. if $loc = 'shop':
  24. if $loc_bak = 'shop':
  25. $loc = torgpred
  26. else
  27. $loc = $loc_bak
  28. end
  29. end
  30. act 'Leave the store':minut += 3 & gt $loc
  31. exit
  32. end
  33. 'An <a href="exec:$shoplocation = ''ATM'' & gt ''shop'', ''move''">ATM</a>, from which you can withdraw money from your bank account, stands against a wall.'
  34. 'There is a branch of the communications giant <a href="exec:$shoplocation = ''megafon'' & gt ''shop'', ''move''">MegaFon</a>.'
  35. 'A <a href="exec: gs ''noticeboard'',''start''">Public notice board</a>, where you can check various private and official advertisements, is sitting on a nearby wall.'
  36. '<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.'
  37. 'These include <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 <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>.'
  38. gs 'stat'
  39. gs 'themes', 'indoors'
  40. gs 'family_schedule'
  41. !! The store in the town and in the altstart only
  42. if $loc = 'pav_commercial':
  43. if anyaloc = 7:
  44. *nl
  45. 'Your sister <a href="exec:$shoplocation = ''Anya'' & gt ''shop'', ''move''">Anya</a> is sitting at the cash register.'
  46. end
  47. end
  48. !! Store in the residential district
  49. if $loc = 'city_residential':
  50. if rand(1, 20) = 20:
  51. if dimaQW = 0:
  52. 'A man is standing by the entrance, looking at you appreciatively.'
  53. act 'Return the look':gt 'event', 'dima'
  54. elseif dimaQW = 1:
  55. 'You notice Dima nearby and are frozen with fear. You want to run, but your legs won''t respond.'
  56. 'Your heart thumps in your chest, your vision narrows and you feel faint.'
  57. act 'Pass out':gt 'event', 'scoreslut1'
  58. else
  59. 'You meet the same Dima whose friend fucked and abused you. Dima grins confidently. "Hello there..."'
  60. act 'Hello':
  61. cla
  62. '"Come with me. My wife''s away..." he says with a grin.'
  63. gs 'willpower', 'sex', 'resist'
  64. if will_cost <= pcs_willpwr:
  65. act 'No (<<will_cost>> Willpower)':
  66. gs 'willpower', 'pay', 'resist'
  67. gt 'shop', 'start'
  68. end
  69. else
  70. act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  71. end
  72. act 'I deserve this':
  73. *clr & cla
  74. if rand(1, 2) = 1:
  75. cla
  76. 'Dima takes you to his house and orders you to lie across the sofa. You get into position and he calls you a bitch before he starts fucking you in the mouth.'
  77. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostdt2.jpg"></center>'
  78. 'Dima finally finishes in your mouth. You obediently swallow and lick the remnants of sperm off his cock.'
  79. gs 'arousal', 'bj', 10, 'sub', 'deepthroat', 'humiliation'
  80. gs 'arousal', 'end'
  81. gs 'cum_call', 'mouth_swallow', 'A169', 1
  82. gs 'stat'
  83. act 'Leave': minut += 3 & gt 'city_residential'
  84. else
  85. cla
  86. gs 'pain', 6, 'asscheeks', 'slap'
  87. spank += 1
  88. 'Dima brings you to his house and begins to kiss and undress you in the hall. Once you''re naked, he takes you to the bathroom.'
  89. 'He unscrews the shower head and shoves the hose in your ass. You feel the rush of water quickly filling you before Dima sits you on the toilet. After the rough enema, he bends you over and inserts his dick into your ass.'
  90. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostanal2.jpg"></center>'
  91. 'He fucks and slaps your ass for a few minutes before he moans and you feel a warmth filling your ass.'
  92. gs 'arousal', 'anal', 30, 'sub', 'rough', 'humiliation'
  93. gs 'arousal', 'end'
  94. gs 'cum_call', 'anus', 'A169', 1
  95. gs 'stat'
  96. act 'Leave': minut += 3 & gt 'city_residential'
  97. end
  98. end
  99. end
  100. end
  101. end
  102. end
  103. '<br>The store is crowded with shoppers.'
  104. !! This is connected to the trade mission
  105. if TorgPredZ > 0:
  106. !! the location of the shop hasn''t been done today
  107. if ($loc = 'city_residential' and StreetShopTPday ! daystart) or ($loc = 'city_industrial' and nordShopTPday ! daystart) or ($loc = 'torgcentr' and downShopTPday ! daystart):
  108. act 'Promote products':
  109. *clr & cla
  110. if $loc = 'city_residential':StreetShopTPday = daystart
  111. if $loc = 'city_industrial':nordShopTPday = daystart
  112. if $loc = 'torgcentr':downShopTPday = daystart
  113. mtprand = rand(40, 130)
  114. minut += mtprand
  115. TorgPredZ -= 1
  116. TorgPredZV += 1
  117. gs 'stat'
  118. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  119. 'You promote the products for quite a while, and when you finally finish, you go to the cashier and tell them that they sold.'
  120. act 'Leave':gt 'shop', 'start'
  121. end
  122. end
  123. end
  124. act 'Leave the store': minut += 3 & gt $loc
  125. exit
  126. end
  127. if $shoplocation = 'ATM':
  128. '<center><b><font color="maroon">ATM</font></b></center>'
  129. '<center><img <<$set_imgh>> src="images/locations/shared/store/atm.jpg"></center>'
  130. if bankAccount = 1:
  131. if karta >= 0:
  132. 'You have <<karta>> <b>₽</b> in your account.'
  133. 'You have an overdraft limit of <font color="blue"><<bankDebtLimit>></font>!'
  134. else
  135. 'You are overdrawn by <font color="red"><<-1 * karta>> <b>₽</b></font>.'
  136. 'You have a remaining credit limit of <font color="blue"><<bankDebtLimit + karta>></font>!'
  137. end
  138. '<br>ATM Deposit Fee: 100 <b>₽</b>'
  139. if atmDeposit = 0:
  140. act 'Deposit money':
  141. cla
  142. minut += 5
  143. kartaINATM = input ("How much money do you want to deposit into the account? Note: A service charge of 100 <b>₽</b> will be deducted from the amount deposited.")
  144. if kartaINATM < 100 or kartaINATM > money:
  145. 'This is not a valid input.'
  146. else
  147. atmDeposit += kartaINATM - 100
  148. atmDepositDate = daystart + 2
  149. money -= kartaINATM
  150. '<br>You deposit <<kartaINATM>> <b>₽</b> into your account.'
  151. 'It will take 2 days for funds to be available. Your new balance will be <<karta+atmDeposit>> <b>₽</b>.'
  152. end
  153. gs 'stat'
  154. act 'Move away': gt 'shop'
  155. end
  156. else
  157. '<br>★ Processing deposit of <<atmDeposit>> <b>₽</b> in <<atmDepositDate - daystart>> days.'
  158. end
  159. if karta + bankDebtLimit > 0:
  160. act 'Withdraw money from the ATM':
  161. cla
  162. minut += 5
  163. kartaOUT = input ("How much money do you want to withdraw?")
  164. if kartaOUT <= 0 or kartaOUT > karta + bankDebtLimit:
  165. '<br>Invalid operation.'
  166. else
  167. karta -= kartaOUT
  168. money += kartaOUT
  169. if karta > 0:
  170. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have <<karta>> <b>₽</b> left in your bank account.'
  171. elseif karta = 0:
  172. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have no money left in your bank account.'
  173. else
  174. '<br>You withdraw <<kartaOUT>> <b>₽</b>. <font color="red">Your bank account is overdrawn by <b><<karta>> ₽</b>.</font>'
  175. end
  176. end
  177. gs 'stat'
  178. act 'Move away': gt 'shop'
  179. end
  180. else
  181. 'You have maxed out your overdraft.'
  182. end
  183. else
  184. 'You don''t have a bank account yet!'
  185. end
  186. act 'Move away':gt 'shop', 'start'
  187. end
  188. if $shoplocation = 'grocery':
  189. *clr & cla
  190. '<center><b><font color="maroon">Grocery</font></b></center>'
  191. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop1.jpg"></center>'
  192. if hour < 8 or hour > 20:
  193. 'The grocery department is currently closed.'
  194. act 'Leave':gt 'shop', 'start'
  195. exit
  196. end
  197. !! output from purchase
  198. if $message ! '':
  199. '<center>'+$message+'</center>'
  200. killvar '$message'
  201. else
  202. ''
  203. end
  204. *pl '<center><table align="center" width=80%>'
  205. *p func ('$stock_item', 1, 'Regular food', 80, 'eda', $curloc)
  206. *p func ('$stock_item', 10, 'Regular food', 800, 'eda', $curloc)
  207. *p func ('$stock_item', 1, 'Diet food', 300, 'edaD', $curloc)
  208. *p func ('$stock_item', 10, 'Diet food', 3000, 'edaD', $curloc)
  209. *p func ('$stock_item', 10, 'Tea biscuits', 400, 'pranik', $curloc)
  210. *p func ('$single_stock_item', 1, 'Bottle of water', 100, 'bottle', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  211. *p func ('$single_stock_item', 1, 'Sandwich', 100, 'buterbrod', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  212. *p func ('$single_stock_item', 1, 'Cheap Bottle of wine', 200, 'wine', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  213. *p '</table></center>'
  214. gs 'stat'
  215. gs 'themes', 'indoors'
  216. act 'Leave the grocery department':gt 'shop', 'start'
  217. act 'Go to the pet aisle':gt 'shop', 'dog_items'
  218. end
  219. if $ARGS[0] = 'dog_items':
  220. *clr & cla
  221. minut += 1
  222. menu_off = 1
  223. $location_type = 'public_indoors'
  224. gs 'stat'
  225. '<center><img <<$set_imgh>> src="images/characters/shared/rex/pet_isle.jpg"></center>'
  226. 'You''re currently in the pet aisle, where you can buy food, treats and other things for your dog.'
  227. act 'Leave': gt 'shop', 'start'
  228. if curr_home ! 2:
  229. act 'Buy dog food':
  230. *clr & cla
  231. minut += 1
  232. gs 'stat'
  233. '<center><img <<$set_imgh>> src="images/characters/shared/rex/dog_food.jpg"></center>'
  234. 'The store sells dog food for 600 <b>₽</b>. Inside each pack is enough food for 20 meals. You have <<objects[''dog_food'']>>.'
  235. if money >= 600:
  236. act 'Buy enough for 20 meals (600 <b>₽</b>, pay cash)':
  237. money -= 600
  238. objects['dog_food'] += 20
  239. gt 'shop', 'dog_items'
  240. end
  241. else
  242. '<br>You don''t have enough money to buy food.'
  243. end
  244. if money >= 1200:
  245. act 'Buy enough for 40 meals (1200 <b>₽</b>, pay cash)':
  246. money -= 1200
  247. objects['dog_food'] += 40
  248. gt 'shop', 'dog_items'
  249. end
  250. end
  251. if money >= 2400:
  252. act 'Buy enough for 80 meals (2400 <b>₽</b>, pay cash)':
  253. money -= 2400
  254. objects['dog_food'] += 80
  255. gt 'shop', 'dog_items'
  256. end
  257. end
  258. end
  259. else
  260. '<br>You don''t need to buy dog food. Your parents pay for it.'
  261. end
  262. act 'Buy some dog treats':
  263. *clr & cla
  264. minut += 1
  265. gs 'stat'
  266. '<center><img <<$set_imgh>> src="images/characters/shared/rex/treat_'+rand(0,2)+'.jpg"></center>'
  267. 'The store sells dog treats for 300 <b>₽</b>. Inside each pack are 20 treats. You have <<objects[''treats'']>>.'
  268. act 'Go back': gt 'shop', 'dog_items'
  269. if money >= 300:
  270. act 'Buy a pack (300 <b>₽</b>, pay cash)':
  271. money -= 300
  272. objects['treats'] += 20
  273. gt 'shop', 'dog_items'
  274. end
  275. else
  276. 'You don''t have enough money to buy a pack.'
  277. end
  278. end
  279. act 'Buy a chew toy for your dog':
  280. *clr & cla
  281. minut += 1
  282. gs 'stat'
  283. '<center><img <<$set_imgh>> src="images/characters/shared/rex/chew.jpg"></center>'
  284. 'The store sells a chew toy for 800 <b>₽</b>.'
  285. act 'Go back': gt 'shop', 'dog_items'
  286. if money >= 800:
  287. act 'Buy one (800 <b>₽</b>, pay cash)':
  288. money -= 800
  289. objects['chew'] += 10
  290. gt 'shop', 'dog_items'
  291. end
  292. else
  293. 'You don''t have enough money to buy it.'
  294. end
  295. end
  296. if objects['toys'] = 0:
  297. act 'Buy fetch balls':
  298. *clr & cla
  299. minut += 1
  300. gs 'stat'
  301. '<center><img <<$set_imgh>> src="images/characters/shared/rex/balls.jpg"></center>'
  302. 'The store sells rubber balls for 900 <b>₽</b> that you can use to play fetch with your dog.'
  303. act 'Go back': gt 'shop', 'dog_items'
  304. if money >= 900:
  305. act 'Buy them (900 <b>₽</b>, pay cash)':
  306. money -= 900
  307. objects['toys'] = 1
  308. gt 'shop', 'dog_items'
  309. end
  310. else
  311. 'You don''t have enough money to buy them.'
  312. end
  313. end
  314. end
  315. end
  316. if $shoplocation= 'cosmetics':
  317. *clr & cla
  318. '<center><b><font color="maroon">Cosmetics Department</font></b></center>'
  319. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop2.jpg"></center>'
  320. if hour < 8 or hour > 20:
  321. 'The cosmetics department is currently closed.'
  322. act 'Leave':gt 'shop', 'start'
  323. exit
  324. end
  325. !! output from purchase
  326. if $message ! '':
  327. '<center>'+$message+'</center>'
  328. killvar '$message'
  329. else
  330. ''
  331. end
  332. *pl '<center><table align="center" width=80%>'
  333. *p func ('$stock_item', 50, 'Cosmetics', 1300, 'kosmetica', $curloc)
  334. *p func ('$stock_item', 30, 'Moisturizer', 2100, 'item_moisturizer', $curloc)
  335. *P func ('$stock_item', 30, 'Lip balm', 127, 'lipbalm', $curloc)
  336. *p func ('$stock_item', 10, 'Plain false lashes', 1500, 'falselashesplain',$curloc)
  337. *p func ('$stock_item', 3, 'Mink false lashes', 900, 'falselashesmink',$curloc)
  338. *p func ('$stock_item', 25, 'Razors (number of shaves)', 350, 'stanok', $curloc)
  339. *p func ('$stock_item', 20, 'Sunblock', 500, 'krem', $curloc)
  340. *p func ('$stock_item', 40, 'Deodorant', 200, 'deodorant', $curloc)
  341. *p func ('$stock_item', 20, 'Tampons', 200, 'tampon', $curloc)
  342. *p func ('$stock_item', 20, 'Sanitary napkins', 100, 'sanpad', $curloc)
  343. *p func ('$stock_item', 30, 'Shampoo', 250, 'shampoo', $curloc)
  344. *p func ('$stock_item', 10, 'Hair scrunchies', 80, 'hscrunch', $curloc)
  345. *p func ('$stock_item', 12, 'Hair pins', 100, 'hpingrip', $curloc)
  346. *p func ('$stock_item', 10, 'Wipes', 50, 'salfetka', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  347. *p func ('$stock_item', 10, 'Portable makeup', 700, 'kosmetitka', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  348. *p func ('$stock_item', 20, 'Mouthwash', 150, 'mouthwash', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  349. *p func ('$single_stock_item', 1, 'Comb', 150, 'greben', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  350. *p func ('$single_stock_item', 1, 'Compact Mirror', 1150, 'compact_mirror', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
  351. *p '</table></center>'
  352. gs 'stat'
  353. gs 'themes', 'indoors'
  354. act 'Leave the cosmetics department': gt 'shop', 'start'
  355. if $loc = 'torgcentr': gs 'shoplifting', 'city'
  356. end
  357. if $shoplocation = 'hardware':
  358. *clr & cla
  359. '<center><b><font color="maroon">Division of household goods</font></b></center>'
  360. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop3.jpg"></center>'
  361. if hour < 8 or hour > 20:
  362. 'The hardware department is currently closed.'
  363. act 'Leave':gt 'shop', 'start'
  364. exit
  365. end
  366. !! output from purchase
  367. if $message ! '':
  368. '<center>'+$message+'</center>'
  369. killvar '$message'
  370. else
  371. ''
  372. end
  373. *pl '<center><table align="center" width=80%>'
  374. *p func ('$stock_item', 20, 'Dishwashing detergent', 500, 'fairy', $curloc)
  375. *p func ('$stock_item', 30, 'Clothing detergent', 500, 'poroshok', $curloc)
  376. *p func ('$stock_item', 5, 'Plates', 450, 'cltarelka', $curloc)
  377. *p func ('$stock_item', 5, 'Fabric', 250, 'tkan', $curloc)
  378. *p func ('$single_stock_item', 1, 'Sewing kit', 500, 'sewing_kit', $curloc)
  379. *p func ('$single_stock_item', 1, 'Umbrella', 1000, 'umbrella', $curloc, '', iif(bag > 0, 0, 1), 'You need a purse')
  380. *p '</table></center>'
  381. *nl
  382. gs 'stat'
  383. gs 'themes', 'indoors'
  384. act 'Leave the hardware department':gt 'shop', 'start'
  385. 'You see fabric suitable for sewing on the counter. It''s sold in large squares costing 50 <b>₽</b> each. You have <<tkan>> squares of fabric.'
  386. if pod_whore_countQW > 15 and paint_blue = 0 and money >= 200:
  387. act 'Buy paint to cover graffiti (200 <b>₽</b>)':
  388. money -= 200
  389. paint_blue = 1
  390. gt 'shop', '<font color="green">You bought a tin of paint.</font>'
  391. end
  392. end
  393. end
  394. if $shoplocation = 'clothing':
  395. *clr & cla
  396. '<center><b><font color="maroon">Department of Women''s Clothing</font></b></center>'
  397. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop4.jpg"></center>'
  398. 'This department only sells cheap underwear and ice skates.'
  399. if hour < 8 or hour > 20:
  400. 'The women''s clothing department is currently closed.'
  401. act 'Leave':gt 'shop', 'start'
  402. exit
  403. else
  404. if $message ! '':
  405. '<center>'+$message+'</center>'
  406. killvar '$message'
  407. else
  408. ''
  409. end
  410. 'Women''s panties and bras 300<b>₽</b> each'
  411. gs 'stat'
  412. gs 'themes', 'indoors'
  413. act 'Leave the women''s clothing department':gt 'shop', 'start'
  414. act 'View underwear': $shoplocation = 'underwear' & gt 'shop'
  415. if konki!1:
  416. 'A pair of ice-skates are available for 3000 <b>₽</b>.'
  417. if money >= 3000:
  418. act 'Buy ice skates (3000 <b>₽</b>)':
  419. *clr & cla
  420. money -= 3000
  421. konki = 1
  422. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/lake/konki_shop.jpg"></center>'
  423. 'You buy a pair of ice skates.'
  424. act 'Move away from the counter':gt'shop'
  425. end
  426. end
  427. end
  428. end
  429. end
  430. !! Women''s clothing underwear viewer
  431. if $shoplocation = 'underwear':
  432. *clr & cla
  433. if $loc ! 'shop': $loc_bak = $loc
  434. $loc = 'shop'
  435. '<center><B>Click on an item to view details</B></center>'
  436. if cheap_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="150" /></a>'
  437. if cheap_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="150" /></a>'
  438. if cheap_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="150" /></a>'
  439. if cheap_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="150" /></a>'
  440. if cheap_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="150" /></a>'
  441. *nl
  442. if cheap_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="150" /></a>'
  443. if cheap_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="150" /></a>'
  444. if cheap_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="150" /></a>'
  445. if cheap_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="150" /></a>'
  446. act 'Return':
  447. $loc = $loc_bak
  448. $shoplocation = 'clothing'
  449. gt 'shop'
  450. end
  451. end
  452. !! Household appliances
  453. if $shoplocation = 'tech':
  454. *clr & cla
  455. '<center><b><font color="maroon">Department of household appliances</font></b></center>'
  456. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop5.jpg"></center>'
  457. if hour < 8 or hour > 20:
  458. 'The household appliance department is currently closed.'
  459. act 'Leave':gt 'shop', 'start'
  460. exit
  461. end
  462. if $message ! '':
  463. '<center>'+$message+'</center>'
  464. killvar '$message'
  465. else
  466. ''
  467. end
  468. *pl '<center><table align="center" width=80%>'
  469. *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')
  470. *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')
  471. *p func ('$single_stock_item', 1, 'Computer', 40000, 'komp', $curloc)
  472. *p func ('$single_stock_item', 1, 'Computer game Dead Sunset', 800, 'GameCD2', $curloc, '', iif(komp > 0, 0, 1), 'You need a computer')
  473. *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')
  474. *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')
  475. *p func ('$single_stock_item', 1, 'Camera', 20000, 'zenit', $curloc)
  476. *p func ('$single_stock_item', 1, 'Mini camera disguised as a cigarette pack', 100000, 'minifoto', $curloc)
  477. *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')
  478. *p '</table></center>'
  479. gs 'stat'
  480. gs 'themes', 'indoors'
  481. act 'Leave the appliance department':gt 'shop', 'start'
  482. end
  483. !! Ice cream counter
  484. if $shoplocation = 'icecream':
  485. '<center><img <<$set_imgh>> src="images/shared/store/icecreamcounter.jpg"></center>'
  486. 'Ice cream is available for 50 <b>₽</b>.'
  487. act 'Move away from the counter':gt 'shop', 'start'
  488. if money >= 50:
  489. act 'Buy ice cream':
  490. *clr & cla
  491. money -= 50
  492. fat += 3
  493. pcs_mood += 50
  494. pcs_hydra += 60
  495. pcs_energy += 30
  496. cumspclnt = 2
  497. gs 'cum_cleanup'
  498. pcs_breath = 0
  499. gs 'stat'
  500. '<center><img <<$set_imgh>> src="images/shared/food/icecreem.jpg"></center>'
  501. 'You buy some ice cream and eat it.'
  502. act 'Move away from the counter':gt 'shop', 'start'
  503. end
  504. end
  505. end
  506. if $shoplocation = 'megafon':
  507. *clr & cla
  508. minut+=3
  509. gs'stat'
  510. i = 0
  511. '<center><b><font color = maroon>MegaFon shop</font></B></center>'
  512. '<center><img src="images/system/phone/megafon2.jpg" ></center>'
  513. *pl '<center><table align="center">'
  514. :loopcard
  515. if i = 0:
  516. n = 5
  517. price = 60
  518. $buy_link = '<a' + iif(money >= 60, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  519. elseif i = 1:
  520. n = 10
  521. price = 115
  522. $buy_link = '<a' + iif(money >= 115, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  523. elseif i = 2:
  524. n = 20
  525. price = 220
  526. $buy_link = '<a' + iif(money >= 220, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  527. elseif i = 3:
  528. n = 50
  529. price = 520
  530. $buy_link = '<a' + iif(money >= 520, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  531. end
  532. i += 1
  533. '<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>'
  534. if i < 4:
  535. jump 'loopcard'
  536. end
  537. '</table></center>'
  538. act 'Return to the supermarket':gt'shop','start'
  539. if money > 0:
  540. act 'Put credit in your phone':
  541. cla
  542. set minut = minut + 5
  543. obmennik = input ("How much <b>₽</b> do you want to add?")
  544. if obmennik <= 0:
  545. '<center><br><b>Invalid amount.</b></center>'
  546. act 'Leave':gt'shop','start'
  547. else
  548. if money < obmennik:
  549. '<center><br>You do not have <b><<obmennik>></b> <b>₽</b>.</center>'
  550. act 'Leave':gt'shop','start'
  551. end
  552. if money >= obmennik:
  553. set balans = balans + obmennik
  554. set money = money - obmennik
  555. clr
  556. gs'stat'
  557. '<center><br>You add <b><<obmennik>></b> <b>₽</b> worth of credit to your phone account.</center>'
  558. act 'Leave':gt'shop','start'
  559. end
  560. end
  561. end
  562. end
  563. end
  564. if $shoplocation = 'Anya':
  565. cla
  566. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/anyabusywork.jpg"></center>'
  567. gs 'sister_chat', 'checks'
  568. '"Don''t disturb me at work, <<$pcs_nickname>>! Can''t you see that I have customers?""'
  569. act 'Move away':gt'shop','start'
  570. end
  571. --- shop ---------------------------------