# pavResidential
$location_type = 'public_outdoors'

$metka = $ARGS[0]
$loc = $CURLOC
$metkaM = $ARGS[0]
$locM = $CURLOC
$metkaStreet = $ARGS[0]
$locStreet = $CURLOC
CLOSE ALL
if sound = 0:
	if month >=11 and month <= 12 or month >=1 and month <=3:
		if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/zima.mp3',30
		if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
	else
		if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street_leto.mp3',30
		if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
	end
end

cla
*clr
litltown = 1
alkoblock = 0
boynumBlock = 0
music_on = 0

'<center><h4>Pavlovsk<a href="exec:gs ''obj_din'', ''new''">.</a></h4></center>'
if Enable_towntable = 1 : $_str = '<center><table><tr><td>' else $_str = ''
$_str += '<center><img src="images/etogame/gorodok.jpg"></center>'
if Enable_towntable = 1 : $_str += '</td><td>'
$_str += '<center>You are in the residential area of a provincial town in a rural area of Russia.  Population: about 15000 inhabitants.</center>'
$_str += '<center>Apart from the old <a href="exec:view''images/qwest/alter/Pav_Palace.jpg''">Imperial palace</a> with its surrounding gardens and forest, built by Catherine the Great, and the recently rebuilt <a href="exec:view''images/qwest/alter/BIP_hotel01.png''">Bip fortress</a> (which is now a Luxury hotel and restaurant), it looks much like all the other towns in the region.</a></center> '
$_str += '<center>The tallest building in town is the <a href="exec:gt ''ParChurch'',''start''">church of St Nikolas.</a></center>'
if Enable_towntable = 1 : $_str += '</td></tr><table></center>'
*nl $_str
killvar '$_str'

''

if flag_rape_1 = 1:
   flag_rape_1 = 0
   rape_count = rape
   'You stopped while you see light from streets. Breath and wincing from the pain in the pussy, thought: «Go home and immediately go to bed, no one will notice, and I won''t tell anyone», - decided you: «if I do not fly from this monster.'
elseif flag_rape_1 = 2:
   flag_rape_1 = 0
   rape_count = rape
   'You woke up from the thoughts in the center of streets. You strange your behavior, yet you got raped. But you had fun and not even particularly worried about it. Well, just a slight concern about the orgasm. You even like it. '
elseif rape > rape_count:
   !for normal rape. differ display with bimbolevel
   rape_count = rape
   if bimbolevel > 2:
      'You feel great after having sex, and don''t understand why they didn''t just ask. Silly man.'
   elseif bimbolevel > 0:
      'You wake up from the thoughts in the center of streets. You strange your behavior, yet you got raped. But you had fun and not even particularly worried about it. Well, just a slight concern about the orgasm. You even like it. '
   else
      'You stopped while you see light from streets. Breath and wincing from the pain in the pussy, thought: «Go home and immediately go to bed, no one will notice, and I won''t tell anyone», - decided you: «if I do not fly from this monster.'
   end
end

if belgangQW=1000 and hour>=16 and hour<21 and daybelisex!daystart:gt 'BelSex', 'outing'

if belgangQW=100 and hour>=16 and hour<21 and daybelisex!daystart:gt 'BelSex', 'drive'

if belgangQW=9000 and belgangday<daystart:gt 'BelSex', 'pay'

if GorSlut = 6 and rand(1, 10) = 10:
	'A guy approaches you, and asks if you want to earn some money. He''s offering you 100 <b>₽</b> for a quick fuck in the bushes.'

	act 'Go with him': gs 'npcgeneratec', 0, 'Stranger at the Park', rand(18,45) & gs 'boyStat', $npclastgenerated & gt 'gevent', '5'
	act 'Decline':gt $curloc
	exit
end

if AlbFather >= 1:
	if AlbFaterBlackTime = 0:AlbFaterBlackTime = totminut + 2880

	'You can see election posters on the walls all over town. They say: "Vote for Boris Barlovsky!" Wait a minute... isn''t that Albina''s father?'
end

if AlbFaterBlackTime > 0 and AlbFaterBlackTime <= totminut and hour >= 16 and AlbFather = 1:gt 'AlbFatherQW'
if hour >= 16 and hour <= 22 and AlbFather = 2 and AlbZaDay + 30 < daystart and year > 2015:
	gt 'AlbStarsEnd'
end

if StoryLine > 0 and hour < 4 and motherWorry = 0 and SchoolAtestat = 0 and age < 18:
	motherWorry = 1
end

if rand(1, 5) >= 4:
	if GorSlut = 3:'You catch people staring at you intently, as if they''re supposed to know who you are but can''t quite remember why. You sincerely hope they don''t realize your promiscuous adventures are the reason why. The occasional person chuckling and pointing at you crushes those hopes, and you quickly keep walking before they get a chance to say anything.'
	if GorSlut = 4:'People look at you with lewd grins on their faces, some of them even making vulgar gestures. Looks like they know what you''ve been up to.'
	if GorSlut >= 5:'Everywhere you go, people recognize you as a whore. Some even come over and slap you on the ass, claiming they know you like it when they do, or claiming they want to sample your goods. An elderly woman sitting on a bench calls out to you, loudly calling you a slut and a whore. You hide your face and run away as fast as you can, before she can draw too much attention to you.'
end

gs 'stat'

if car > 0 and cardrive = 20:
	cardrive = 20
	'Your <a href="exec:gs ''carF'', ''start''">car<<$car>></a> is parked in the street.'
end


if StoryLine = 1 and ParHomeBlock = 0:
	'You live in one of the apartment blocks in the old part of Pavlovsk, and the door to the <a href="exec:minut += 2 & GT ''pod_ezd'',''etaj_1''" class=plain>apartment building</a> is right there. Your <a href="exec:minut += 5 & GT ''korrPar''" class=plain>parents'' home</a> is on the second floor there. <<$gcartext>>'
elseif StoryLine = 1:
	'One of the apartment blocks in the old part of Pavlovsk, and the door to the <a href="exec:minut += 2 & GT ''pod_ezd'',''etaj_1''" class=plain>apartment building</a> is right there. Your parents live here, but you are no longer welcome in their home. <<$gcartext>>'
else
	'<<$gcartext>>'
end

if rexCar = 1 and rexCarDay = daystart and hour >= 21 and hour < 23 and rexSisTalk = 3:
	'Rex is in his car, waiting for you at the parking lot near the apartment building where your parents live.'
	act 'Join Rex in his car':gt'reks','avto'
end
if rexCar = 1 and rexCarDay = daystart and hour = 21 and rexSisTalk >= 4:
	'Rex is in his car, waiting for you at the parking lot near the apartment building where your parents live.'
	act 'Join Rex in his car':gt'reks','avto2'
end

if hour >= 8 and hour <= 22:'You can see the <a href="exec:$locM = ''pavResidential'' & gt ''kiosk'', ''start''">kiosk</a> selling cigarettes and magazines.'

if SchoolBlock = 0:
	$schoolname = ' and the local <a href="exec:gt ''gschool_grounds'', ''main''">school</a>.'
else
	'.'
end
	
'The town surrounds the old place grounds which are now a large <a href="exec:gt ''gskver'', ''park''">public park</a>, close to the resisdential area is the <a href="exec:gt ''glake''">lake</a>.'

'The town square features a <a href="exec:gt ''gdk''">community center</a><<$schoolname>>'
	

'A <a href="exec:minut += 15 & gt ''Gshveyfab'', ''start''">garment factory</a> named Paris Commune is situated in the industrial area on the outskirts of town. Inhabitants of Pavlovsk can store their cars in the <a href="exec:minut += 5 & gt ''garmassiv''">garages</a>.'

''
if Enable_tablemap = 0:
	if storyline = 1:'<a href="exec:minut += 15 & gt ''shulgahome''">The Shulgin family</a> live in the apartment above your parents.'
	if ArtemBeInHome > 0 and artemblok = 0:'<a href="exec:minut += 15 & gt ''artemhome''">Artem Chebotarev</a>, one of your classmates, lives in the same apartment building as your parents, on the first floor.'
	if BeInJulMilHome = 1:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			'<a href="exec:minut += 15 & gt ''JuliaMilVhod''">Julia Milova</a>, one of your classmates, lives in the same apartment building as your parents, on the third floor.'
		else
			'Julia Milova, one of your classmates, lives in the same apartment building as your parents, on the third floor.'
		end
	end
	if BeInNatBelHome = 1:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			'<a href="exec:minut += 15 & gt ''NatBelHome''">Natasha Belova</a>, one of your classmates, lives in the same apartment building as your parents, on the fourth floor.'
		else
			'Natasha Belova, one of your classmates, lives in the same apartment building as your parents, on the fourth floor.'
		end
	end	
	if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:'<a href="exec:minut += 15 & gt ''dimaGoHome2''">Dimka Nosov</a>, one of your classmates, lives in one of the fancier houses in town.'
	if IgorLoverQW > 0 and IdorBlock = 0:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			'<a href="exec:minut += 15 & gt ''IgorEv'', ''hometalk''">Igor Kruglov</a>, one of your classmates, lives in one of the fancier houses in town.'
		else
			'Igor Kruglov, one of your classmates, lives in one of the fancier houses in town.'
		end
	end
	!if katjaFirstKiss >= 1:'<a href="exec:minut += 15 & gt ''KatjaHome''">Katja Meynold</a>, one of your classmates, lives in the richer part of town.'
	if katjaFirstKiss >= 1 or mey_vika['mey_vika_qw'] >= 27 or mey_vika['key'] = 1: 'Large private house where the <a href="exec: gt''mey_home'',-1">Meynold twins</a> live.'
	if LariskaHomeIn > 0: '<a href="exec:minut += 15 & GT ''LariskaHome''">Larissa Gruzdev</a>, one of your classmates, lives about 15 minutes away from your parents.'
	if beinalbinahome > 0:'<a href="exec:minut += 15 & gt ''albinaporog''">Albina Barlovskaya</a>, one of your classmates, lives in one of the few luxurious mansions Pavlovsk has to offer.'
else
	st_count=0 & $show_table=''
	if (serge_shulgin >=70) or (serge_shulgin >=30 and week < 6 and hour >= 16 and hour <= 23) or (week >= 6 and hour >= 10 and hour < 16) or (week < 6 and hour >= 16 and hour <= 23) or (hour >= 0 and hour < 2):
		gs'show_table','Apartment of Uncle <a href="exec:minut += 15 & GT ''shulgahome''" >Shulgin</a>.','3'
	else
		gs'show_table','Apartment of Uncle Shulgin. Not now.','3'
	end
	if ArtemBeInHome > 0 and artemblok = 0:gs'show_table','Apartment of <a href="exec:minut += 15 & gt ''artemhome''">Artem Chebotarev</a>.','3'
	if BeInJulMilHome = 1:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			gs'show_table','apartment of <a href="exec:minut += 15 & gt ''JuliaMilHome''">Julia Milova</a>.','3'
		else
			gs'show_table','apartment of Julia Milova. Not now.','3'
		end
	end
	if BeInNatBelHome = 1:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			gs'show_table','apartment of <a href="exec:minut += 15 & gt ''NatBelHome''">Natasha Belova</a>.','3'
		else
			gs'show_table','apartment of Natasha Belova. Not now.','3'
		end
	end
	if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:gs'show_table','Fancier house of <a href="exec:minut += 15 & gt ''dimaGoHome2''">Dimka Nosov</a>.','3'
	if IgorLoverQW > 0 and IdorBlock = 0:
		if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
			gs'show_table','Fancier house of <a href="exec:minut += 15 & gt ''IgorEv'', ''hometalk''">Igor Kruglov</a>', '3'
		else
			gs'show_table','Fancier house of Igor Kruglov. Not now.'
		end
	end
	!if katjaFirstKiss >= 1:gs'show_table','house of <a href="exec:minut += 15 & gt ''KatjaHome''">Katja Meynold</a>.','3'
	if katjaFirstKiss >= 1 or mey_vika['mey_vika_qw'] >= 27 or mey_vika['key'] = 1: gs'show_table','house of <a href="exec: gt''mey_home'',-1">twins Manold</a>.','3'
	if LariskaHomeIn > 0:gs'show_table','House of <a href="exec:minut += 15 & GT ''LariskaHome''" >Lariska Gruzdevaya</a>, in richer part','3'
	if beinalbinahome > 0:gs'show_table','Luxurious mansion of <a href="exec:minut += 15 & gt ''albinaporog''">Albina Barlovskaya</a>.','3'
	if st_count > 0 :'<TABLE BORDER=1><<$show_table>></TR></TABLE>'
end

act 'Go to the high street':minut += 5 & gt 'pavCommercial'
if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & GT 'korrPar'
if kanikuli = 0 and StoryLine > 0 and SchoolAtestat = 0 and week < 6 and hour >= 4 and hour < 9: act '<font color = green><b>Go to school</b></font>': minut += 1 & gt 'gschool_grounds', 'main'

act 'Wait':
	cla
	waiting = input ("How long would you like to wait? (Not more than 120 minutes)")

	if waiting <= 0 or waiting > 120:
		minut += 15
	elseif waiting > 0 and waiting <= 120:
		minut += waiting
	end

	act 'Check the time':gt $curloc
end

if StoryLine ! 0 and (hour >= 8 or hour < 23) and spdirtyv = 1 and rand(0, 3) = 0 and sosedday ! daystart:
	cls
	sosedday = daystart
	gs 'stat'

	if sosedknow = 0:
		sosedknow = 1
		'As you walk though Pavlovsk, someone calls out to you "<<$pcs_nickname>>!" You turn around and see uncle Misha, your neighbor. He looks at your face in amazement: "Your face looks like a mess! What is that?"'
		'You blush and hesitate, trying to inconspicuously wipe the sperm off your face. It''s obviously not working; he already noticed. You see his eyes widen when he realizes what it is. "I see. Looks like you had fun", he grins as he continues on his way.'
	else
		'Once again you run into uncle Misha, your neighbor. He notices the sperm on your face: "Again? Looks like you''ve been busy, girl. Nice look, it suits you."'
	end
	act 'Continue':gt 'pavResidential'
	exit
end

if magik >= 1 and mainQW = 0 and altQS = 1:
	cla
	*clr
	mainQW = 1
	'<center><img src="images/qwest/main.jpg"></center>'
	'At the entrance to the apartment building you see Tatiana and Juugo. Tatiana adjusts her glasses and looks around, while Juugo seems to have his head in the clouds not really paying attention to his surroundings. His tattoos are not visible.'
	'Tatiana closely looks around you: "I felt a burst of energy. Were you attacked by a magician?"'
	act 'No?':gt 'mainQW'

	exit
end

if storyline ! 0 and AndRev = 1 and (hour >=22 or hour <=2) and rand(1,100) >= 90 and AndRevstart ! daystart:
	cls
	'<center><img src="images/qwest/main.jpg"></center>'
	'It was late and you were hurrying to get home when you are suddenly grabbed from behind. A large hand covered your mouth and you cannot scream. A powerful arm wrapped around your arms and chest and lifted you from your feet. You are dragged into an alleyway between two buildings and the arm around you loosened for just a moment.' 
	act 'Continue':
		cls
		'<center><img src="images/qwest/main.jpg"></center>'
		'Before you could try to escape, you felt something sting your arm and you felt your body relax against your will. Just before your eyes closed and you lost consciousness, you heard a familiar voice rasp in your ear. "Now you''ll pay for breaking my nose, you little slut."'
		act 'Continue': gt 'boilerroom', 'start'
	end
end

if rand (0,2) ! 0:gs 'din_bad' & dynamic $mobile_check

--- pavResidential ---------------------------------

