/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Feb-12-2011 07:52:58pm
Filepath: scripts\_custom\mlpackage\Quests\Bedlam\Cohenn.cs
Lines of code: 73

Description: 

***********************************************************/


using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests
{				
	public class MisplacedQuest : BaseQuest
	{							
		/* Misplaced */
		public override object Title{ get{ return 1074438; } }
		
		/* Shhh!  *nervous chuckle* Oh, sorry about that.  I forget that I'm not in the library any longer -- and instead that 
		THING has taken over.  If that wasn't distressing enough, I've misplaced my thesis pages and they've been gathered up 
		by the shambling dead.  Could you retrieve them for me? */
		public override object Description{ get{ return 1074439; } }
		
		/* *tense sigh* Of course, I understand.  If you change your mind, I'll be waiting. */
		public override object Refuse{ get{ return 1074441; } }
		
		/* Most of the creatures here wouldn't be interested in my thesis.  *nervous chuckle*  Master Gnosos would argue that 
		no one is -- not even the undead.  Still, I'd wager that the more powerful undead have my pages. */
		public override object Uncomplete{ get{ return 1074442; } }
		
		/* Ah!  You've got my pages?  Oh no ... they've been damaged.  Here, take this key.  Perhaps you can find the podium 
		and gain access to the library.  My poor books are being ravaged by that horror and you'd do well to put things right. */
		public override object Complete{ get{ return 1074443; } }
	
		public MisplacedQuest() : base()
		{			
			//todo: should probably figure out what exactly this drop is for, as it may not be the right note to drop: or don't even know if this is for a drop or what it's for.  Need to investigate!			
			AddObjective( new ObtainObjective( typeof( CohennNote1 ), "disintegrating thesis notes", 5, 0xEF5 ) );
				
			
			AddReward( new BaseReward( typeof( LibraryKey ), 1074347 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.Bedlam;
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}
		
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}		
	}
	
	public class Cohenn : MondainQuester
	{
		public override Type[] Quests{ get{ return new Type[] 
		{ 
			typeof( MisplacedQuest )
		}; } }
		
		[Constructable]
		public Cohenn() : base( "Master Cohenn", "the librarian" )
		{			
		}
		
		public Cohenn( Serial serial ) : base( serial )
		{
		}
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Female = false;
			Race = Race.Human;
			
			Hue = 0x840C;
			HairItemID = 0x2045;
			HairHue = 0x453;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Backpack() );
			AddItem( new Sandals( 0x74A ) );
			AddItem( new Robe( 0x498 ) );
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}
		
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}