:: radomir_popov_schedule
<<set $here = 'radomir_popov_schedule'>>
<<set $ARGS = $location_var[$here]>>
<!-- !! 2023-05-26-->
<!-- !! His schedule:-->
<!-- !RadomirLocCity tells us where Radomir is located-->
<!-- !locat['A154']-->
<!-- !------------------------------------------------>
<!-- !locat['A154'] = 0 (Radomir not home Fri and Sat 20:00 for rest of night)-->
<!-- !locat['A154'] = 1 (Radomir in the hallway)-->
<!-- !locat['A154'] = 2 (Radomir in Anushka''s room)-->
<!-- !locat['A154'] = 3 (Radomir in his room)-->
<!-- !locat['A154'] = 4 (Radomir in the kitchen)-->
<!-- !locat['A154'] = 5 (Radomir in the livingroom)-->
<!-- !locat['A154'] = 6 (Radomir in Valentin and Arkadi''s room)-->
<!-- !locat['A154'] = 7 (Radomir in the bathroom)-->
<!-- !locat['A154'] = 8 (Radomir is in the garage with the band Wed 18-23)-->
<!-- !locat['A154'] = 9 (Radomir is at work at music store in mall Mon-Fri 8 to 17)-->
<!-- !----------------------------------------------->
<!-- !! locat['A154'] = 3 An init should set this, bur here we want to preserve the current location.-->
<!-- !! For the moment based on the standard schedule. Should be adjusted to City schedule.-->
<!-- ! TODO-DONE. Fix for:-->
<!-- !!Radomir is home Mon-Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day-->
<<if $time.weekday == 1>>
	<<if $time.hour >= 8 and $time.hour < 17>>
		<<setinit $locat['A154'] = 9>>
	<<elseif $time.hour > 18>>
		<<setinit $locat['A154'] = 3>>
	<</if>>
<<elseif $time.weekday == 2>>
	<<if $time.hour >= 8 and $time.hour < 17>>
		<<setinit $locat['A154'] = 9>>
	<<elseif $time.hour > 18>>
		<<setinit $locat['A154'] = 3>>
	<</if>>
<<elseif $time.weekday == 3>>
	<<if $time.hour >= 8 and $time.hour < 17>>
		<<setinit $locat['A154'] = 9>>
	<<elseif $time.hour >= 18 and $time.hour < 23>>
		<<setinit $locat['A154'] = 8>>
	<</if>>
<<elseif $time.weekday == 4>>
	<<if $time.hour >= 8 and $time.hour < 17>>
		<<setinit $locat['A154'] = 9>>
	<<elseif $time.hour > 18>>
		<<setinit $locat['A154'] = 3>>
	<</if>>
<<elseif $time.weekday == 5>>
	<<if $time.hour >= 8 and $time.hour < 17>>
		<<setinit $locat['A154'] = 9>>
	<<elseif $time.hour >= 20>>
		<<setinit $locat['A154'] = 0>>
	<</if>>
<<elseif $time.weekday == 6>>
	<<if $time.hour >= 8 and $time.hour < 20>>
		<<setinit $locat['A154'] = 3>>
	<<elseif $time.hour >= 20>>
		<<setinit $locat['A154'] = 0>>
	<</if>>
<<elseif $time.weekday == 7>>
	<<setinit $locat['A154'] = 3>>
<</if>>
<<if getvar("$locat['A154']") > 0 and getvar("$locat['A154']") < 8>>
	<<set $RadomirLocCity = 'home'>>
<<else>>
	<<set $RadomirLocCity = 'notHome'>>
<</if>>
<<if $location_var[$here][0] == 'getLocation'>>
	<!-- !Set the text for the current NPC ID-->
	<<if getvar("$locat['A154']") == 0>>
		<<setinit $npcLocation['A144'] = 'Radomir not home Fri and Sat 20:00 for rest of night.'>>
	<<elseif getvar("$locat['A154']") == 1>>
		<<setinit $npcLocation['A144'] = 'Radomir in the hallway.'>>
	<<elseif getvar("$locat['A154']") == 2>>
		<<setinit $npcLocation['A144'] = 'Radomir in Anushka`s room.'>>
	<<elseif getvar("$locat['A154']") == 3>>
		<<setinit $npcLocation['A144'] = 'Radomir in Radomir`s room.'>>
	<<elseif getvar("$locat['A154']") == 4>>
		<<setinit $npcLocation['A144'] = 'Radomir in the kitchen.'>>
	<<elseif getvar("$locat['A154']") == 5>>
		<<setinit $npcLocation['A144'] = 'Radomir in the livingroom.'>>
	<<elseif getvar("$locat['A154']") == 6>>
		<<setinit $npcLocation['A144'] = 'Radomir in Valentin`s and Arkadi`s room.'>>
	<<elseif getvar("$locat['A154']") == 7>>
		<<setinit $npcLocation['A144'] = 'Radomir in the bathroom.'>>
	<<elseif getvar("$locat['A154']") == 8>>
		<<setinit $npcLocation['A144'] = 'Radomir is in the garage with the band.'>>
	<<elseif getvar("$locat['A154']") == 9>>
		<<setinit $npcLocation['A144'] = 'Radomir is at work, mechanic Mon-Fri 8 to 17.'>>
	<<elseif getvar("$locat['A154']") == 10>>
		<<setinit $npcLocation['A144'] = 'Radomir is in the garage working on his bike Mon 17-23.'>>
	<</if>>
<</if>>
