Scriptname _00E_MQ02_D3_AlfridBenchScript extends ObjectReference  

Import Utility

Event OnActivate(ObjectReference akActionRef)

if (akActionRef == PlayerREF) && (MQ02.GetStage() == 45)
	if (Alfrid.GetActorReference().GetSitState() == 3)
		Wait(2)
		MQ02.SetStage(47)
	Else
		RegisterForSingleUpdate(1)
	EndIf
EndIf

EndEvent

Event OnUpdate()
	if (Alfrid.GetActorReference().GetSitState() == 3)
		If (PlayerREF.GetSitState() == 3)
			MQ02.SetStage(47)
		Elseif (PlayerREF.GetSitState() == 2)
			Wait(1.5)
			MQ02.SetStage(47)
		Else
			MQ02.SetStage(47)
		EndIf
	Else
		RegisterForSingleUpdate(1)
	EndIf
EndEvent

Actor Property PlayerREF Auto
Quest Property MQ02 Auto
ReferenceAlias Property Alfrid Auto