OnDropItem()
{
	itemname=DroppedItemName();
	
	if(itemname=="brew")
	{	
		$map10_drinkgiven=true;
		if($map10_numdoorknock>0)
		{
			LockPlayer(true);
			AcceptDroppedItem();
			SpriteLookAtSprite($lpmorning,$lpmap10_ashdrunk1);
		
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Oh, yes, yes, this is a fine draught!","",1);

			CameraTarget($lpmorning);
			Talk($lpmorning,"Now, be a friend, and tell me the watch word.","",1);
		
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Oh, well, yes...Talon!  So simple isn't it?","",1);	

			CameraTarget($lpmorning);	
			Talk($lpmorning,"Enjoy your drink, Ashidian.","",1);
			LockPlayer(false);
		}
		else
		{
			LockPlayer(true);
			AcceptDroppedItem();
			SpriteLookAtSprite($lpmorning,$lpmap10_ashdrunk1);
		
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Oh, yes, yes, this is a fine draught!","",1);
			CameraTarget($lpmorning);
			LockPlayer(false);
		}
	}
}


OnMouseClick()
{	
	if($map10_numdoorknock==0)
	{
		LockPlayer(true);
		SpriteLookAtSprite($lpmorning,$lpmap10_ashdrunk1);
		CameraTarget($lpmap10_ashdrunk1);
		Talk($lpmap10_ashdrunk1,"Oh no, help, a Leowyn, help...","",1);
		CameraTarget($lpmorning);
		Talk($lpmorning,"If only the rest of you Ashidians were the same.","",1);
		LockPlayer(false);
	}

	if($map10_numdoorknock>0)
	{
		if($map10_drinkgiven==true)
		{
			LockPlayer(true);
			SpriteLookAtSprite($lpmorning,$lpmap10_ashdrunk1);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Gods be accursed, a Leowyn!  No, no...","",1);
			CameraTarget($lpmorning);
			Talk($lpmorning,"Would you happen to know what the watch word is?","",1);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Right, right, the watch word, it's...Talon!","",1);
			CameraTarget($lpmorning);
			Talk($lpmorning,"Is that so?  Good, good, I'll be on my way.","",1);
			LockPlayer(false);
		}
		else
		{
			LockPlayer(true);
			SpriteLookAtSprite($lpmorning,$lpmap10_ashdrunk1);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Gods be accursed, a Leowyn!  No, no...","",1);
			CameraTarget($lpmorning);
			Talk($lpmorning,"Would you happen to know what the watch word is?","",1);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Right, right, the watch word, it's...","",1);
			Talk($lpmap10_ashdrunk1,"No!  I'm drunk, but I'm not THAT drunk!","",1);
			CameraTarget($lpmorning);
			LockPlayer(false);
		}
	}
}

OnPerception()
{
	if($map10_drunkspoken==false)
	{

		Distance($lpmorning,$lpmap10_ashdrunk1,dist);

		if(dist<7)
		{
			$map10_drunkspoken=true;
			LockPlayer(true);
			StopCharacter($lpmorning);
			SpriteLookAtSprite($lpmap10_ashdrunk1,$lpmorning);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"General, sir, wait...","",1);
		
			SpriteDirection($lpmap10_ashdrunk1,1);
			Wait(1000);
	
			SpriteDirection($lpmap10_ashdrunk1,3);
			Wait(1000);

			SpriteDirection($lpmap10_ashdrunk1,6);
			Wait(1000);

			SpriteLookAtSprite($lpmap10_ashdrunk1,$lpmorning);
			CameraTarget($lpmap10_ashdrunk1);
			Talk($lpmap10_ashdrunk1,"Bleh, she's no...general, eh...","",1);
			Talk($lpmap10_ashdrunk1,"Where's my spirits, eh!","",1);
			CameraTarget($lpmorning);
			LockPlayer(false);
		}
	}
}
