/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Feb-12-2011 07:53:04pm
Filepath: scripts\_custom\mlpackage\Quests\Sanctuary\Gemkeeper Warriors\Mobiles\Rollarn.cs
Lines of code: 107

Description: 

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


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

namespace Server.Engines.Quests
{	
	public class BrotherlyLoveQuest : BaseQuest
	{				
		public override bool DoneOnce{ get{ return true; } }
		
		/* Brotherly Love */
		public override object Title{ get{ return 1072369; } }
		
		/* *looks around nervously*  Do you travel to The Heartwood?  I have an urgent letter that must be delivered 
		there in the next 30 minutes - to Ahie the Cloth Weaver.  Will you undertake this journey? */	
		public override object Description{ get{ return 1072585; } }
		
		/* *looks disappointed* Let me know if you change your mind. */
		public override object Refuse{ get{ return 1072587; } }
		
		/* You haven't lost the letter have you?  It must be delivered to Ahie directly.  Give it into no other hands. */
		public override object Uncomplete{ get{ return 1072588; } }
		
		/* Yes, can I help you? */
		public override object Complete{ get{ return 1074579; } }
	
		public BrotherlyLoveQuest() : base()
		{			
			AddObjective( new DeliverObjective( typeof( PersonalLetterAhie ), "letter", 1, typeof( Ahie ), "Ahie (The Heartwood)", 1800 ) );
			
			AddReward( new BaseReward( typeof( TrinketBag ), 1072341 ) );
		}
		
		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 Rollarn : MondainQuester
	{		
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( DaemonicPrismQuest ),
				typeof( HowManyHeadsQuest ),
				typeof( GlassyFoeQuest ),
				typeof( HailstormQuest ),
				typeof( WarriorsOfTheGemkeeperQuest ),
				typeof( BrotherlyLoveQuest )
			};} 
		}
		
		[Constructable]
		public Rollarn() : base( "Lorekeeper Rollarn", "the keeper of tradition" )
		{			
		}
		
		public Rollarn( Serial serial ) : base( serial )
		{
		}
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Female = false;
			CantWalk = true;
			Race = Race.Elf;
			
			Hue = 0x84DE;
			HairItemID = 0x2FC1;
			HairHue = 0x320;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Shoes( 0x1BB ) );
			AddItem( new Circlet() );
			AddItem( new Cloak( 0x296 ) );
			AddItem( new LeafChest() );
			AddItem( new LeafArms() );
			
			Item item;
			
			item = new LeafLegs();
			item.Hue = 0x74E;
			AddItem( item );
		}
		
		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 PersonalLetterAhie : BaseQuestItem
	{
		public override int LabelNumber{ get{ return 1073128; } } // A personal letter addressed to: Ahie
		public override int Lifespan{ get{ return 1800; } }
		
		[Constructable]
		public PersonalLetterAhie() : base( 0x14ED )
		{
		}
		
		public PersonalLetterAhie( Serial serial ) : base( serial )
		{
		}
		
		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();
		}
	}
}