:: pav_disco_classmates
<<set $here = 'pav_disco_classmates'>>
<<set $ARGS = $location_var[$here]>>
<!-- !2021/05/02-->
<<if $location_var[$here][0] == 'classmates'>>
	<<if $time.hour < 20>>
		<<gt 'pav_disco'>>

	<</if>>
	<<set $loc_arg = ''>>
	<<set $loc = 'pav_disco'>>
	<<set $location_type = 'public_indoors'>>
	<<set $menu_loc = 'pav_disco_coolkids'>>
	<<set $menu_arg = 'classmates'>>
	<<if getvar("$music_on") == 1>>
		<<set $track_loop = 'sound/komb.mp3'>>
		<<set $volume = 80>>
		<<set $music_loop = 1>>
		<<link "Turn off the music">><<set $music_on = 0>> <<gt $loc>><</link>>
	<<else>>
		<<set $music_loop = 0>>
		<<link "Play music">><<set $music_on = 1>> <<gt $loc>><</link>>
	<</if>>
	<<set $menu_off = 1>>
	
	<<if $atdisco['day'] != $time.daystart or $atdisco['hour'] != $time.hour>>
		<<setinit $atdisco['day'] = $time.daystart>>
		<<setinit $atdisco['hour'] = $time.hour>>
		<<gs 'pav_disco_classmates' 'atdisco'>>
	<</if>>
	<h2>Disco</h2>
	Most of the cool kids and jocks are gathered around some tables and couches near the dance floor while the others dance. Some of the other students are hanging around near them or are out dancing.
	<<set $table_disco = '<center><table>'>>
	<<set $i = 1>>
	<<set $i2 = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :discopop_loop'>>
	<<if ($npc('A' + $i).grupTipe == 1 or $npc('A' + $i).nickname == 'Natasha') and $discoenable['A' + $i] == 1 and $discobloc['A' + $i] != $time.daystart>>
		<<if getvar("$i2") == 0>>
			<<set $table_disco += '<tr>'>>

		<</if>>
		<<set $i2 += 1>>
		<<if getvar("$night_mode") == 1 or getvar("$night_mode") == 2>>
			<<set $table_disco += '<td><table bgcolor=#404040>'>>
		<<else>>
			<<set $table_disco += '<td><table bgcolor=#FFF8DC>'>>
		<</if>>
		<!-- FAILED TO CONVERT
			$table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''cool_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
		-----
			<<set $table_disco += ERROR: FAILED TO CONVERT LITERAL: """'<tr><td align=center><a href="exec: i = <<i>>""">> <<set gt ''pav_disco_classmates'' , ERROR: FAILED TO CONVERT LITERAL: """''cool_list''"><img  height""" = ERROR: FAILED TO CONVERT LITERAL: """"100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><tr><td align=center>$npc('A'+$i+'').usedname<""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><""" / ERROR: FAILED TO CONVERT LITERAL: """table><""" / ERROR: FAILED TO CONVERT LITERAL: """td>'""">>

		-->
		<<warn "CONVERSION ERROR a950a0de610b885e14b6768139b608ec">>
		<<if $i2 % 6 == 0>>
			<<set $i2 = 0>> <<set $table_disco += '</tr>'>>

		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump discopop_loop'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :discojock_loop'>>
	<<if $npc('A' + $i).grupTipe == 2 and $discoenable['A' + $i] == 1 and $discobloc['A' + $i] != $time.daystart>>
		<<if getvar("$i2") == 0>>
			<<set $table_disco += '<tr>'>>

		<</if>>
		<<set $i2 += 1>>
		<<if getvar("$night_mode") == 1 or getvar("$night_mode") == 2>>
			<<set $table_disco += '<td><table bgcolor=#404040>'>>
		<<else>>
			<<set $table_disco += '<td><table bgcolor=#FFF8DC>'>>
		<</if>>
		<!-- FAILED TO CONVERT
			$table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''jocks_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
		-----
			<<set $table_disco += ERROR: FAILED TO CONVERT LITERAL: """'<tr><td align=center><a href="exec: i = <<i>>""">> <<set gt ''pav_disco_classmates'' , ERROR: FAILED TO CONVERT LITERAL: """''jocks_list''"><img  height""" = ERROR: FAILED TO CONVERT LITERAL: """"100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><tr><td align=center>$npc('A'+$i+'').usedname<""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><""" / ERROR: FAILED TO CONVERT LITERAL: """table><""" / ERROR: FAILED TO CONVERT LITERAL: """td>'""">>

		-->
		<<warn "CONVERSION ERROR 6660711d398a35535dd778f3798dd30f">>
		<<if $i2 % 6 == 0>>
			<<set $i2 = 0>> <<set $table_disco += '</tr>'>>

		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump discojock_loop'>>

	<</if>>
	<<if $i2 % 6 <> 0>>
		<<warn 'JUMP MARKER ENCOUNTERED: :disco_loopi21'>>
		<<set $i2 += 1>>
		<<set $table_disco += '<td></td>'>>
		<<if $i2 % 6 == 0>>
			<<set $i2 = 0>>
			<<set $table_disco += '</tr>'>>
		<<else>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump disco_loopi21'>>
		<</if>>
	<</if>>
	<<set $table_disco += '</table></center>'>>
	$table_disco
	The gopniks are lounging in the darkest corner of the hall. They're mostly keeping to themselves, but a few of them are out dancing.
	<<set $table_disco = '<center><table>'>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :discogop_loop'>>
	<<if $npc('A' + $i).grupTipe == 4 and $discoenable['A' + $i] == 1 and $discobloc['A' + $i] != $time.daystart>>
		<<set $loopname = $npc('A' + $i).nickname>>
		<<set $loopname = $lcase($loopname)>>
		<<if getvar("$i2") == 0>>
			<<set $table_disco += '<tr>'>>

		<</if>>
		<<set $i2 += 1>>
		<<if getvar("$night_mode") == 1 or getvar("$night_mode") == 2>>
			<<set $table_disco += '<td><table bgcolor=#404040>'>>
		<<else>>
			<<set $table_disco += '<td><table bgcolor=#FFF8DC>'>>
		<</if>>
		<!-- FAILED TO CONVERT
			$table_disco += '<tr><td align=center><a href="exec: i = <<i>> & gt ''pav_disco_classmates'', ''gop_list''"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"></a></td></tr><tr><td align=center><<$npc_usedname[''A<<i>>'']>></td></tr></table></td>'
		-----
			<<set $table_disco += ERROR: FAILED TO CONVERT LITERAL: """'<tr><td align=center><a href="exec: i = <<i>>""">> <<set gt ''pav_disco_classmates'' , ERROR: FAILED TO CONVERT LITERAL: """''gop_list''"><img  height""" = ERROR: FAILED TO CONVERT LITERAL: """"100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><tr><td align=center>$npc('A'+$i+'').usedname<""" / ERROR: FAILED TO CONVERT LITERAL: """td><""" / ERROR: FAILED TO CONVERT LITERAL: """tr><""" / ERROR: FAILED TO CONVERT LITERAL: """table><""" / ERROR: FAILED TO CONVERT LITERAL: """td>'""">>

		-->
		<<warn "CONVERSION ERROR c5f9e97248fad4259c3030bcabe16111">>
		<<if $i2 % 6 == 0>>
			<<set $i2 = 0>> <<set $table_disco += '</tr>'>>

		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump discogop_loop'>>

	<</if>>
	<<if $i2 % 6 <> 0>>
		<<warn 'JUMP MARKER ENCOUNTERED: :disco_loopi23'>>
		<<set $i2 += 1>>
		<<set $table_disco += '<td></td>'>>
		<<if $i2 % 6 == 0>>
			<<set $i2 = 0>>
			<<set $table_disco += '</tr>'>>
		<<else>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump disco_loopi23'>>
		<</if>>
	<</if>>
	<<if $npcs.get('A25','slutStatus',0) > 0 and getvar("$discoenable['A25']") == 1 and $discobloc['A25'] != $time.daystart>>
		<<if getvar("$night_mode") == 1 or getvar("$night_mode") == 2>>
			<<set $table_disco += '<tr><td><table bgcolor=#404040>'>>
		<<else>>
			<<set $table_disco += '<tr><td><table bgcolor=#FFF8DC>'>>
		<</if>>
		<<set $table_disco += '<tr><td align=center><a href="exec:gt 'pav_disco_coolkids', 'sonia_outcast' "><img  height="100" src="images/characters/shared/headshots_main/25.jpg"></a></td></tr><tr><td align=center>$npc('A25').usedname</td></tr></table></td><td colspan=7></td></tr>'>>
	<</if>>
	<<set $table_disco += '</table></center>'>>
	$table_disco
	<<if $time.hour >= 21 and $time.hour < 23 and $time.weekday == 5>>
		Coach Mikhail Nikolayevich stands at the entrance of the hall.
		<<set $table_disco = '<center><table>'>>
		<<if getvar("$night_mode") == 1 or getvar("$night_mode") == 2>>
			<<set $table_disco += '<tr><td><table bgcolor=#404040>'>>
		<<else>>
			<<set $table_disco += '<tr><td><table bgcolor=#FFF8DC>'>>
		<</if>>
		<<set $table_disco += '<tr><td align=center><a href="exec: gt 'VolleyTrenerSpeak'"><img  height="100" src="images/characters/shared/headshots_main/69.jpg"></a></td></tr><tr><td align=center>Coach</td></tr></table></td><td colspan=7></td></tr>'>>
		<<set $table_disco += '</table></center>'>>
		$table_disco
	<</if>>
	<!-- !!display of their headshots in a table like the above $args has.-->
	<!-- !!if you click the head shot it goes to there args for the disco to interact with them.-->
	<!-- !!also a more advanced version of the above, can we not only give them a chance to be present, but split the images in two. One them sitting around and one of the ones dancing? SO something like this.-->
	<!-- !!	'Most the cool kids and a few of the jocks are mostly gathered around some tables and couches near the dance floor.'-->
	<!-- !!display of their headshots in a table like the above $args has of those sitting around-->
	<!-- !!	'While several of the cool kids and jocks are out on the dance floor dancing.'-->
	<!-- !!display of their headshots in a table like the above $args has of those dancing-->
	<!-- !!	'Gopniks are lounging in the darkest corner of the room, mostly keeping to themselves.'-->
	<!-- !!display of their headshots in a table like the above $args has of those sitting around-->
	<!-- !!	'While a few of the gopniks are out on the dance floor dancing.'-->
	<!-- !!display of their headshots in a table like the above $args has of those dancing-->
	<!-- !!	'Occasionally you see some of your other classmates here'-->
	<!-- !!Natasha and Sonia_outcast are the only ones that can show up here-->
	<<actCLA 'Move away'>>
		<<gt $location>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'jocks_list'>>
	<<set $listname = $npc('A' + $i).nickname>>
	<<set $listname = $lcase($listname)>>
	<<gt 'pav_disco_jocks' $listname>>
<</if>>
<<if $location_var[$here][0] == 'cool_list'>>
	<<set $listname = $npc('A' + $i).nickname>>
	<<set $listname = $lcase($listname)>>
	<<gt 'pav_disco_coolkids' $listname>>
<</if>>
<<if $location_var[$here][0] == 'gop_list'>>
	<<set $listname = $npc('A' + $i).nickname>>
	<<set $listname = $lcase($listname)>>
	<<gt 'pav_disco_gopniks' $listname>>
<</if>>
<<if $location_var[$here][0] == 'atdisco'>>
	<!-- !!Dimka-->
	<<if $igor_DimaNos_day == $time.daystart>>
		<<setinit $discoenable['A1'] = 0>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10' 1>>
	<</if>>
	<!-- !!Igor-->
	<<if $igor_DimaNos_day == $time.daystart>>
		<<setinit $discoenable['A4'] = 0>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10' 4>>
	<</if>>
	<!-- !!Mefodiy-->
	<<gs 'pav_disco_classmates' 'atdisco4' 148>>
	<!-- !!Marcus-->
	<<gs 'pav_disco_classmates' 'atdisco10' 146>>
	<!-- !!Andrey-->
	<<gs 'pav_disco_classmates' 'atdisco10' 147>>
	<!-- !!Katja-->
	<<gs 'pav_disco_classmates' 'atdisco10' 14>>
	<!-- !!Viktoriya-->
	<<gs 'pav_disco_classmates' 'atdisco10' 15>>
	<!-- !!Irina-->
	<<gs 'pav_disco_classmates' 'atdisco10' 17>>
	<!-- !!Bella-->
	<<gs 'pav_disco_classmates' 'atdisco10' 22>>
	<!-- !!Lizaveta-->
	<<gs 'pav_disco_classmates' 'atdisco10' 140>>
	<!-- !!Stasya-->
	<<if getvar("$discoenable['A147']") == 1>>
		<<setinit $discoenable['A139'] = 1>>

	<</if>>
	<!-- !!Sonia-->
	<<if $npcs.get('A25','slutStatus',0) > 0>>
		<<gs 'pav_disco_classmates' 'atdisco4i' 25>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10' 25>>
	<</if>>
	<!-- !!Lazar-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 149>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10' 149>>
	<</if>>
	<!-- !!Fedor-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 5>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco4' 5>>
	<</if>>
	<!-- !!Svyatoslav-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 8>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10' 8>>
	<</if>>
	<!-- !!Vanya-->
	<<gs 'pav_disco_classmates' 'atdisco4' 165>>
	<!-- !!Lariska-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 13>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco4' 13>>
	<</if>>
	<!-- !!Albina-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco5i' 23>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco4i' 23>>
	<</if>>
	<!-- !!<<npc 'A18'>><</npc>>-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 18>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco4' 18>>
	<</if>>
	<!-- !!Lina-->
	<<if $time.weekday == 5>>
		<<gs 'pav_disco_classmates' 'atdisco3i' 19>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco4' 19>>
	<</if>>
	<!-- !!Ivan-->
	<<if $time.weekday == 5>>
		<<setinit $discoenable['A3'] = 0>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco10i' 3>>
	<</if>>
	<!-- !!Erast-->
	<<if $time.weekday == 5>>
		<<setinit $discoenable['A150'] = 0>>
	<<else>>
		<<gs 'pav_disco_classmates' 'atdisco5i' 150>>
	<</if>>
	<!-- !!Natasha-->
	<<gs 'pav_disco_classmates' 'atdisco3i' 16>>
	<!-- !!Vitek-->
	<<gs 'pav_disco_classmates' 'atdisco10' 9>>
	<!-- !!Dan-->
	<<if getvar("$discoenable['A9']") == 1>>
		<<setinit $discoenable['A10'] = 1>>

	<</if>>
	<!-- !!Vasily-->
	<<if getvar("$discoenable['A9']") == 1>>
		<<setinit $discoenable['A11'] = 1>>

	<</if>>
	<!-- !!Roman-->
	<<gs 'pav_disco_classmates' 'atdisco4' 157>>
	<!-- !!Radomir-->
	<<gs 'pav_disco_classmates' 'atdisco4' 154>>
	<!-- !!Valentin-->
	<<gs 'pav_disco_classmates' 'atdisco4' 158>>
	<!-- !!Arkadi-->
	<<gs 'pav_disco_classmates' 'atdisco4' 156>>
	<!-- !!Nikolai-->
	<<gs 'pav_disco_classmates' 'atdisco4' 185>>
	<!-- !!Lavrenti-->
	<<gs 'pav_disco_classmates' 'atdisco10' 155>>
	<!-- !!Lena-->
	<<gs 'pav_disco_classmates' 'atdisco4' 20>>
	<!-- !!Lera-->
	<<if getvar("$discoenable['A20']") == 1>>
		<<setinit $discoenable['A21'] = 1>>

	<</if>>
	<!-- !!Pauline-->
	<<gs 'pav_disco_classmates' 'atdisco4' 24>>
	<!-- !!Anushka-->
	<<gs 'pav_disco_classmates' 'atdisco4' 144>>
	<!-- !!Alyona-->
	<<gs 'pav_disco_classmates' 'atdisco2' 143>>
	<!-- !!Ronnie-->
	<<setinit $discoenable['A141'] = 0>>
	<!-- !!Katyusha-->
	<<setinit $discoenable['A145'] = 0>>
<</if>>
<<if $location_var[$here][0] == 'atdisco2'>>
	<<set $i = $args[1]>>
	<<if rand(1,2) != 2>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco3i'>>
	<<set $i = $args[1]>>
	<<if rand(1,3) == 1>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco4'>>
	<<set $i = $args[1]>>
	<<if rand(1,4) != 4>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco4i'>>
	<<set $i = $args[1]>>
	<<if rand(1,4) == 1>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco5i'>>
	<<set $i = $args[1]>>
	<<if rand(1,5) == 1>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco10'>>
	<<set $i = $args[1]>>
	<<if rand(1,10) != 10>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'atdisco10i'>>
	<<set $i = $args[1]>>
	<<if rand(1,10) == 1>>
		<<setinit $discoenable['A' + $i] = 1>>
	<<else>>
		<<setinit $discoenable['A' + $i] = 0>>
	<</if>>
<</if>>
