123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- # obkitchen
- $metkaM = $ARGS[0]
- $locM = $CURLOC
- gs 'stat'
- '<center><b>in the dorm kitchen</b></center>'
- '<center><img src="images/img/centr/obkitchen.jpg"></center>'
- act 'In the corridor':gt 'dorm', 'korr'
- if eda > 0:
- act 'Cook food (1:00)':
- cla
- *clr
- minut += 60
- gs 'stat'
- edahot += 1
- eda -= 1
- manna -= 5
- '<center><img src="images/pics/cook.jpg"></center>'
- 'You prepare the meal.'
- act 'Leave the meal':gt 'obkitchen'
- end
- end
- if edahot > 0:
- act 'Eat cooked food (0:30)':
- cla
- *clr
- gs 'stat'
- frost = 0
- minut += 30
- edahot -= 1
- health += 10
- manna += 20
- '<center><img src="images/pics/food.jpg"></center>'
- if energy >= 30:
- fat += 5
- 'You can no longer eat.'
- elseif energy >= 20 and energy < 30:
- fat += 3
- energy += 10
- 'You pushed through the power of a meal.'
- elseif energy < 20:
- energy += 20
- !!fat += 1
- 'You gladly ate cooked food.'
- end
- if water >= 20:
- 'You don''t need any more tea.'
- else
- water += 20
- 'You gladly drank a mug of tea.'
- end
- act 'Get up from the table':gt 'obkitchen'
- end
- end
- if pranik > 0:
- act 'Drink tea with cookies (0:05)':
- cla
- *clr
- minut += 5
- pranik -= 1
- health += 30
- manna += 100
- energy += 20
- water += 20
- fat += 50
- frost = 0
- gs 'stat'
- '<center><img src="images/pics/food.jpg"></center>'
- 'You drank tea with cookies, sweet and very bad for the figure, but so nice.'
- act 'Get up from the table':gt 'obkitchen'
- end
- end
- if edaD > 0:
- act 'Eat diet meal (0:30)':
- cla
- *clr
- frost = 0
- minut += 30
- health += 10
- manna += 20
- edaD -= 1
- '<center><img src="images/pics/food.jpg"></center>'
- if energy >= 30:
- 'You can no longer eat.'
- elseif energy >= 20 and energy < 30:
- energy += 10
- 'You pushed through the power of a meal.'
- elseif energy < 20:
- energy += 20
- 'You gladly ate cooked food.'
- end
- if water >= 20:
- 'You don''t need any more tea.'
- else
- water += 20
- 'You gladly drank a mug of tea.'
- end
- act 'Get up from the table':gt 'obkitchen'
- end
- end
- if fatdel > 0:
- act 'Consume fat burners':
- cla
- *clr
- fatdel -= 1
- fat -= 25
- if fat < 0:fat = 0
- 'You drank fat burning capsule. These capsules are gradually and results will be seen immediately.'
- act 'Get up from the table':gt 'obkitchen'
- end
- end
- act 'Drink':
- cla
- minut += 5
- if water >= 20:
- 'You don''t need any more water.'
- else
- water += 20
- 'You gladly drank a glass of water.'
- end
- act 'Get up from the table':gt 'obkitchen'
- end
- if lekarstvo > 0:
- 'You have <<lekarstvo>> tablets.'
- if sick > 0 and lekarday ! day:
- act 'Take a pill':
- cla
- *clr
- minut += 5
- lekarday = day
- lekarstvo -= 1
- sick -= sick * 20 / 100
- lekrand = rand(1, 9)
- '<center><img src="images/inBed/lekr<<picrand>>.jpg"></center>'
- 'You took a pill'
- act 'Move away':gt 'obkitchen'
- end
- end
- end
- if vitamin > 0:
- 'You have <<vitamin>> vitaminok.'
- if vitaminday ! day:
- act 'Take vitamins (0:05)':
- cla
- *clr
- minut += 5
- vitaminday = day
- vitamin -= 1
- frost = 0
- skinvan += 1
- if skinvan = 20:skinvan = 0 & skin += 1
- 'You took some vitamins'
- act 'Move away':gt 'obkitchen'
- end
- end
- end
- --- obkitchen ---------------------------------
|