1
0

shop.qsrc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  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. if $loc = 'shop': $loc = $loc_bak
  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 = 'city_trademission'
  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 locat['Anya'] = 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 pcs_willpwr < will_cost:
  65. act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  66. else
  67. act 'No (<<will_cost>> Willpower)':
  68. gs 'willpower', 'pay', 'resist'
  69. gt 'shop', 'start'
  70. end
  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 showerhead 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 = 'city_mall' 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 = 'city_mall': 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 = 0:
  131. 'You don''t have a bank account yet!'
  132. else
  133. if karta >= bankDebtLimit:
  134. 'You have <<karta - bankDebtLimit>> <b>₽</b> in your account.'
  135. 'You have an overdraft limit of <font color="blue"><<bankDebtLimit>></font>!'
  136. else
  137. 'You are overdrawn by <font color="red"><<bankDebtLimit - karta>> <b>₽</b></font>.'
  138. 'You have a remaining credit limit of <font color="blue"><<karta>></font>!'
  139. end
  140. '<br>ATM Deposit Fee: 100 <b>₽</b>'
  141. if bankAccount = 1 and money > 0:
  142. act 'Deposit money into your bank account':
  143. cla
  144. menu_off = 1
  145. minut += 5
  146. gs 'stat'
  147. gs 'bank', 'deposit_cash'
  148. '"Is there anything else I can do for you?"'
  149. act 'Move away': gt 'shop', 'start'
  150. end
  151. end
  152. if karta <= 0:
  153. 'You have maxed out your overdraft.'
  154. else
  155. act 'Withdraw money from the ATM':
  156. cla
  157. minut += 5
  158. kartaOUT = input ("How much money do you want to withdraw?")
  159. if kartaOUT <= 0 or kartaOUT > karta:
  160. '<br>Invalid operation.'
  161. else
  162. karta -= kartaOUT
  163. money += kartaOUT
  164. if karta > bankDebtLimit:
  165. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have <<karta - bankDebtLimit>> <b>₽</b> left in your bank account.'
  166. elseif karta = 0:
  167. '<br>You withdraw <<kartaOUT>> <b>₽</b>. You have no money left in your bank account.'
  168. else
  169. '<br>You withdraw <<kartaOUT>> <b>₽</b>. <font color="red">Your bank account is overdrawn by <b><<bankDebtLimit - karta>> ₽</b>.</font>'
  170. end
  171. end
  172. gs 'stat'
  173. act 'Move away': gt 'shop', 'start'
  174. end
  175. end
  176. end
  177. act 'Move away':gt 'shop', 'start'
  178. end
  179. if $shoplocation = 'grocery':
  180. $loc_s = 'shop'
  181. $args_s = 'grocery'
  182. *clr & cla
  183. if hour < 8 or hour > 20:
  184. 'The grocery department is currently closed.'
  185. act 'Leave': gt 'shop', 'start'
  186. exit
  187. end
  188. gs 'item_cart', 'shoppping_aisle', 'food'
  189. gs 'stat'
  190. gs 'themes', 'indoors'
  191. $backimage= 'images/locations/shared/store/shop1.jpg'
  192. act 'Leave the grocery department': gt 'shop', 'start'
  193. act 'Go to the pet aisle': gt 'shop', 'dog_items'
  194. if $loc = 'city_mall': gs 'shoplifting', 'city'
  195. end
  196. if $ARGS[0] = 'dog_items':
  197. *clr & cla
  198. minut += 1
  199. menu_off = 1
  200. $location_type = 'public_indoors'
  201. gs 'stat'
  202. '<center><img <<$set_imgh>> src="images/characters/shared/rex/pet_isle.jpg"></center>'
  203. 'You''re currently in the pet aisle, where you can buy food, treats and other things for your dog.'
  204. act 'Leave': gt 'shop', 'start'
  205. if $home['current'] ! 'parents_home':
  206. act 'Buy dog food':
  207. *clr & cla
  208. minut += 1
  209. gs 'stat'
  210. '<center><img <<$set_imgh>> src="images/characters/shared/rex/dog_food.jpg"></center>'
  211. 'The store sells dog food for 600 <b>₽</b>. Inside each pack is enough food for 20 meals. You have <<objects[''dog_food'']>>.'
  212. if money < 600:
  213. '<br>You don''t have enough money to buy food.'
  214. else
  215. act 'Buy enough for 20 meals (600 <b>₽</b>, pay cash)':
  216. money -= 600
  217. objects['dog_food'] += 20
  218. gt 'shop', 'dog_items'
  219. end
  220. end
  221. if money >= 1200:
  222. act 'Buy enough for 40 meals (1200 <b>₽</b>, pay cash)':
  223. money -= 1200
  224. objects['dog_food'] += 40
  225. gt 'shop', 'dog_items'
  226. end
  227. end
  228. if money >= 2400:
  229. act 'Buy enough for 80 meals (2400 <b>₽</b>, pay cash)':
  230. money -= 2400
  231. objects['dog_food'] += 80
  232. gt 'shop', 'dog_items'
  233. end
  234. end
  235. end
  236. else
  237. '<br>You don''t need to buy dog food. Your parents pay for it.'
  238. end
  239. act 'Buy some dog treats':
  240. *clr & cla
  241. minut += 1
  242. gs 'stat'
  243. '<center><img <<$set_imgh>> src="images/characters/shared/rex/treat_'+rand(0,2)+'.jpg"></center>'
  244. 'The store sells dog treats for 300 <b>₽</b>. Inside each pack are 20 treats. You have <<objects[''treats'']>>.'
  245. act 'Go back': gt 'shop', 'dog_items'
  246. if money < 300:
  247. 'You don''t have enough money to buy a pack.'
  248. else
  249. act 'Buy a pack (300 <b>₽</b>, pay cash)':
  250. money -= 300
  251. objects['treats'] += 20
  252. gt 'shop', 'dog_items'
  253. end
  254. end
  255. end
  256. act 'Buy a chew toy for your dog':
  257. *clr & cla
  258. minut += 1
  259. gs 'stat'
  260. '<center><img <<$set_imgh>> src="images/characters/shared/rex/chew.jpg"></center>'
  261. 'The store sells a chew toy for 800 <b>₽</b>.'
  262. act 'Go back': gt 'shop', 'dog_items'
  263. if money < 800:
  264. 'You don''t have enough money to buy it.'
  265. else
  266. act 'Buy one (800 <b>₽</b>, pay cash)':
  267. money -= 800
  268. objects['chew'] += 10
  269. gt 'shop', 'dog_items'
  270. end
  271. end
  272. end
  273. if objects['toys'] = 0:
  274. act 'Buy fetch balls':
  275. *clr & cla
  276. minut += 1
  277. gs 'stat'
  278. '<center><img <<$set_imgh>> src="images/characters/shared/rex/balls.jpg"></center>'
  279. 'The store sells rubber balls for 900 <b>₽</b> that you can use to play fetch with your dog.'
  280. act 'Go back': gt 'shop', 'dog_items'
  281. if money < 900:
  282. 'You don''t have enough money to buy them.'
  283. else
  284. act 'Buy them (900 <b>₽</b>, pay cash)':
  285. money -= 900
  286. objects['toys'] = 1
  287. gt 'shop', 'dog_items'
  288. end
  289. end
  290. end
  291. end
  292. end
  293. if $shoplocation= 'cosmetics':
  294. $loc_s = 'shop'
  295. $args_s = 'cosmetics'
  296. *clr & cla
  297. if hour < 8 or hour > 20:
  298. 'The cosmetics department is currently closed.'
  299. act 'Leave': gt 'shop', 'start'
  300. exit
  301. end
  302. gs 'item_cart', 'shoppping_aisle', 'beauty'
  303. gs 'stat'
  304. gs 'themes', 'indoors'
  305. $backimage= 'images/locations/shared/store/shop2.jpg'
  306. act 'Leave the cosmetics department': gt 'shop', 'start'
  307. if $loc = 'city_mall': gs 'shoplifting', 'city'
  308. if $loc = 'pav_commercial':gs 'shoplifting', 'pav'
  309. end
  310. if $shoplocation = 'hardware':
  311. $loc_s = 'shop'
  312. $args_s = 'hardware'
  313. *clr & cla
  314. if hour < 8 or hour > 20:
  315. 'The hardware department is currently closed.'
  316. act 'Leave':gt 'shop', 'start'
  317. exit
  318. end
  319. gs 'item_cart', 'shoppping_aisle', 'hardware'
  320. gs 'stat'
  321. gs 'themes', 'indoors'
  322. $backimage= 'images/locations/shared/store/shop3.jpg'
  323. act 'Leave the hardware department': gt 'shop', 'start'
  324. if pod_whore_countQW > 15 and paint_blue = 0 and money >= 200:
  325. act 'Buy paint to cover graffiti (200 <b>₽</b>)':
  326. money -= 200
  327. paint_blue = 1
  328. gt 'shop', '<font color="green">You bought a tin of paint.</font>'
  329. end
  330. end
  331. end
  332. if $shoplocation = 'clothing':
  333. *clr & cla
  334. '<center><b><font color="maroon">Department of Women''s Clothing</font></b></center>'
  335. '<center><img <<$set_imgh>> src="images/locations/shared/store/shop4.jpg"></center>'
  336. 'This department only sells cheap underwear and ice skates.'
  337. if hour < 8 or hour > 20:
  338. 'The women''s clothing department is currently closed.'
  339. act 'Leave':gt 'shop', 'start'
  340. exit
  341. else
  342. 'Women''s panties and bras 300<b>₽</b> each'
  343. gs 'stat'
  344. gs 'themes', 'indoors'
  345. act 'Leave the women''s clothing department': gt 'shop', 'start'
  346. act 'View underwear': $shoplocation = 'underwear' & gt 'shop'
  347. if mc_inventory['ice_skates'] ! 1:
  348. 'A pair of ice-skates are available for 3000 <b>₽</b>.'
  349. if money >= 3000:
  350. act 'Buy ice skates (3000 <b>₽</b>)':
  351. *clr & cla
  352. money -= 3000
  353. mc_inventory['ice_skates'] = 1
  354. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/lake/konki_shop.jpg"></center>'
  355. 'You buy a pair of ice skates.'
  356. act 'Move away from the counter': gt'shop'
  357. end
  358. end
  359. end
  360. if mc_inventory['ski'] ! 1:
  361. 'A pair of skis and poles are available for 4000 <b>₽</b>.'
  362. if money >= 4000:
  363. act 'Buy skis (4000 <b>₽</b>)':
  364. *clr & cla
  365. money -= 4000
  366. mc_inventory['ski'] = 1
  367. '<center><img <<$set_imgh>> src="images/pc/activities/ski_buy.jpg"></center>'
  368. 'You buy a pair of skis and poles.'
  369. act 'Move away from the counter': gt'shop'
  370. end
  371. end
  372. end
  373. end
  374. end
  375. !! Women''s clothing underwear viewer
  376. if $shoplocation = 'underwear':
  377. *clr & cla
  378. if $loc ! 'shop': $loc_bak = $loc
  379. $loc = 'shop'
  380. '<center><B>Click on an item to view details</B></center>'
  381. 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>'
  382. 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>'
  383. 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>'
  384. 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>'
  385. 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>'
  386. *nl
  387. 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>'
  388. 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>'
  389. 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>'
  390. 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>'
  391. act 'Return':
  392. $loc = $loc_bak
  393. $shoplocation = 'clothing'
  394. gt 'shop'
  395. end
  396. end
  397. !! Household appliances
  398. if $shoplocation = 'tech':
  399. $loc_s = 'shop'
  400. $args_s = 'tech'
  401. *clr & cla
  402. if hour < 8 or hour > 20:
  403. 'The household appliance department is currently closed.'
  404. act 'Leave': $backimage= '' & gt 'shop', 'start'
  405. exit
  406. end
  407. gs 'item_cart', 'shoppping_aisle', 'tech'
  408. gs 'stat'
  409. gs 'themes', 'indoors'
  410. $backimage= 'images/locations/shared/store/shop5.jpg'
  411. !! mc_inventory['tech_game_ds'] and mc_inventory['tech_webcam'] need a mc_inventory['tech_computer'] requirement
  412. !! also for some reason mc_inventory['tech_webcam'] doesn't work.
  413. !! 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'].
  414. !!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.
  415. act 'Leave the appliance department': $backimage= '' & gt 'shop', 'start'
  416. end
  417. !! Ice cream counter
  418. if $shoplocation = 'icecream':
  419. '<center><img <<$set_imgh>> src="images/shared/store/icecreamcounter.jpg"></center>'
  420. 'Ice cream is available for 50 <b>₽</b>.'
  421. act 'Move away from the counter':gt 'shop', 'start'
  422. if money >= 50:
  423. act 'Buy ice cream':
  424. *clr & cla
  425. money -= 50
  426. fat += 3
  427. pcs_mood += 50
  428. pcs_hydra += 60
  429. pcs_energy += 30
  430. cumspclnt = 2
  431. gs 'cum_cleanup'
  432. pcs_breath = 0
  433. gs 'stat'
  434. '<center><img <<$set_imgh>> src="images/shared/food/icecreem.jpg"></center>'
  435. 'You buy some ice cream and eat it.'
  436. act 'Move away from the counter':gt 'shop', 'start'
  437. end
  438. end
  439. end
  440. if $shoplocation = 'megafon':
  441. *clr & cla
  442. minut+=3
  443. gs'stat'
  444. '<center><b><font color = maroon>MegaFon shop</font></b></center>'
  445. '<center><img src="images/system/phone/megafon2.jpg" ></center>'
  446. $tables = '<center><table>'
  447. $tablec = '</table></center>'
  448. if bankAccount = 0: '<center><h4>You need a valid bank account to buy monthly contracts.</h4></center>'
  449. $title = '<center><h4>Home Internet Subscription</h4></cemter>'
  450. price = 900
  451. if $home['current'] = 'parents_home':
  452. $line = '<tr><td align="center">Your parents are paying for the internet at home, and you can''t take out a second internet subscription for the same address</td></tr>'
  453. elseif property['internet_enabled'] = 0:
  454. $line = '<tr><td align="center">You can''t buy an internet subscription for <<$home[''display'']>></td></tr>'
  455. elseif subscription[$home['current']] = 1:
  456. $temp_home = '<<$home[''current'']>>-date'
  457. $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>'
  458. killvar '$temp_home'
  459. else
  460. $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>'
  461. if bankAccount = 0:
  462. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  463. elseif karta >= price:
  464. $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>'
  465. else
  466. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  467. end
  468. end
  469. '<<$title>><<$tables>><<$line>><<$tablec>>'
  470. killvar 'line'
  471. killvar 'title'
  472. !! "Returns":
  473. !! $property_code[], $property_name[], $property_status[], property__is_current_home[]
  474. !! $property_stat values: 'rented', 'owned', 'tenants', 'no access'
  475. gs 'homes_properties', 'get_internet_enabled_properties', 'home', 'hasaccess'
  476. count = ARRSIZE('$property_name')
  477. if count > 0:
  478. :propertyloop
  479. if property__is_current_home[i] = 0:
  480. $title = '<center><h4>Internet Subscription for your other properties</h4></center>'
  481. if $property_status[i] = 'tenants':
  482. $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>'
  483. elseif subscription[$property_code[i]] = 0:
  484. $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>'
  485. if bankAccount = 0:
  486. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  487. elseif karta >= price:
  488. $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>'
  489. else
  490. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  491. end
  492. elseif subscription[$property_code[i]] > 0:
  493. $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>'
  494. end
  495. end
  496. killvar '$property'
  497. i += 1
  498. if i < count: jump 'propertyloop'
  499. gs 'homes_properties', 'clean_up_property_data'
  500. killvar 'i' & killvar 'count'
  501. if $title ! '' : '<<$title>><<$tables>><<$line>><<$tablec>>'
  502. killvar 'line' & killvar 'title'
  503. end
  504. $title = '<center><h4>Mobile Internet Subscription</h4></center>'
  505. price = 1200
  506. if subscription['mobile'] = 1:
  507. $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>'
  508. else
  509. if subscription['metered_mobile'] > 0:
  510. !! Every 12 minutes gives back 1 ₽
  511. discount = subscription['metered_mobile'] / 12
  512. discount_left = max(price - discount, 0)
  513. $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>'
  514. end
  515. $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>'
  516. if bankAccount = 0:
  517. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  518. else
  519. if karta < (price - discount):
  520. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient funds</td></tr>'
  521. else
  522. $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>'
  523. end
  524. end
  525. end
  526. '<<$title>><<$tables>><<$line>><<$tablec>>'
  527. killvar 'line'
  528. killvar 'title'
  529. $title = '<center><h4>Metered Internet</h4></center>'
  530. if subscription['mobile'] = 1:
  531. $line = '<tr><td align="center">You have an active mobile internet subscription for unlimited use, you can''t buy extra minutes </td></tr>'
  532. $line += '<tr><td align="left"><b>300 minutes</b> (5 hours) of mobile internet for 80 <b>₽</b></td></tr>'
  533. $line += '<tr><td align="left"><b>600 minutes</b> (10 hours) of mobile internet for 155 <b>₽</b></td></tr>'
  534. $line += '<tr><td align="left"><b>1200 minutes</b> (20 hours) of mobile internet for 295 <b>₽</b></td></tr>'
  535. $line += '<tr><td align="left"><b>3000 minutes</b> (50 hours) of mobile internet for 695 <b>₽</b></td></tr>'
  536. else
  537. $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>'
  538. if money > 80:
  539. $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>'
  540. else
  541. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  542. end
  543. if bankAccount = 0:
  544. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  545. elseif karta >= 80:
  546. $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>'
  547. else
  548. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  549. end
  550. $line += '<tr><td style="padding-left: 10px; padding-right: 10px; align: left; "><b>600 minutes</b> (10 hours) of mobile internet for 155<b>₽</b></td>'
  551. if money > 155:
  552. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 600 & money -= 155 & minut += 10 & gt ''shop'' ">Pay with cash</a></td>'
  553. else
  554. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  555. end
  556. if bankAccount = 0:
  557. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  558. elseif karta >= 155:
  559. $line += '<td style="padding-left: 10px; padding-right: 10px;"><a href="exec: gs ''internet_mobile'', ''top_up_metered'', ''metered_mobile'', 600 & karta -= 155 & minut += 10 & gt ''shop'' ">Pay with card</a></td></tr>'
  560. else
  561. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  562. end
  563. $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>'
  564. if money > 295:
  565. $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>'
  566. else
  567. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  568. end
  569. if bankAccount = 0:
  570. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  571. elseif karta >= 295:
  572. $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>'
  573. else
  574. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  575. end
  576. $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>'
  577. if money > 695:
  578. $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>'
  579. else
  580. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  581. end
  582. if bankAccount = 0:
  583. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  584. elseif karta >= 695:
  585. $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>'
  586. else
  587. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  588. end
  589. end
  590. '<<$title>><<$tables>><<$line>><<$tablec>>'
  591. killvar 'line'
  592. killvar 'title'
  593. '<center>You have <b><<subscription[''metered_mobile'']>></b> minutes for mobile internet use</center>'
  594. $title = '<center><h4>Mobile Calls and Texts</h4></center>'
  595. price = 800
  596. if subscription['monthly_calls'] = 1:
  597. $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>'
  598. else
  599. if subscription['metered_calls'] > 0:
  600. discount = subscription['metered_calls'] / 2
  601. discount_left = max(price - discount, 0)
  602. $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>'
  603. end
  604. $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>'
  605. if bankAccount = 0:
  606. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  607. else
  608. if karta < (price - discount):
  609. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient funds</td></tr>'
  610. else
  611. $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>'
  612. end
  613. end
  614. end
  615. '<<$title>><<$tables>><<$line>><<$tablec>>'
  616. killvar 'title'
  617. killvar 'line'
  618. $title = '<center><h4>Metered Calls and Texts</h4></center>'
  619. if subscription['monthly_calls'] = 1:
  620. $line += '<tr><td>You have an active mobile subscription with unlimited minutes and texts, you can''t buy extra minutes</td></tr>'
  621. else
  622. $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>'
  623. if money >= 60:
  624. $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>'
  625. else
  626. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  627. end
  628. if bankAccount = 0:
  629. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  630. elseif bankAccount = 1 and karta >= 60:
  631. $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>'
  632. else
  633. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  634. end
  635. $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>'
  636. if money >= 115:
  637. $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>'
  638. else
  639. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  640. end
  641. if bankAccount = 0:
  642. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  643. elseif bankAccount = 1 and karta >= 115:
  644. $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>'
  645. else
  646. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  647. end
  648. $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>'
  649. if money >= 170:
  650. $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>'
  651. else
  652. $line += '<td style="padding-left: 10px; padding-right: 10px;">Not enough cash</td>'
  653. end
  654. if bankAccount = 0:
  655. $line += '<td style="padding-left: 10px; padding-right: 10px;">No bank account</td></tr>'
  656. elseif bankAccount = 1 and karta >= 170:
  657. $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>'
  658. else
  659. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  660. end
  661. $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>'
  662. if money >= 225:
  663. $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>'
  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 >= 225:
  670. $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>'
  671. else
  672. $line += '<td style="padding-left: 10px; padding-right: 10px;">Insufficient balance</td></tr>'
  673. end
  674. end
  675. '<<$title>><<$tables>><<$line>><<$tablec>>'
  676. '<center>You have <b><<subscription[''metered_calls'']>> minutes</b> for mobile calls and <<subscription[''sms_limit'']>> text messages</center>'
  677. killvar 'title'
  678. killvar 'line'
  679. killvar 'discount'
  680. killvar 'discount_left'
  681. killvar 'price'
  682. act 'Return to the supermarket': gt 'shop','start'
  683. end
  684. if $shoplocation = 'Anya':
  685. cla
  686. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/anyabusywork.jpg"></center>'
  687. gs 'sister_chat', 'checks'
  688. '"Don''t disturb me at work, <<$pcs_nickname>>! Can''t you see that I have customers?"'
  689. act 'Move away': gt 'shop','start'
  690. end
  691. --- shop ---------------------------------