# miroslave_schedule

	!MiraLoc tells us where Mira is Located
	!----------------------------------------------
	!MiraLoc = 0	(Mira at home)		-> locat['A60'] = 0
	!MiraLoc = 1	(Mira at river)		-> locat['A60'] = 1
	!MiraLoc = 2	(Mira at meadow)	-> locat['A60'] = 2
	!MiraLoc = 3	(Mira at forest)	-> locat['A60'] = 3
	!MiraLoc = 4	(Mira at field)		-> locat['A60'] = 4
	!MiraLoc = 41	(Mira at field)		-> locat['A60'] = 41
	!MiraLoc = 42	(Mira at field)		-> locat['A60'] = 42
	!MiraLoc = 43	(Mira at field)		-> locat['A60'] = 43
	!MiraLoc = 5	(Mira with gop)		-> locat['A60'] = 5
	!MiraLoc = 6	(Mira at Gadhouse)	-> locat['A60'] = 6
	!MiraLoc = 7	(Mira at Gaddvor)	-> locat['A60'] = 7
	!MiraLoc = 8	(Mira at highway)	-> locat['A60'] = 8
	!MiraLoc = 9	(Mira with Sveta)	-> locat['A60'] = 9
	
	!! NEW
	!locat['A60'] = 0	Home
	!locat['A60'] = 1	Gad
	!locat['A60'] = 2	River
	!locat['A60'] = 3	Forest
	!locat['A60'] = 31	Meadow
	!locat['A60'] = 4	Field
	!locat['A60'] = 41	Field
	!locat['A60'] = 42	Field
	!locat['A60'] = 43	Field
	!locat['A60'] = 5	Gopniks
	!locat['A60'] = 6	Grandparents house
	!locat['A60'] = 61	Grandparents yard
	!locat['A60'] = 7	Highway
	!locat['A60'] = 9	With Sveta



!! Cikl: mira_sched = rand(0, 3)

if MiraLoc = 9:
	!! If Mira is with you, she''ll stick with you.
	MiraLoc = 9
else
	!! From mirafather and miroslavahome
	if mira_no > 0:
		locat['A60'] = 0
	else
		if sunWeather = 0:
			if npc_rel['A60'] >= 15:
				if mira_sched = 1:
					locat['A60'] = 6
				else
					locat['A60'] = 0
				end
			else
				MiraLoc = 0
			end
			!!Or MiraLoc = 6?
		else
			if hour < 8:
				locat['A60'] = 0
			elseif hour >= 20:
				if npc_rel['A60'] >= "SOMETHING":
					locat['A60'] = 5
				else
					locat['A60'] = 0
				end
			else
				if mira_shed = 1:
					!!			8-10,	10-12,	12-14,	14-16,	16-18,	18-20
					!! Sched0: 	River,	River,	Forest,	Meadow,	River,	home
					if hour < 10:
						locat['A60'] = 2
					elseif hour < 12:
						locat['A60'] = 2
					elseif hour < 14:
						locat['A60'] = 3
					elseif hour < 16:
						locat['A60'] = 31
					elseif hour < 18:
						locat['A60'] = 2
					else
						locat['A60'] = 0
					end
				elseif mira_shed = 2:
				
				end
			end
		end

		if npc_QW['A60'] > 15 and hour >= 16 and hour <= 19:
			locat['A60'] = 8
		elseif locat['A60'] ! 0:
			if npc_rel['A60'] = 0:
				locat['A60'] = 1
			else
				if month >= 4 and month <= 10 and hour >= 8 and hour <= 18:
					locat['A60'] = 1
				elseif hour >= 8 and hour <= 22:
					locat['A60'] = 0
				end
			end
		end
	end
end


!New
if $ARGS[0] = 'getLocation':
	if locat['A60'] = 0:
		$npcLocation['A60'] = 'Mira is at home'
	elseif locat['A60'] = 1:
		$npcLocation['A60'] = 'Mira is walking around Gad'
	elseif locat['A60'] = 2:
		$npcLocation['A60'] = 'Mira is at the river'
	elseif locat['A60'] = 3:
		$npcLocation['A60'] = 'Mira is at forest'
	elseif locat['A60'] = 31:
		$npcLocation['A60'] = 'Mira is at the meadow'
	elseif locat['A60'] = 4:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 41:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 42:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 43:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 5:
		$npcLocation['A60'] = 'Mira is with gopniks'
	elseif locat['A60'] = 6:
		$npcLocation['A60'] = 'Mira is at your Grandparents house'
	elseif locat['A60'] = 61:
		$npcLocation['A60'] = 'Mira is in your Grandparents yard'
	elseif locat['A60'] = 7:
		$npcLocation['A60'] = 'Mira is at the highway'
	elseif locat['A60'] = 9:
		$npcLocation['A60'] = 'Mira is with you'
	end
end


!{!OLD
if $ARGS[0] = 'getLocation':
	if locat['A60'] = 0:
		$npcLocation['A60'] = 'Mira is at home'
	elseif locat['A60'] = 1:
		$npcLocation['A60'] = 'Mira is at river'
	elseif locat['A60'] = 2:
		$npcLocation['A60'] = 'Mira is at meadow'
	elseif locat['A60'] = 3:
		$npcLocation['A60'] = 'Mira is at forest'
	elseif locat['A60'] = 4:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 41:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 42:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 43:
		$npcLocation['A60'] = 'Mira is at field'
	elseif locat['A60'] = 5:
		$npcLocation['A60'] = 'Mira is at gop'
	elseif locat['A60'] = 6:
		$npcLocation['A60'] = 'Mira is at gadhouse'
	elseif locat['A60'] = 7:
		$npcLocation['A60'] = 'Mira is at gaddvor'
	elseif locat['A60'] = 8:
		$npcLocation['A60'] = 'Mira is at the highway'
	elseif locat['A60'] = 9:
		$npcLocation['A60'] = 'Mira is with you'
	end
end
}

--- miroslave_schedule ---------------------------------
