shop.qsrc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. # shop
  2. !! This is the supermarket, located in several places
  3. !! Main entrance
  4. if $ARGS[0] = 'start':
  5. $menu_loc = 'shop'
  6. $menu_arg = 'start'
  7. menu_off = 0
  8. CLOSE ALL
  9. $location_type = 'public_indoors'
  10. gs 'themes', 'indoors'
  11. if sound = 0:PLAY 'sound/shop.mp3',30
  12. $shoplocation = 'main'
  13. end
  14. if $ARGS[0] = 'start' or $ARGS[0] = 'move': minut += 1
  15. !! Main area
  16. if $shoplocation = 'main':
  17. $backimage = ''
  18. if $loc = 'shop': $loc = $loc_bak
  19. *clr & cla
  20. '<center><b><font color="maroon">Supermarket</font></b></center>'
  21. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  22. if hour < 8 or hour > 20:
  23. 'The supermarket is currently closed.'
  24. if $loc = 'shop':
  25. if $loc_bak = 'shop':
  26. $loc = torgpred
  27. else
  28. $loc = $loc_bak
  29. end
  30. end
  31. act 'Leave the store': minut += 3 & gt $loc
  32. exit
  33. end
  34. '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.'
  35. 'There is a branch of the communications giant <a href="exec:$shoplocation = ''megafon'' & gt ''shop'', ''move''">MegaFon</a>.'
  36. '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.'
  37. '<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.'
  38. '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>.'
  39. gs 'stat'
  40. gs 'themes', 'indoors'
  41. gs 'family_schedule'
  42. !! The store in the town and in the altstart only
  43. if $loc = 'pav_commercial':
  44. if locat['Anya'] = 7:
  45. *nl
  46. 'Your sister <a href="exec:$shoplocation = ''Anya'' & gt ''shop'', ''move''">Anya</a> is sitting at the cash register.'
  47. end
  48. end
  49. !! Store in the residential district
  50. if $loc = 'city_residential':
  51. if rand(1, 20) = 20:
  52. if dimaQW = 0:
  53. 'A man is standing by the entrance, looking at you appreciatively.'
  54. act 'Return the look':gt 'event', 'dima'
  55. elseif dimaQW = 1:
  56. 'You notice Dima nearby and are frozen with fear. You want to run, but your legs won''t respond.'
  57. 'Your heart thumps in your chest, your vision narrows and you feel faint.'
  58. act 'Pass out':gt 'event', 'scoreslut1'
  59. else
  60. 'You meet the same Dima whose friend fucked and abused you. Dima grins confidently. "Hello there..."'
  61. act 'Hello':
  62. cla
  63. '"Come with me. My wife''s away..." he says with a grin.'
  64. gs 'willpower', 'sex', 'resist'
  65. if pcs_willpwr < will_cost:
  66. act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  67. else
  68. act 'No (<<will_cost>> Willpower)':
  69. gs 'willpower', 'pay', 'resist'
  70. gt 'shop', 'start'
  71. end
  72. end
  73. act 'I deserve this':
  74. *clr & cla
  75. if rand(1, 2) = 1:
  76. cla
  77. '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.'
  78. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostdt2.jpg"></center>'
  79. 'Dima finally finishes in your mouth. You obediently swallow and lick the remnants of sperm off his cock.'
  80. gs 'arousal', 'bj', 10, 'sub', 'deepthroat', 'humiliation'
  81. gs 'arousal', 'end'
  82. gs 'cum_call', 'mouth_swallow', 'A169', 1
  83. gs 'stat'
  84. act 'Leave': minut += 3 & gt 'city_residential'
  85. else
  86. cla
  87. gs 'pain', 6, 'asscheeks', 'slap'
  88. spank += 1
  89. '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.'
  90. '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.'
  91. '<center><img <<$set_imgh>> src="images/locations/city/residential/street/sex/gostanal2.jpg"></center>'
  92. 'He fucks and slaps your ass for a few minutes before he moans and you feel a warmth filling your ass.'
  93. gs 'arousal', 'anal', 30, 'sub', 'rough', 'humiliation'
  94. gs 'arousal', 'end'
  95. gs 'cum_call', 'anus', 'A169', 1
  96. gs 'stat'
  97. act 'Leave': minut += 3 & gt 'city_residential'
  98. end
  99. end
  100. end
  101. end
  102. end
  103. end
  104. '<br>The store is crowded with shoppers.'
  105. !! This is connected to the trade mission
  106. if TorgPredZ > 0:
  107. !! the location of the shop hasn''t been done today
  108. if ($loc = 'city_residential' and StreetShopTPday ! daystart) or ($loc = 'city_industrial' and nordShopTPday ! daystart) or ($loc = 'torgcentr' and downShopTPday ! daystart):
  109. act 'Promote products':
  110. *clr & cla
  111. if $loc = 'city_residential': StreetShopTPday = daystart
  112. if $loc = 'city_industrial': nordShopTPday = daystart
  113. if $loc = 'torgcentr': downShopTPday = daystart
  114. mtprand = rand(40, 130)
  115. minut += mtprand
  116. TorgPredZ -= 1
  117. TorgPredZV += 1
  118. gs 'stat'
  119. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop.jpg"></center>'
  120. 'You promote the products for quite a while, and when you finally finish, you go to the cashier and tell them that they sold.'
  121. act 'Leave': gt 'shop', 'start'
  122. end
  123. end
  124. end
  125. act 'Leave the store': minut += 3 & gt $loc
  126. exit
  127. end
  128. if $shoplocation = 'ATM':
  129. '<center><b><font color="maroon">ATM</font></b></center>'
  130. '<center><img <<$set_imgh>> src="images/locations/shared/store/atm.jpg"></center>'
  131. if bankAccount = 0:
  132. 'You don''t have a bank account yet!'
  133. else
  134. if karta >= 0:
  135. 'You have <<karta>> <b>₽</b> in your account.'
  136. 'You have an overdraft limit of <font color="blue"><<bankDebtLimit>></font>!'
  137. else
  138. 'You are overdrawn by <font color="red"><<-1 * karta>> <b>₽</b></font>.'
  139. 'You have a remaining credit limit of <font color="blue"><<bankDebtLimit + karta>></font>!'
  140. end
  141. '<br>ATM Deposit Fee: 100 <b>₽</b>'
  142. if atmDeposit ! 0:
  143. '<br>★ Processing deposit of <<atmDeposit>> <b>₽</b> in <<atmDepositDate - daystart>> days.'
  144. else
  145. act 'Deposit money':
  146. cla
  147. minut += 5
  148. 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.')
  149. if kartaINATM < 100 or kartaINATM > money:
  150. 'This is not a valid input.'
  151. else
  152. karta += kartaINATM - 100
  153. atmDepositDate = daystart + 2
  154. money -= kartaINATM
  155. '<br>You deposit <<kartaINATM>> <b>₽</b> into your account.'
  156. 'It will take 2 days for funds to be available. Your new balance will be <<karta+atmDeposit>> <b>₽</b>.'
  157. end
  158. gs 'stat'
  159. act 'Move away': gt 'shop', 'start'
  160. end
  161. end
  162. if karta + bankDebtLimit < 0:
  163. 'You have maxed out your overdraft.'
  164. else
  165. act 'Withdraw money from the ATM':
  166. cla
  167. minut += 5
  168. kartaOUT = input ("How much money do you want to withdraw?")
  169. if kartaOUT <= 0 or kartaOUT > karta + bankDebtLimit:
  170. '<br>Invalid operation.'
  171. else
  172. karta -= kartaOUT
  173. money += kartaOUT
  174. if karta > 0:
  175. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have <<karta>> <b>₽</b> left in your bank account.'
  176. elseif karta = 0:
  177. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have no money left in your bank account.'
  178. else
  179. '<br>You withdraw <<kartaOUT>> <b>₽</b>. <font color="red">Your bank account is overdrawn by <b><<karta>> ₽</b>.</font>'
  180. end
  181. end
  182. gs 'stat'
  183. act 'Move away': gt 'shop', 'start'
  184. end
  185. end
  186. end
  187. act 'Move away':gt 'shop', 'start'
  188. end
  189. if $shoplocation = 'grocery':
  190. $loc_s = 'shop'
  191. $args_s = 'grocery'
  192. *clr & cla
  193. gs 'themes', 'clothing', 1
  194. '<center><table><TR BGCOLOR="' + $bgcolor + '"><TD><b>Grocery Department</b></TD></TR></table></center>'
  195. $backimage= 'images/locations/shared/store/shop1.jpg'
  196. if hour < 8 or hour > 20:
  197. 'The grocery department is currently closed.'
  198. act 'Leave': $backimage = '' & gt 'shop', 'start'
  199. exit
  200. end
  201. !! output from purchase
  202. if $message ! '':
  203. '<center>'+$message+'</center>'
  204. killvar '$message'
  205. else
  206. ''
  207. end
  208. gs 'item_cart', 'shoppping_aisle', 'food'
  209. gs 'stat'
  210. gs 'themes', 'indoors'
  211. act 'Leave the grocery department': $backimage = '' & gt 'shop', 'start'
  212. act 'Go to the pet aisle': $backimage = '' & gt 'shop', 'dog_items'
  213. if $loc = 'torgcentr':$backimage = '' & gs 'shoplifting', 'city'
  214. end
  215. if $ARGS[0] = 'dog_items':
  216. *clr & cla
  217. minut += 1
  218. menu_off = 1
  219. $location_type = 'public_indoors'
  220. gs 'stat'
  221. $backimage = ''
  222. '<center><img <<$set_imgh>> src="images/characters/shared/rex/pet_isle.jpg"></center>'
  223. 'You''re currently in the pet aisle, where you can buy food, treats and other things for your dog.'
  224. act 'Leave': gt 'shop', 'start'
  225. if $home['current'] ! 'parents_home':
  226. act 'Buy dog food':
  227. *clr & cla
  228. minut += 1
  229. gs 'stat'
  230. '<center><img <<$set_imgh>> src="images/characters/shared/rex/dog_food.jpg"></center>'
  231. 'The store sells dog food for 600 <b>₽</b>. Inside each pack is enough food for 20 meals. You have <<objects[''dog_food'']>>.'
  232. if money < 600:
  233. '<br>You don''t have enough money to buy food.'
  234. else
  235. act 'Buy enough for 20 meals (600 <b>₽</b>, pay cash)':
  236. money -= 600
  237. objects['dog_food'] += 20
  238. gt 'shop', 'dog_items'
  239. end
  240. end
  241. if money >= 1200:
  242. act 'Buy enough for 40 meals (1200 <b>₽</b>, pay cash)':
  243. money -= 1200
  244. objects['dog_food'] += 40
  245. gt 'shop', 'dog_items'
  246. end
  247. end
  248. if money >= 2400:
  249. act 'Buy enough for 80 meals (2400 <b>₽</b>, pay cash)':
  250. money -= 2400
  251. objects['dog_food'] += 80
  252. gt 'shop', 'dog_items'
  253. end
  254. end
  255. end
  256. else
  257. '<br>You don''t need to buy dog food. Your parents pay for it.'
  258. end
  259. act 'Buy some dog treats':
  260. *clr & cla
  261. minut += 1
  262. gs 'stat'
  263. '<center><img <<$set_imgh>> src="images/characters/shared/rex/treat_'+rand(0,2)+'.jpg"></center>'
  264. 'The store sells dog treats for 300 <b>₽</b>. Inside each pack are 20 treats. You have <<objects[''treats'']>>.'
  265. act 'Go back': gt 'shop', 'dog_items'
  266. if money < 300:
  267. 'You don''t have enough money to buy a pack.'
  268. else
  269. act 'Buy a pack (300 <b>₽</b>, pay cash)':
  270. money -= 300
  271. objects['treats'] += 20
  272. gt 'shop', 'dog_items'
  273. end
  274. end
  275. end
  276. act 'Buy a chew toy for your dog':
  277. *clr & cla
  278. minut += 1
  279. gs 'stat'
  280. '<center><img <<$set_imgh>> src="images/characters/shared/rex/chew.jpg"></center>'
  281. 'The store sells a chew toy for 800 <b>₽</b>.'
  282. act 'Go back': gt 'shop', 'dog_items'
  283. if money < 800:
  284. 'You don''t have enough money to buy it.'
  285. else
  286. act 'Buy one (800 <b>₽</b>, pay cash)':
  287. money -= 800
  288. objects['chew'] += 10
  289. gt 'shop', 'dog_items'
  290. end
  291. end
  292. end
  293. if objects['toys'] = 0:
  294. act 'Buy fetch balls':
  295. *clr & cla
  296. minut += 1
  297. gs 'stat'
  298. '<center><img <<$set_imgh>> src="images/characters/shared/rex/balls.jpg"></center>'
  299. 'The store sells rubber balls for 900 <b>₽</b> that you can use to play fetch with your dog.'
  300. act 'Go back': gt 'shop', 'dog_items'
  301. if money < 900:
  302. 'You don''t have enough money to buy them.'
  303. else
  304. act 'Buy them (900 <b>₽</b>, pay cash)':
  305. money -= 900
  306. objects['toys'] = 1
  307. gt 'shop', 'dog_items'
  308. end
  309. end
  310. end
  311. end
  312. end
  313. if $shoplocation= 'cosmetics':
  314. $loc_s = 'shop'
  315. $args_s = 'cosmetics'
  316. *clr & cla
  317. gs 'themes', 'clothing', 1
  318. '<center><table><TR BGCOLOR="' + $bgcolor + '"><TD><b>Cosmetics Department</b></TD></TR></table></center>'
  319. $backimage= 'images/locations/shared/store/shop2.jpg'
  320. if hour < 8 or hour > 20:
  321. 'The cosmetics department is currently closed.'
  322. act 'Leave': $backimage = '' & 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. gs 'item_cart', 'shoppping_aisle', 'beauty'
  333. gs 'stat'
  334. gs 'themes', 'indoors'
  335. act 'Leave the cosmetics department': $backimage = '' & gt 'shop', 'start'
  336. if $loc = 'torgcentr':$backimage = '' & gs 'shoplifting', 'city'
  337. if $loc = 'pav_commercial':$backimage = '' & gs 'shoplifting', 'pav'
  338. end
  339. if $shoplocation = 'hardware':
  340. $loc_s = 'shop'
  341. $args_s = 'hardware'
  342. *clr & cla
  343. '<center><table><TR BGCOLOR="' + $bgcolor + '"><TD><b>Hardware Department</b></TD></TR></table></center>'
  344. $backimage= 'images/locations/shared/store/shop3.jpg'
  345. if hour < 8 or hour > 20:
  346. 'The hardware department is currently closed.'
  347. act 'Leave': $backimage = '' & gt 'shop', 'start'
  348. exit
  349. end
  350. !! output from purchase
  351. if $message ! '':
  352. '<center>'+$message+'</center>'
  353. killvar '$message'
  354. else
  355. ''
  356. end
  357. gs 'item_cart', 'shoppping_aisle', 'hardware'
  358. gs 'stat'
  359. gs 'themes', 'indoors'
  360. act 'Leave the hardware department': $backimage = '' & gt 'shop', 'start'
  361. '<center><table><TR BGCOLOR="' + $bgcolor + '"><TD>You see fabric suitable for sewing on the counter. It''s sold in large squares costing 50 <b>₽</b> each. You have <<mc_inventory[''sewing_fabric'']>> squares of fabric.</TD></TR></table></center>'
  362. if pod_whore_countQW > 15 and paint_blue = 0 and money >= 200:
  363. act 'Buy paint to cover graffiti (200 <b>₽</b>)':
  364. money -= 200
  365. paint_blue = 1
  366. gt 'shop', '<font color="green">You bought a tin of paint.</font>'
  367. end
  368. end
  369. end
  370. if $shoplocation = 'clothing':
  371. *clr & cla
  372. '<center><b><font color="maroon">Department of Women''s Clothing</font></b></center>'
  373. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop4.jpg"></center>'
  374. 'This department only sells cheap underwear and ice skates.'
  375. if hour < 8 or hour > 20:
  376. 'The women''s clothing department is currently closed.'
  377. act 'Leave':gt 'shop', 'start'
  378. exit
  379. else
  380. if $message ! '':
  381. '<center>' + $message + '</center>'
  382. killvar '$message'
  383. else
  384. ''
  385. end
  386. 'Women''s panties and bras 300<b>₽</b> each'
  387. gs 'stat'
  388. gs 'themes', 'indoors'
  389. act 'Leave the women''s clothing department': gt 'shop', 'start'
  390. act 'View underwear': $shoplocation = 'underwear' & gt 'shop'
  391. if mc_inventory['ice_skates'] ! 1:
  392. 'A pair of ice-skates are available for 3000 <b>₽</b>.'
  393. if money >= 3000:
  394. act 'Buy ice skates (3000 <b>₽</b>)':
  395. *clr & cla
  396. money -= 3000
  397. mc_inventory['ice_skates'] = 1
  398. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/lake/konki_shop.jpg"></center>'
  399. 'You buy a pair of ice skates.'
  400. act 'Move away from the counter': gt'shop'
  401. end
  402. end
  403. end
  404. if mc_inventory['ski'] ! 1:
  405. 'A pair of skis and poles are available for 4000 <b>₽</b>.'
  406. if money >= 4000:
  407. act 'Buy skis (4000 <b>₽</b>)':
  408. *clr & cla
  409. money -= 4000
  410. mc_inventory['ice_skates'] = 1
  411. '<center><img <<$set_imgh>> src="images/pc/activities/ski_buy.jpg"></center>'
  412. 'You buy a pair of skis and poles.'
  413. act 'Move away from the counter': gt'shop'
  414. end
  415. end
  416. end
  417. end
  418. end
  419. !! Women''s clothing underwear viewer
  420. if $shoplocation = 'underwear':
  421. *clr & cla
  422. if $loc ! 'shop': $loc_bak = $loc
  423. $loc = 'shop'
  424. '<center><B>Click on an item to view details</B></center>'
  425. if gm_panties[7] = 0: *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''gm'', 7, 300"><img src="images/pc/items/gm/panties/7.jpg" height="150" /></a>'
  426. if gm_panties[9] = 0: *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''gm'', 9, 300"><img src="images/pc/items/gm/panties/9.jpg" height="150" /></a>'
  427. if gm_panties[12] = 0: *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''gm'', 12, 300"><img src="images/pc/items/gm/panties/12.jpg" height="150" /></a>'
  428. if gm_panties[21] = 0: *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''gm'', 21, 300"><img src="images/pc/items/gm/panties/21.jpg" height="150" /></a>'
  429. if gm_panties[37] = 0: *p '<a href="exec:gt ''panties'', ''view_panty_item'', ''shop'', ''gm'', 37, 300"><img src="images/pc/items/gm/panties/37.jpg" height="150" /></a>'
  430. *nl
  431. if gm_bras[11] = 0: *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''gm'', 11, 300"><img src="images/pc/items/gm/bras/11.jpg" height="150" /></a>'
  432. if gm_bras[12] = 0: *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''gm'', 12, 300"><img src="images/pc/items/gm/bras/12.jpg" height="150" /></a>'
  433. if gm_bras[16] = 0: *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''gm'', 16, 300"><img src="images/pc/items/gm/bras/16.jpg" height="150" /></a>'
  434. if gm_bras[18] = 0: *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''shop'', ''gm'', 18, 300"><img src="images/pc/items/gm/bras/18.jpg" height="150" /></a>'
  435. act 'Return':
  436. $loc = $loc_bak
  437. $shoplocation = 'clothing'
  438. gt 'shop'
  439. end
  440. end
  441. !! Household appliances
  442. if $shoplocation = 'tech':
  443. $loc_s = 'shop'
  444. $args_s = 'tech'
  445. *clr & cla
  446. '<center><table><TR BGCOLOR="' + $bgcolor + '"><TD><b>household appliance Department</b></TD></TR></table></center>'
  447. $backimage= 'images/locations/shared/store/shop5.jpg'
  448. if hour < 8 or hour > 20:
  449. 'The household appliance department is currently closed.'
  450. act 'Leave': $backimage= '' & gt 'shop', 'start'
  451. exit
  452. end
  453. if $message ! '':
  454. '<center>'+$message+'</center>'
  455. killvar '$message'
  456. else
  457. ''
  458. end
  459. gs 'item_cart', 'shoppping_aisle', 'tech'
  460. gs 'stat'
  461. gs 'themes', 'indoors'
  462. !! mc_inventory['tech_game_ds'] and mc_inventory['tech_webcam'] need a mc_inventory['tech_computer'] requirement
  463. !! also for some reason mc_inventory['tech_webcam'] doesn't work.
  464. !! It shows up as an item and you can put it into the item cart but buying it doesn't increase the value of mc_inventory['tech_webcam'].
  465. !!also having a Plasma TV shows up as having 2 TVs since I couldn''t change TV = 2 to a new variables without changing a lot of code and text.
  466. act 'Leave the appliance department': $backimage= '' & gt 'shop', 'start'
  467. end
  468. !! Ice cream counter
  469. if $shoplocation = 'icecream':
  470. '<center><img <<$set_imgh>> src="images/shared/store/icecreamcounter.jpg"></center>'
  471. 'Ice cream is available for 50 <b>₽</b>.'
  472. act 'Move away from the counter':gt 'shop', 'start'
  473. if money >= 50:
  474. act 'Buy ice cream':
  475. *clr & cla
  476. money -= 50
  477. fat += 3
  478. pcs_mood += 50
  479. pcs_hydra += 60
  480. pcs_energy += 30
  481. cumspclnt = 2
  482. gs 'cum_cleanup'
  483. pcs_breath = 0
  484. gs 'stat'
  485. '<center><img <<$set_imgh>> src="images/shared/food/icecreem.jpg"></center>'
  486. 'You buy some ice cream and eat it.'
  487. act 'Move away from the counter':gt 'shop', 'start'
  488. end
  489. end
  490. end
  491. if $shoplocation = 'megafon':
  492. *clr & cla
  493. minut+=3
  494. gs'stat'
  495. '<center><b><font color = maroon>MegaFon shop</font></b></center>'
  496. '<center><img src="images/system/phone/megafon2.jpg" ></center>'
  497. $tables = '<center><table>'
  498. $tablec = '</table></center>'
  499. if bankAccount = 0: '<center><h4>You need a valid bank account to buy monthly contracts.</h4></center>'
  500. $title = '<center><h4>Home Internet Subscription</h4></cemter>'
  501. price = 900
  502. if $home['current'] = 'parents_home':
  503. $line = '<tr><td align="center">Your parents are paying for the internet at home, and you can''t take out a second internet subscriptions for the same address</td></tr>'
  504. elseif home['internet_enabled'] = 0:
  505. $line = '<tr><td align="center">You can''t buy an internet subscription for <<$home[''display'']>></td></tr>'
  506. elseif subscription[$home['current']] = 1:
  507. $temp_home = '<<$home[''current'']>>-date'
  508. $line = '<tr><td align="center">You have an active internet subscription at <<$home[''display'']>> that will renew next month on day <<subscription[$temp_home]>> for <<price>> <b>₽</b></td></tr>'
  509. killvar '$temp_home'
  510. else
  511. $line = '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; ">Monthly internet subscription for <<price>><b>₽</b> at your <<$home[''display'']>>. Automatically renews every month</td>'
  512. if bankAccount = 0:
  513. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  514. elseif karta+bankDebtLimit >= price:
  515. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''buy_subscription'', ''<<$home[''current'']>>'', <<price>>, 0 & minut += 30 & karta -= <<price>> & gs ''stat'' & gt ''shop'' ">Pay with Card</a></td></tr>'
  516. else
  517. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  518. end
  519. end
  520. '<<$title>><<$tables>><<$line>><<$tablec>>'
  521. killvar 'line'
  522. killvar 'title'
  523. !! "Returns":
  524. !! $property_code[], $property_name[], $property_status[], property__is_current_home[]
  525. !! $property_stat values: 'rented', 'owned', 'tenants', 'no access'
  526. gs 'homes_properties', 'get_internet_enabled_properties', 'home', 'hasaccess'
  527. count = ARRSIZE('$property_name')
  528. if count > 0:
  529. :propertyloop
  530. if property__is_current_home[i] = 0:
  531. $title = '<center><h4>Internet Subscription for your other properties</h4></center>'
  532. if $property_status[i] = 'tenants':
  533. $line += '<tr><td align="center">You have rented out the <<LCASE($property_name[i])>> and you don''t have to buy internet for our tenants.</td></tr>'
  534. elseif subscription[$property_code[i]] = 0:
  535. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; ">Monthly internet subscription for <<price>> <b>₽</b> at <<LCASE($property_name[i])>>. Automatically renews every month</td>'
  536. if bankAccount = 0:
  537. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  538. elseif karta+bankDebtLimit >= price:
  539. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''buy_subscription'', ''<<$property_code[i]>>'', <<price>>, 0 & minut += 30 & karta -= <<price>> & gs ''stat'' & gt ''shop'' ">Pay with card</a></td></tr>'
  540. else
  541. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  542. end
  543. elseif subscription[$property_code[i]] > 0:
  544. line += '<tr><td align="center">You have an active internet subscription for the <<LCASE($property_name[i])>> that will renew next month on day <<subscription[''<<$property_code[i]>>-date'']>> for <<price>> <b>₽</b></td></tr>'
  545. end
  546. end
  547. killvar '$property'
  548. i += 1
  549. if i < count: jump 'propertyloop'
  550. gs 'homes_properties', 'clean_up_property_data'
  551. killvar 'i' & killvar 'count'
  552. if $title ! '' : '<<$title>><<$tables>><<$line>><<$tablec>>'
  553. killvar 'line' & killvar 'title'
  554. end
  555. $title = '<center><h4>Mobile Internet Subscription</h4></center>'
  556. price = 1200
  557. if subscription['mobile'] = 1:
  558. $line = '<tr><td align="center">You have an active mobile internet subscription that will renew next month on day <<subscription[''mobile-date'']>> for <<price>><b>₽</b></td></tr>'
  559. else
  560. if subscription['metered_mobile'] > 0:
  561. !! Every 12 minutes gives back 1 ₽
  562. discount = subscription['metered_mobile'] / 12
  563. discount_left = max(price - discount, 0)
  564. $line = '<tr><td align="center">You still a have <b><<subscription[''metered_mobile'']>> ₽</b> balance for your metered mobile internet which gives you a <<discount>> <b>₽</b> discount</td></tr>'
  565. end
  566. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; ">Monthly mobile internet subscription for'+iif(discount > 0, ' <s><<price>></s><<price-discount>>', ' <<price>>')+'<b>₽</b>. Automatically renews every month</td>'
  567. if bankAccount = 1 and karta + bankDebtLimit >= (price - discount): $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''buy_subscription'', ''mobile'', <<price>>, <<discount_left>> & gs ''internet_mobile'', ''cancel_subscription'', ''metered_mobile'' & minut += 30 & karta -= <<price-discount>> & gs ''stat'' & gt ''shop'' ">Pay with card</a></td></tr>'
  568. if bankAccount = 1 and karta + bankDebtLimit < (price - discount): $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient funds</td></tr>'
  569. if bankAccount = 0: $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  570. end
  571. '<<$title>><<$tables>><<$line>><<$tablec>>'
  572. killvar 'line'
  573. killvar 'title'
  574. $title = '<center><h4>Metered Internet</h4></center>'
  575. if subscription['mobile'] = 1:
  576. $line = '<tr><td align="center">You have an active mobile internet subscription for unlimited use, you can''t buy extra minutes </td></tr>'
  577. $line += '<tr><td align="left"><b>300 minutes</b> (5 hours) of mobile internet for 80 <b>₽</b></td></tr>'
  578. $line += '<tr><td align="left"><b>600 minutes</b> (10 hours) of mobile internet for 155 <b>₽</b></td></tr>'
  579. $line += '<tr><td align="left"><b>1200 minutes</b> (20 hours) of mobile internet for 295 <b>₽</b></td></tr>'
  580. $line += '<tr><td align="left"><b>3000 minutes</b> (50 hours) of mobile internet for 695 <b>₽</b></td></tr>'
  581. else
  582. $line = '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; "><b>300 minutes</b> (5 hours) of mobile internet for 80<b>₽</b></td>'
  583. if money > 80:
  584. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 300 & money -= 80 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  585. else
  586. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  587. end
  588. if bankAccount = 0:
  589. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  590. elseif karta+bankDebtLimit >= 80:
  591. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 300 & karta -= 80 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  592. else
  593. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  594. end
  595. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; "><b>600 minutes</b> (10 hours) of mobile internet for 115<b>₽</b></td>'
  596. if money > 155:
  597. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 600 & money -= 115 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  598. else
  599. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  600. end
  601. if bankAccount = 0:
  602. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  603. elseif karta+bankDebtLimit >= 155:
  604. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 600 & karta -= 115 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  605. else
  606. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  607. end
  608. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; "><b>1200 minutes</b> (20 hours) of mobile internet for 295<b>₽</b></td>'
  609. if money > 295:
  610. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 1200 & money -= 295 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  611. else
  612. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  613. end
  614. if bankAccount = 0:
  615. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  616. elseif karta+bankDebtLimit >= 295:
  617. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 1200 & karta -= 295 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  618. else
  619. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  620. end
  621. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; "><b>3000 minutes</b> (50 hours) of mobile internet for 695<b>₽</b></td>'
  622. if money > 695:
  623. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 3000 & money -= 695 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  624. else
  625. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  626. end
  627. if bankAccount = 0:
  628. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  629. elseif karta+bankDebtLimit >= 695:
  630. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 3000 & karta -= 695 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  631. else
  632. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  633. end
  634. end
  635. '<<$title>><<$tables>><<$line>><<$tablec>>'
  636. killvar 'line'
  637. killvar 'title'
  638. '<center>You have <b><<subscription[''metered_mobile'']>></b> minutes for mobile internet use</center>'
  639. $title = '<center><h4>Mobile Calls and Texts</h4></center>'
  640. price = 800
  641. if subscription['monthly_calls'] = 1:
  642. $line += '<tr><td align="center">You have an active mobile subscription that will renew next month on day <<subscription[''monthly_calls-date'']>> for <<price>> <b>₽</b></td></tr>'
  643. else
  644. if subscription['metered_calls'] > 0:
  645. discount = subscription['metered_calls'] / 2
  646. discount_left = max(price - discount, 0)
  647. $line += '<tr><td align="center">You have <b><<subscription[''metered_calls'']>>₽</b> for mobile calls and text messages which gives you a <<discount>> <b>₽</b> discount</td></tr>'
  648. end
  649. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left;">Monthly mobile subscription that allows you to make calls and send text messages for'+iif(discount > 0, '<b><s><<price>></s></b> <span color="red"><b><<price-discount>></b></span>', ' <b><<price>></b>')+'<b>₽</b> Automatically renews every month</td>'
  650. if bankAccount = 1 and karta + bankDebtLimit >= (price - discount): $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''buy_subscription'', ''monthly_calls'', <<price>>, <<discount_left>> & gs ''internet_mobile'', ''cancel_subscription'', ''metered_calls'' & minut += 30 & karta -= <<price>> & gs ''stat'' & gt ''shop'' ">Pay with card</a></td></tr>'
  651. if bankAccount = 1 and karta + bankDebtLimit < (price - discount): $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient funds</td></tr>'
  652. if bankAccount = 0: $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  653. end
  654. '<<$title>><<$tables>><<$line>><<$tablec>>'
  655. killvar 'title'
  656. killvar 'line'
  657. $title = '<center><h4>Metered Calls and Texts</h4></center>'
  658. if subscription['monthly_calls'] = 1:
  659. $line += '<tr><td>You have an active mobile subscription with unlimited minutes and texts, you can''t buy extra minutes</td></tr>'
  660. else
  661. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left;">60<b>₽</b> call pack for your mobile phone that gives you 60 minutes of calltime and 120 text messages</td>'
  662. if money >= 60:
  663. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 60, 120 & money -= 60 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  664. else
  665. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  666. end
  667. if bankAccount = 0:
  668. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  669. elseif bankAccount = 1 and karta+bankDebtLimit >= 60:
  670. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 60, 120 & karta -= 60 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  671. else
  672. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  673. end
  674. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left;">115<b>₽</b> call pack for your mobile phone that gives you 120 minutes of calltime and 240 text messages</td>'
  675. if money >= 115:
  676. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 120, 240 & money -= 115 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  677. else
  678. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  679. end
  680. if bankAccount = 0:
  681. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  682. elseif bankAccount = 1 and karta + bankDebtLimit >= 115:
  683. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 120, 240 & karta -= 115 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  684. else
  685. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  686. end
  687. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left;">170<b>₽</b> call pack for your mobile phone that gives you 180 minutes of calltime and 360 text messages</td>'
  688. if money >= 170:
  689. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 180, 360 & money -= 170 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  690. else
  691. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  692. end
  693. if bankAccount = 0:
  694. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  695. elseif bankAccount = 1 and karta + bankDebtLimit >= 170:
  696. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 180, 360 & karta -= 170 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  697. else
  698. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  699. end
  700. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left;">225<b>₽</b> call pack for your mobile phone that gives you 240 minutes of calltime and 480 text messages</td>'
  701. if money >= 225:
  702. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 240, 480 & money -= 225 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  703. else
  704. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  705. end
  706. if bankAccount = 0:
  707. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  708. elseif bankAccount = 1 and karta + bankDebtLimit >= 225:
  709. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_calls'', 240, 480 & karta -=225 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  710. else
  711. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  712. end
  713. end
  714. '<<$title>><<$tables>><<$line>><<$tablec>>'
  715. '<center>You have <b><<subscription[''metered_calls'']>> minutes</b> for mobile calls and <<subscription[''sms_limit'']>> text messages</center>'
  716. killvar 'title'
  717. killvar 'line'
  718. killvar 'discount'
  719. killvar 'discount_left'
  720. killvar 'price'
  721. act 'Return to the supermarket': gt'shop','start'
  722. end
  723. if $shoplocation = 'Anya':
  724. cla
  725. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/anyabusywork.jpg"></center>'
  726. gs 'sister_chat', 'checks'
  727. '"Don''t disturb me at work, <<$pcs_nickname>>! Can''t you see that I have customers?"'
  728. act 'Move away': gt'shop','start'
  729. end
  730. --- shop ---------------------------------