ykuh 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # ykuh
  2. $metkaM = $ARGS[0]
  3. $locM = $CURLOC
  4. $metka = $ARGS[0]
  5. $loc = $CURLOC
  6. clr
  7. gs 'stat'
  8. '<center><b><font color="maroon">Mansion</font></b></center>'
  9. '<center>Kitchen</center>'
  10. if ymanrem[6] = 0:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/ynill.jpg"></center>'
  11. if ymanrem[6] = 1:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/yrem.jpg"></center>'
  12. if ymanrem[6] = 2:'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/ykun.jpg"></center>'
  13. if ymanrem[6] = 2:''
  14. if dirttarelka > 0 and fairy >= dirttarelka:
  15. cltarelka += dirttarelka
  16. fairy -= dirttarelka
  17. dirttarelka = 0
  18. 'Dishwasher washed your dirty dishes.'
  19. elseif fairy < dirttarelka:
  20. 'You have no more dishwashing detergent.'
  21. end
  22. if cltarelka > 0:
  23. 'In the cabinet you have <b><<cltarelka>></b> clean plates'
  24. else
  25. '<b><font color="red">You don''t have any clean plates left.</font></b>'
  26. end
  27. if dirttarelka > 0:'In the sink are <b><<dirttarelka>></b> dirty dishes. <a href="exec:dynamic $dirtarm">Wash the dishes</a>.'
  28. if fairy > 0:
  29. 'Under the sink is some dishwashing detergent, which is enough for <b><<fairy>></b> times.'
  30. else
  31. '<b><font color="red">You have nothing to wash dishes with. You should buy some dishwashing detergent.</font></b>'
  32. end
  33. if eda > 0:
  34. if cltarelka = 0 or edahot > 0:$edagot = ''
  35. if cltarelka > 0 and edahot = 0:$edagot = '<a href="exec:dynamic $edagotd">Cook meal (0:30)</a>'
  36. 'In the refrigerator there''s food, enough for <b><<eda>></b> servings. <<$edagot>>'
  37. elseif edaD = 0 and eda = 0:
  38. '<b><font color="red">The fridge is empty, you have nothing to eat.</font></b>'
  39. end
  40. act 'Leave the room':minut += 1 & gt 'ymans'
  41. if edahot > 0:'<a href="exec:dynamic $edahotd">On the table is a cooked meal.</a>'
  42. if pranik > 0:
  43. 'You have <<pranik>> cookies.'
  44. act 'Drink tea with cookies (0:05)':
  45. cla
  46. *clr
  47. minut += 5
  48. pranik -= 1
  49. pcs_health += 30
  50. pcs_mood += 20
  51. pcs_energy += 60
  52. water += 60
  53. cumspclnt = 2
  54. gs 'cum_cleanup'
  55. pcs_breath = 0
  56. fat += 4
  57. frost = 0
  58. gs 'stat'
  59. '<center><img <<$set_imgh>> src="images/shared/food/food.jpg"></center>'
  60. 'You drank tea with cookies, sweet and very bad for your figure, but so good.'
  61. act 'Get up from the table':gt $curloc
  62. end
  63. end
  64. dynamic $edaD
  65. dynamic $fatdel
  66. act 'Drink':
  67. cla
  68. minut += 5
  69. if water >= 20:
  70. 'You are not thirsty.'
  71. elseif water < 20:
  72. water += 20
  73. cumspclnt = 2
  74. gs 'cum_cleanup'
  75. pcs_breath = 0
  76. 'You gladly drank a glass of water.'
  77. end
  78. act 'Get up from the table':gt $curloc
  79. end
  80. if husband > 0 and husbanday > 0 and huseatday ! daystart and eda >= 2:
  81. act 'Cook a meal for your husband, 2 servings (1:00)':
  82. cla
  83. *clr
  84. husband += 5
  85. eda -= 2
  86. minut += 60
  87. huseatday = daystart
  88. pcs_mood -= 15
  89. '<center><img <<$set_imgh>> src="images/shared/home/kitchen/cook.jpg"></center>'
  90. 'You cooked some food for your husband.'
  91. act 'Put the food on the table':gt $curloc
  92. end
  93. end
  94. if lekarstvo > 0:
  95. 'You have <<lekarstvo>> tablets.'
  96. if sick > 0 and lekarday ! daystart:
  97. act 'Take a pill':
  98. cla
  99. *clr
  100. minut += 5
  101. lekarday = daystart
  102. lekarstvo -= 1
  103. sick -= sick * 20 / 100
  104. '<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/lekr1.jpg"></center>'
  105. 'You took the pill'
  106. act 'Move away':gt $curloc
  107. end
  108. end
  109. end
  110. if vitamin > 0:
  111. 'You have <<vitamin>> vitamins.'
  112. if vitaminday ! daystart:
  113. act 'Take some vitamins':
  114. cla
  115. *clr
  116. minut += 5
  117. vitaminday = daystart
  118. vitamin -= 1
  119. frost = 0
  120. if KandidozOnce = 1:Kandidoz -= 2
  121. if GerpesOnce = 1:Gerpes -= 2
  122. if SifacOnce = 1 and Sifilis >= 10:Sifilis -= rand(0, 1)
  123. pcs_skin += 1
  124. 'You took vitamins'
  125. act 'Move away':gt $curloc
  126. end
  127. end
  128. end
  129. --- ykuh ---------------------------------