# igor_schedule
!!2022/01/27
locat['igor'] = 0

if SchoolAtestat = 0 and kanikuli = 0:
	if week <= 5:
		if (hour < 6) or (hour = 6 and minut < 45):
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour < 7:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour = 7 and minut <= 15:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour = 7 and minut < 30:
			!!NotHome - Walking to school
			locat['igor']  = 4
		elseif hour < 14:
			!!NotHome - At School
			locat['igor']  = 5
		elseif hour < 15:
			!!NotHome - Hanging out near the school or walking home from school
			locat['igor']  = 6
		elseif hour < 20:
			!!At home in his room
			locat['igor'] = 7
		elseif hour < 23:
			if week = 5:
				!!At the comunity center disco
				locat['igor'] = 8
			else
				!!At home in his room
				locat['igor'] = 7
			end
		else
			if week = 5:
				!!At the comunity center disco
				locat['igor'] = 8
			else
				!!In his room with going to bed
				locat['igor'] = 9
			end
		end
	elseif week = 6:
		if igor_DimaNos_day = daystart:
			!! Igor is at a date with Dimka wont be availebel whole day.
			locat['igor']  = 11
		elseif hour < 8:
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour = 8 and minut < 30:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour < 9:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour < 20:
			!!At home in his room
			locat['igor'] = 7
		else
			!!At the comunity center disco
			locat['igor'] = 8
		end
	else
		if hour < 8:
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour = 8 and minut < 30:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour < 9:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour < 12:
			!!At home in his room
			locat['igor'] = 7
		elseif hour < 15:
			if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
				!!At the lake beach hanging out with the other cool kids and the jocks
				locat['igor'] = 10
			else
				!!At home in his room
				locat['igor'] = 7
			end
		elseif hour < 23:
			!!At home in his room
			locat['igor'] = 7
		else
			!!In his room with going to bed
			locat['igor'] = 9
		end
	end
else
	if week <= 5:
		if (hour < 7) or (hour = 7 and minut < 45):
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour < 7:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour = 8 and minut <= 30:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour < 12:
			!!At home in his room
			locat['igor'] = 7
		elseif hour < 15:
			if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9 and week mod 2 = 0:
				!!At the lake beach hanging out with the other cool kids and the jocks
				locat['igor'] = 10
			else
				!!At home in his room
				locat['igor'] = 7
			end
		elseif hour < 20:
				!!At home in his room
				locat['igor'] = 7
		elseif hour < 23:
			if week = 5:
				!!At the comunity center disco
				locat['igor'] = 8
			else
				!!At home in his room
				locat['igor'] = 7
			end
		else
			if week = 5:
				!!At the comunity center disco
				locat['igor'] = 8
			else
				!!In his room with going to bed
				locat['igor'] = 9
			end
		end
	elseif week = 6:
		if igor_DimaNos_day = daystart:
			!! Igor is at a date with Dimka wont be availebel whole day.
			locat['igor']  = 11
		elseif hour < 8:
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour = 8 and minut < 30:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour < 9:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour < 12:
			!!At home in his room
			locat['igor'] = 7
		elseif hour < 15:
			if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
				!!At the lake beach hanging out with the other cool kids and the jocks
				locat['igor'] = 10
			else
				!!At home in his room
				locat['igor'] = 7
			end
		elseif hour < 20:
			!!At home in his room
			locat['igor'] = 7
		else
			!!At the comunity center disco
			locat['igor'] = 8
		end
	else
		if hour < 8:
			!!Bedroom - Asleep
			locat['igor']  = 1
		elseif hour = 8 and minut < 30:
			!!Bedroom - Getting Dressed
			locat['igor']  = 2
		elseif hour < 9:
			!!Kitchen - Breakfast
			locat['igor']  = 3
		elseif hour < 23:
			!!At home in his room
			locat['igor'] = 7
		else
			!!In his room going to bed
			locat['igor'] = 9
		end
	end
end

--- igor_schedule ---------------------------------

