shop 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. # shop
  2. !! This is the supermarket, located in several places
  3. !! Main entrance
  4. if $ARGS[0] = 'start':
  5. CLOSE ALL
  6. if sound = 0:PLAY 'sound/shop.mp3',30
  7. $shoplocation = 'main'
  8. end
  9. if $ARGS[0] = 'start' or $ARGS[0] = 'move':
  10. minut += 1
  11. end
  12. !! Main area
  13. if $shoplocation = 'main':
  14. cla
  15. *clr
  16. '<center><b><font color="maroon">Supermarket</font></b></center>'
  17. '<center><img src="images/etogame/shop.jpg"></center>'
  18. if hour < 8 or hour > 20:
  19. 'The supermarket is currently closed.'
  20. act 'Leave the store':gt $loc
  21. exit
  22. end
  23. 'In the hall stands an <a href="exec:$shoplocation = ''ATM'' & gt ''shop'', ''move''">ATM</a>, from which you can withdraw money from your bank account.'
  24. 'There is a branch of communication giants <a href="exec:$shoplocation = ''megafon'' & gt ''shop'', ''move''">Bullhorn</a>.'
  25. '<br>Most of the space in the supermarket is taken up by the <a href="exec:$shoplocation = ''grocery'' & gt ''shop'', ''move''">grocery department</a>, but the store has many smaller departments as well. <a href="exec:$shoplocation=''cosmetics'' & gt ''shop'', ''move''">Cosmetics</a>, <a href="exec:$shoplocation = ''hardware'' & gt ''shop'', ''move''">hardware</a>, <a href="exec:$shoplocation = ''clothing'' & gt ''shop'', ''move''">clothing</a> and the department of <a href="exec:$shoplocation = ''tech'' & gt ''shop'', ''move''">household appliances</a>. Not far from the entrance is a <a href="exec:$shoplocation = ''icecream'' & gt ''shop'', ''move''">counter selling ice cream</a>.'
  26. clr
  27. gs 'stat'
  28. fcolor = rgb(0, 0, 0)
  29. bcolor = rgb(255, 255, 255)
  30. lcolor = rgb(106, 90, 205)
  31. !! The store in the town and in the altstart only
  32. if $loc = 'gorodok' and StoryLine = 1:
  33. if week < 6 and hour >= 8 and hour < 16:
  34. 'Your sister <a href="exec:$shoplocation = ''Anya'' & gt ''shop'', ''move''">Anya</a> He is sitting at the cash register.'
  35. end
  36. end
  37. !! Store in the residential district
  38. if $loc = 'street':
  39. if rand(1, 20) = 20:
  40. if dimaQW = 0:
  41. 'By the store entrance a man is looking at you appreciatively.'
  42. act 'Return the look':gt 'event', 'dima'
  43. elseif dimaQW = 1:
  44. 'In the lobby of the store you notice Dima and you are frozen with fear, you want to run, but your legs wont respond.'
  45. 'Your heart is thumping in your chest, your vision narrows, you feel faint.'
  46. act 'Pass out':gt 'event', 'scoreslut1'
  47. else
  48. 'You meet the same Dima whos friend fucked and abused you. Dima grins confidently and says, "Hello."'
  49. act 'Hello':
  50. cla
  51. '"Come with me, My wife''s away", says Dima.'
  52. act 'Fuck no':gt 'shop', 'start'
  53. act 'I deserve this':
  54. cla
  55. *clr
  56. if rand(1, 2) = 1:
  57. cla
  58. sex += 1
  59. oral += 1
  60. throat += 1
  61. spafinloc = 12
  62. gs 'cum_manage'
  63. swallow += 1
  64. horny = 0
  65. minut += 10
  66. 'Dima takes you to his house and orders you to lie across the sofa. You get on into position, he calls you a bitch and a starts fucking you in the mouth.'
  67. '<center><img src="images/pics/gostDT2.jpg"></center>'
  68. 'Dima finally finishes in your mouth, you obediently swallow and lick the remnants of sperm off his big cock.'
  69. act 'Leave':gt 'street'
  70. else
  71. cla
  72. sex += 1
  73. anal += 1
  74. spafinloc = 4
  75. gs 'cum_manage'
  76. spank += 1
  77. boom = 5
  78. horny = 0
  79. minut += 30
  80. 'Dima has brings you to his house and right in the corridor begins to kiss and undress you. When you are naked he takes you to the bathroom.'
  81. 'There he unscrews the showerhead and puts the hose in your ass. Quickly you feel the fullness and Dima sits you on the toilet. After he rough enema, he bends you over and puts his big dick in your ass.'
  82. '<center><img src="images/pics/gostAnal2.jpg"></center>'
  83. 'Dima fucks you in the ass whilst slapping your butt, at first it is painful, but gradually you get it and it feels amazing. Finally, your ass fills with hot liquid and Dima moans and grabs your buttocks.'
  84. act 'Leave':gt 'street'
  85. end
  86. end
  87. end
  88. end
  89. end
  90. end
  91. '<br>The store is crowded with shoppers.'
  92. !! This is connected to the trade mission
  93. if TorgPredZ > 0:
  94. !! the location of the shop hasn''t been done today
  95. if ($loc = 'street' and StreetShopTPday ! daystart) or ($loc = 'Nord' and nordShopTPday ! daystart) or ($loc = 'down' and downShopTPday ! daystart):
  96. act 'Arrange products':
  97. if $loc = 'street':StreetShopTPday = daystart
  98. if $loc = 'Nord':nordShopTPday = daystart
  99. if $loc = 'down':downShopTPday = daystart
  100. cls
  101. mtprand = rand(40, 130)
  102. minut += mtprand
  103. TorgPredZ -= 1
  104. TorgPredZV += 1
  105. gs 'stat'
  106. '<center><img src="images/etogame/shop.jpg"></center>'
  107. 'You arranged the products for quite a while and when I finally managed, then went to the cashier and you check it struck.'
  108. act 'Exit':gt 'shop', 'start'
  109. end
  110. end
  111. end
  112. act 'Leave the store':gt $loc
  113. exit
  114. end
  115. !! ATM
  116. if $shoplocation = 'ATM':
  117. '<center><b><font color="maroon">ATM</font></b></center>'
  118. '<center><img src="images/bank/atm.jpg"></center>'
  119. if bankAccount = 1:
  120. if karta >= 0:
  121. 'You have <<karta>> rubles in your account.'
  122. 'You have an approved credit of <font color="blue"><<bankDebtLimit>></font> rubles!'
  123. else
  124. 'You hava a debt of <font color="red"><<-1 * karta>></font> rubles.'
  125. 'You have an approved credit of <font color="blue"><<bankDebtLimit + karta>></font> rubles!'
  126. end
  127. if karta + bankDebtLimit > 0:
  128. act 'Withdraw money from the ATM':
  129. cla
  130. minut += 5
  131. kartaOUT = input ("How much money you want to withdraw?")
  132. if kartaOUT <= 0 or kartaOUT > karta + bankDebtLimit:
  133. '<br>Invalid operation.'
  134. else
  135. karta -= kartaOUT
  136. money += kartaOUT
  137. '<br>You withdraw <<kartaOUT>> rubles. You have <<karta>> rubles left in your bank account.'
  138. end
  139. gs 'stat'
  140. act 'Move away': gt 'shop'
  141. end
  142. else
  143. 'You don''t have any money left in the bank.'
  144. end
  145. else
  146. 'You don''t have a bank account yet!'
  147. end
  148. act 'Move away':gt 'shop', 'start'
  149. end
  150. !! Grocery
  151. if $shoplocation = 'grocery':
  152. cla
  153. *clr
  154. '<center><b><font color="maroon">Grocery</font></b></center>'
  155. '<center><img src="images/etogame/shop1.jpg"></center>'
  156. if hour < 8 or hour > 20:
  157. 'The grocery is currently closed.'
  158. act 'Leave the grocery':gt 'shop', 'start'
  159. exit
  160. end
  161. !! output from purchase
  162. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  163. *pl '<center><table align="center">' + _
  164. FUNC ('$stock_item', 1, 'Regular food', 50, 'eda', $CURLOC) + _
  165. FUNC ('$stock_item', 1, 'Diet food', 250, 'edaD', $CURLOC) + _
  166. FUNC ('$stock_item', 10, 'Tea biscuits', 300, 'pranik', $CURLOC) + _
  167. iif(bag > 0, FUNC ('$single_stock_item', 1, 'Bottle of water', 50, 'bottle', $CURLOC), '') + _
  168. iif(bag > 0, FUNC ('$single_stock_item', 1, 'Sandwich', 100, 'buterbrod', $CURLOC), '') + _
  169. iif(bag > 0, FUNC ('$single_stock_item', 1, 'Bottle of wine', 500, 'wine', $CURLOC), '') + _
  170. '</table></center>'
  171. clr
  172. gs 'stat'
  173. fcolor = rgb(0, 0, 0)
  174. bcolor = rgb(255, 255, 255)
  175. lcolor = rgb(106, 90, 205)
  176. act 'Leave the grocery':gt 'shop', 'start'
  177. end
  178. !! Cosmetics
  179. !! The scrunchies and hairpins sold here are from the Maruda Hair Mod
  180. if $shoplocation= 'cosmetics':
  181. cla
  182. *clr
  183. '<center><b><font color="maroon">Cosmetics Department</font></b></center>'
  184. '<center><img src="images/etogame/shop2.jpg"></center>'
  185. if hour < 8 or hour > 20:
  186. 'The cosmetics department is currently closed.'
  187. act 'Leave the cosmetics department':gt 'shop', 'start'
  188. exit
  189. end
  190. !! output from purchase
  191. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  192. *pl '<center><table align="center">' + _
  193. FUNC ('$stock_item', 50, 'Cosmetics', 1000, 'kosmetica', $CURLOC) + _
  194. FUNC ('$stock_item', 10, 'Razors', 500, 'stanok', $CURLOC) + _
  195. FUNC ('$stock_item', 20, 'Sunblock', 500, 'krem', $CURLOC) + _
  196. FUNC ('$stock_item', 20, 'Tampons', 200, 'tampon', $CURLOC) + _
  197. FUNC ('$stock_item', 20, 'Sanitary napkins', 200, 'sanpad', $CURLOC) + _
  198. FUNC ('$stock_item', 30, 'Shampoo', 500, 'shampoo', $CURLOC) + _
  199. FUNC ('$stock_item', 10, 'Hair scrunchies', 80, 'hscrunch', $CURLOC) + _
  200. FUNC ('$stock_item', 12, 'Hair pins', 100, 'hpingrip', $CURLOC)
  201. *pl iif(bag > 0, FUNC ('$stock_item', 10, 'Wipes', 100, 'salfetka', $CURLOC), '') + _
  202. iif(bag > 0, FUNC ('$stock_item', 10, 'Portable makeup', 1000, 'kosmetitka', $CURLOC), '') + _
  203. iif(bag > 0, FUNC ('$stock_item', 20, 'Mouthwash', 400, 'mouthwash', $CURLOC), '') + _
  204. iif(bag > 0, FUNC ('$single_stock_item', 1, 'Comb', 150, 'greben', $CURLOC), '') + _
  205. FUNC ('$single_stock_item', 1, 'Handbag', 5000, 'bag', $CURLOC) + _
  206. '</table></center>'
  207. clr
  208. gs 'stat'
  209. fcolor = rgb(0, 0, 0)
  210. bcolor = rgb(255, 255, 255)
  211. lcolor = rgb(106, 90, 205)
  212. act 'Leave the cosmetics department':gt 'shop', 'start'
  213. end
  214. !! Hardware
  215. if $shoplocation = 'hardware':
  216. cla
  217. *clr
  218. '<center><b><font color="maroon">Division of household goods</font></b></center>'
  219. '<center><img src="images/etogame/shop3.jpg"></center>'
  220. if hour < 8 or hour > 20:
  221. 'The hardware department is currently closed.'
  222. act 'Leave the hardware department':gt 'shop', 'start'
  223. exit
  224. end
  225. !! output from purchase
  226. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  227. *pl '<center><table align="center">' + _
  228. FUNC ('$stock_item', 20, 'Dishwashing detergent', 100, 'fairy', $CURLOC) + _
  229. FUNC ('$stock_item', 30, 'Clothing detergent', 250, 'poroshok', $CURLOC) + _
  230. FUNC ('$stock_item', 5, 'Plates', 300, 'cltarelka', $CURLOC) + _
  231. '</table></center>'
  232. clr
  233. gs 'stat'
  234. fcolor = rgb(0, 0, 0)
  235. bcolor = rgb(255, 255, 255)
  236. lcolor = rgb(106, 90, 205)
  237. act 'Leave the hardware department':gt 'shop', 'start'
  238. if poSkill >= 40:
  239. 'On the counter you can see that the fabric is suitable for teaching sewing. Bolt which is enough for one lesson stands 300 rubles.'
  240. if tkan <= 0:'Now you do not have tissue'
  241. if tkan > 0:'Now you have enough tissue to <<tkan>> lessons'
  242. if money >= 300:
  243. act'Buy cloth':
  244. cls
  245. portion = input ("How much do you want to buy?")
  246. if portion <= 0:portion = 1
  247. if portion*300 > money:'You do not have enough money.'
  248. if portion*300 <= money:
  249. tkan += portion
  250. money = money - portion*300
  251. '<center><img src="images/etogame/kassa.jpg"></center>'
  252. 'You paid the cashier and bought cloth.'
  253. end
  254. gs'stat'
  255. act 'Move away from the counter':gt'shop','hos'
  256. end
  257. end
  258. end
  259. end
  260. !! Women''s clothing
  261. if $shoplocation = 'clothing':
  262. cla
  263. *clr
  264. '<center><b><font color="maroon">Department of Women''s Clothing</font></b></center>'
  265. '<center><img src="images/etogame/shop4.jpg"></center>'
  266. if hour < 8 or hour > 20:
  267. 'The women''s clothing department is currently closed.'
  268. act 'Leave the women''s clothing department':gt 'shop', 'start'
  269. exit
  270. end
  271. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  272. *pl '<center><table align="center">' + _
  273. FUNC ('$stock_item', 1, 'Underwear', 300, 'clrbelo', $CURLOC) + _
  274. FUNC ('$stock_item', 7, 'Sale pack of underwear', 2000, 'clrbelo', $CURLOC) + _
  275. '</table></center>'
  276. '<br/>Women''s clothing cost 2,500 rubles each.'
  277. clr
  278. gs 'stat'
  279. fcolor = rgb(0, 0, 0)
  280. bcolor = rgb(255, 255, 255)
  281. lcolor = rgb(106, 90, 205)
  282. act 'Leave the women''s clothing department':gt 'shop', 'start'
  283. if konki!1:
  284. 'A pair of ice-skates are available for 500 rubles.'
  285. if money >= 500:
  286. act 'Buy skates for 500 rubles':
  287. cla
  288. *clr
  289. money = money - 500
  290. konki = 1
  291. '<center><img src="images/nigma/gor/lake/Katok/konki_shop.jpg"></center>'
  292. 'You buy a pair of skates.'
  293. act 'Move away from the counter':gt'shop'
  294. end
  295. end
  296. end
  297. if money >= 2500:
  298. if office[1] = 0:
  299. act 'Inspect Office clothes number 1':
  300. cla
  301. *clr
  302. '<center><img src="images/Clothing/5office/Office1.jpg"></center>'
  303. 'Office clothes.'
  304. 'Costs 2,500 rubles.'
  305. act 'Leave':gt'shop'
  306. act 'Buy':
  307. cla
  308. money -= 2500
  309. office[1] = 1
  310. officeH[1] = 60
  311. officeB[1] = bedra
  312. gt'shop', '<font color="green">You bought <b>Office clothes number 1</b>.</font>'
  313. end
  314. end
  315. end
  316. if office[2] = 0:
  317. act 'Inspect Office clothes number 2':
  318. cla
  319. *clr
  320. '<center><img src="images/Clothing/5office/Office2.jpg"></center>'
  321. 'Office clothes.'
  322. 'Costs 2,500 rubles.'
  323. act 'Leave':gt'shop'
  324. act 'Buy':
  325. cla
  326. money -= 2500
  327. office[2] = 1
  328. officeH[2] = 60
  329. officeB[2] = bedra
  330. gt'shop', '<font color="green">You bought <b>Office clothes number 2</b>.</font>'
  331. end
  332. end
  333. end
  334. if cheap[68] = 0:
  335. act 'Inspect cheap clothes 102':
  336. cla
  337. *clr
  338. '<center><img src="images/Clothing/1cheap/Cheap68.jpg"></center>'
  339. 'A cheap skirt and top.'
  340. 'Costs 2,500 rubles.'
  341. act 'Leave':gt 'shop'
  342. act 'Buy':
  343. cla
  344. money -= 2500
  345. cheap[68] = 1
  346. cheapH[68] = 60
  347. cheapB[68] = bedra
  348. gt 'shop', '<font color="green">You bought <b>cheap clothes 68</b>.</font>'
  349. end
  350. end
  351. end
  352. if cheap[3] = 0:
  353. act 'Inspect cheap clothes 3':
  354. cla
  355. *clr
  356. '<center><img src="images/Clothing/1cheap/Cheap3.jpg"></center>'
  357. 'A cheap skirt and top.'
  358. 'Costs 2,500 rubles.'
  359. act 'Leave':gt 'shop'
  360. act 'Buy':
  361. cla
  362. money -= 2500
  363. cheap[3] = 1
  364. cheapH[3] = 60
  365. cheapB[3] = bedra
  366. gt 'shop', '<font color="green">You bought <b>cheap clothes 3</b>.</font>'
  367. end
  368. end
  369. end
  370. if cheap[80] = 0:
  371. act 'Inspect cheap clothes 80':
  372. cla
  373. *clr
  374. '<center><img src="images/Clothing/1cheap/Cheap80.jpg"></center>'
  375. 'Cheap shorts and top.'
  376. 'Costs 2,500 rubles.'
  377. act 'Leave':gt 'shop'
  378. act 'Buy':
  379. cla
  380. money -= 2500
  381. cheap[80] = 1
  382. cheapH[80] = 60
  383. cheapB[80] = bedra
  384. gt 'shop', '<font color="green">You bought <b>cheap clothes 80</b>.</font>'
  385. end
  386. end
  387. end
  388. if cheap[10] = 0:
  389. act 'Inspect cheap clothes 10':
  390. cla
  391. *clr
  392. '<center><img src="images/Clothing/1cheap/Cheap10.jpg"></center>'
  393. 'A cheap dress.'
  394. 'Costs 2,500 rubles.'
  395. act 'Leave':gt 'shop'
  396. act 'Buy':
  397. cla
  398. money -= 2500
  399. cheap[10] = 1
  400. cheapH[10] = 60
  401. cheapB[10] = bedra
  402. gt 'shop', '<font color="green">You bought <b>cheap clothes 10</b>.</font>'
  403. end
  404. end
  405. end
  406. if cheap[45] = 0:
  407. act 'Inspect cheap clothes 45':
  408. cla
  409. *clr
  410. '<center><img src="images/Clothing/1cheap/Cheap45.jpg"></center>'
  411. 'Cheap jeans and top.'
  412. 'Costs 2,500 rubles.'
  413. act 'Leave':gt 'shop'
  414. act 'Buy':
  415. cla
  416. money -= 2500
  417. cheap[45] = 1
  418. cheapH[45] = 60
  419. cheapB[45] = bedra
  420. gt 'shop', '<font color="green">You bought <b>cheap clothes 45</b>.</font>'
  421. end
  422. end
  423. end
  424. if cheap[51] = 0:
  425. act 'Inspect cheap clothes 51':
  426. cla
  427. *clr
  428. '<center><img src="images/Clothing/1cheap/Cheap51.jpg"></center>'
  429. 'Cheap leggings and top.'
  430. 'Costs 2,500 rubles.'
  431. act 'Leave':gt 'shop'
  432. act 'Buy':
  433. cla
  434. money -= 2500
  435. cheap[51] = 1
  436. cheapH[51] = 60
  437. cheapB[51] = bedra
  438. gt 'shop', '<font color="green">You bought <b>cheap clothes 51</b>.</font>'
  439. end
  440. end
  441. end
  442. if swimwear[4] = 0:
  443. act 'Inspect swimwear 4':
  444. cla
  445. *clr
  446. '<center><img src="images/Clothing/12swimwear/Swimwear4.jpg"></center>'
  447. 'Swimwear.'
  448. 'Costs 1,000 rubles.'
  449. act 'Leave':gt 'shop'
  450. act 'Buy':
  451. cla
  452. money -= 2500
  453. swimwear[4] = 1
  454. swimwearH[4] = 60
  455. swimwearB[4] = bedra
  456. gt 'shop', '<font color="green">You bought <b>swimwear 4</b>.</font>'
  457. end
  458. end
  459. end
  460. if exercise[4] = 0:
  461. act 'Inspect exercise clothes 4':
  462. cla
  463. *clr
  464. '<center><img src="images/Clothing/7exercise/Exercise4.jpg"></center>'
  465. 'Exercise clothes.'
  466. 'Costs 2,500 rubles.'
  467. act 'Leave':gt 'shop'
  468. act 'Buy':
  469. cla
  470. money -= 2500
  471. exercise[4] = 1
  472. exerciseH[4] = 60
  473. gt 'shop', '<font color="green">You bought <b>exercise clothes 4</b>.</font>'
  474. end
  475. end
  476. end
  477. if exercise[20] = 0:
  478. act 'Inspect exercise clothes 20':
  479. cla
  480. *clr
  481. '<center><img src="images/Clothing/7exercise/Exercise20.jpg"></center>'
  482. 'Exercise clothes.'
  483. 'Costs 2,500 rubles.'
  484. act 'Leave':gt 'shop'
  485. act 'Buy':
  486. cla
  487. money -= 2500
  488. exercise[20] = 1
  489. exerciseH[20] = 60
  490. gt 'shop', '<font color="green">You bought <b>exercise clothes 31</b>.</font>'
  491. end
  492. end
  493. end
  494. if coat[1] = 0:
  495. act 'Inspect coat 1':
  496. cla
  497. *clr
  498. '<center><img src="images/Clothing/11coat/Coat1.jpg"></center>'
  499. 'A coat.'
  500. 'Costs 7,500 rubles.'
  501. act 'Leave':gt 'shop'
  502. act 'Buy':
  503. cla
  504. money -= 5000
  505. coat[1] = 1
  506. coatH[1] = 60
  507. gt 'shop', '<font color="green">You bought <b>coat 1</b>.</font>'
  508. end
  509. end
  510. end
  511. end
  512. end
  513. !! Household appliances
  514. if $shoplocation = 'tech':
  515. cla
  516. *clr
  517. '<center><b><font color="maroon">Department of household appliances</font></b></center>'
  518. '<center><img src="images/etogame/shop5.jpg"></center>'
  519. if hour < 8 or hour > 20:
  520. 'The household appliance department is currently closed.'
  521. act 'Leave the appliance department':gt 'shop', 'start'
  522. exit
  523. end
  524. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  525. *pl '<center><table align="center">' + _
  526. FUNC ('$single_stock_item', 1, 'Scondhand Small CRT TV', 5000, 'TV', $CURLOC) + _
  527. FUNC ('$single_stock_item', 2, 'Large Plasma TV', 35000, 'TV', $CURLOC) + _
  528. FUNC ('$single_stock_item', 1, 'Computer', 25000, 'komp', $CURLOC) + _
  529. iif(komp > 0, FUNC ('$single_stock_item', 1, 'Computer game Dead Sunset', 500, 'GameCD2', $CURLOC), '') + _
  530. FUNC ('$single_stock_item', 1, 'Dishwasher', 50000, 'posudomashina', $CURLOC) + _
  531. FUNC ('$single_stock_item', 1, 'Washing machine', 50000, 'stiralka', $CURLOC) + _
  532. FUNC ('$single_stock_item', 1, 'Camera', 10000, 'zenit', $CURLOC) + _
  533. FUNC ('$single_stock_item', 1, 'Mini camera disguised as a cigarette pack', 40000, 'minifoto', $CURLOC) + _
  534. iif(vasya_shulgin>=30 and webcamera = 0, FUNC ('$single_stock_item', 1, 'Webcam', 10000, 'webcamera', $CURLOC), '') + _
  535. '</table></center>'
  536. clr
  537. gs 'stat'
  538. fcolor = rgb(0, 0, 0)
  539. bcolor = rgb(255, 255, 255)
  540. lcolor = rgb(106, 90, 205)
  541. act 'Leave the appliance department':gt 'shop', 'start'
  542. end
  543. !! Ice cream counter
  544. if $shoplocation = 'icecream':
  545. 'Ice cream is available for sale for 50 rubles.'
  546. act 'Move away from the counter':gt 'shop', 'start'
  547. if money >= 50:
  548. act 'Buy ice cream':
  549. cls
  550. money -= 50
  551. fat += 3
  552. manna += 500
  553. water += 60
  554. energy = 30
  555. cumspclnt = 2
  556. gs 'cum_cleanup'
  557. fbreath = 0
  558. gs 'stat'
  559. '<center><img src="images/etogame/icecreem.jpg"></center>'
  560. 'You bought ice cream and ate it not going far.'
  561. act 'Move away from the counter':gt 'shop', 'start'
  562. end
  563. end
  564. end
  565. if $shoplocation = 'megafon':
  566. cls
  567. minut+=3
  568. gs'stat'
  569. i = 0
  570. '<center><b><font color = maroon>Salon connection Megaphone</font></B></center>'
  571. '<center><img src="images/pic/phone/megafon2.jpg" ></center>'
  572. *pl '<center><table align="center">'
  573. :loopcard
  574. if i = 0:
  575. n = 5
  576. price = 60
  577. $buy_link = '<a' + iif(money >= 60, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  578. elseif i = 1:
  579. n = 10
  580. price = 115
  581. $buy_link = '<a' + iif(money >= 115, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  582. elseif i = 2:
  583. n = 20
  584. price = 220
  585. $buy_link = '<a' + iif(money >= 220, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  586. elseif i = 3:
  587. n = 50
  588. price = 520
  589. $buy_link = '<a' + iif(money >= 520, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''shop''">buy ','>buy ') +'</a>'
  590. end
  591. i += 1
  592. '<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>> rubles</td></tr>'
  593. if i < 4:
  594. jump 'loopcard'
  595. end
  596. '</table></center>'
  597. act 'Exit Department':gt'shop','start'
  598. if money > 0:
  599. act 'Put the money on the phone':
  600. cla
  601. set minut = minut + 5
  602. obmennik = input ("How many rubles do you want to deposit?")
  603. if obmennik <= 0:
  604. '<center><br><b>Do you want to think again?</b></center>'
  605. act 'Exit Department':gt'shop','start'
  606. else
  607. if money < obmennik:
  608. '<center><br>You do not have <b><<obmennik>></b> rubles.</center>'
  609. act 'Exit Department':gt'shop','start'
  610. end
  611. if money >= obmennik:
  612. set balans = balans + obmennik
  613. set money = money - obmennik
  614. clr
  615. gs'stat'
  616. '<center><br>You put <b><<obmennik>></b> rubles to the account.</center>'
  617. act 'Exit Department':gt'shop','start'
  618. end
  619. end
  620. end
  621. end
  622. end
  623. if $shoplocation = 'Anya':
  624. cla
  625. '<center><img src="images/qwest/alter/sister/sister.jpg"></center>'
  626. gs'dinsister'
  627. dynamic $sischecks
  628. '"<<$name>>, do not disturb me at work, can''t you see I have customers?'
  629. act '<B>Move away</B>':gt'shop','start'
  630. end
  631. --- shop ---------------------------------