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

Description: 

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


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

namespace Server.Engines.Quests
{
	public class OverpopulationQuest : BaseQuest
	{				
		/* Overpopulation */
		public override object Title{ get{ return 1072252; } }
		
		/* I just can't bear it any longer.  Sure, it's my job to thin the deer out so 
		they don't overeat the area and starve themselves come winter time.  Sure, I 
		know we killed off the predators that would do this naturally so now we have 
		to make up for it.  But they're so graceful and innocent.  I just can't do it.  
		Will you? */	
		public override object Description{ get{ return 1072267; } }
		
		/* Well, okay. But if you decide you are up for it after all, c'mon back and see me. */
		public override object Refuse{ get{ return 1072270; } }
		
		/* You're not quite done yet.  Get back to work! */
		public override object Uncomplete{ get{ return 1072271; } }
	
		public OverpopulationQuest() : base()
		{			
			AddObjective( new SlayObjective( typeof( Hind ), "hinds", 10 ) );
			
			AddReward( new BaseReward( typeof( SmallTrinketBag ), 1072268 ) );
		}
		
		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 WildBoarCullQuest : BaseQuest
	{				
		/* Wild Boar Cull */
		public override object Title{ get{ return 1072245; } }
		
		/* A pity really.  With the balance of nature awry, we have no choice but to accept 
		the responsibility of making it all right.  It's all a part of the circle of life, 
		after all. So, yes, the boars are running rampant. There are far too many in the 
		region.  Will you shoulder your obligations as a higher life form? */	
		public override object Description{ get{ return 1072260; } }
		
		/* Well, okay. But if you decide you are up for it after all, c'mon back and see me. */
		public override object Refuse{ get{ return 1072270; } }
		
		/* You're not quite done yet.  Get back to work! */
		public override object Uncomplete{ get{ return 1072271; } }
	
		public WildBoarCullQuest() : base()
		{			
			AddObjective( new SlayObjective( typeof( Boar ), "boars", 10 ) );
			
			AddReward( new BaseReward( typeof( SmallTrinketBag ), 1072268 ) );
		}
		
		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 NewLeadershipQuest : BaseQuest
	{				
		/* New Leadership */
		public override object Title{ get{ return 1072905; } }
		
		/* I have a task for you ... adventurer.  Will you risk all to win great renown?  The 
		Black Order is organized into three sects, each with their own speciality.  The Dragon's 
		Flame serves the will of the Grand Mage, the Tiger's Claw answers to the Master Thief, 
		and the Serpent's Fang kills at the direction of the High Executioner.  Slay all three 
		and you will strike the order a devastating blow! */	
		public override object Description{ get{ return 1072963; } }
		
		/* I do not fault your decision. */
		public override object Refuse{ get{ return 1072973; } }
		
		/* Once you gain entrance into The Citadel, you will need to move cautiously to find 
		the sect leaders. */
		public override object Uncomplete{ get{ return 1072974; } }
	
		public NewLeadershipQuest() : base()
		{			
			AddObjective( new SlayObjective( typeof( SerpentsFangHighExecutioner ), "serpent's fang high executioner", 1, "Citadel" ) );
			AddObjective( new SlayObjective( typeof( TigersClawThief ), "tiger's claw thief", 1, "Citadel" ) );
			AddObjective( new SlayObjective( typeof( DragonsFlameGrandMage ), "dragon's flame mage", 1, "Citadel" ) );
			
			AddReward( new BaseReward( typeof( RewardBox ), 1072584 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.TheCitadel;
		}
		
		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 ExAssassinsQuest : BaseQuest
	{				
		/* Ex-Assassins */
		public override object Title{ get{ return 1072917; } }
		
		/* The Serpent's Fang sect members have gone too far! Express to them my displeasure by slaying 
		ten of them. But remember, I do not condone war on women, so I will only accept the deaths of 
		men, human and elf. */	
		public override object Description{ get{ return 1072969; } }
		
		/* As you wish. */
		public override object Refuse{ get{ return 1072979; } }
		
		/* The Black Order's fortress home is well hidden.  Legend has it that a humble fishing village 
		disguises the magical portal. */
		public override object Uncomplete{ get{ return 1072980; } }
	
		public ExAssassinsQuest() : base()
		{			
			AddObjective( new InternalObjective() );
			
			AddReward( new BaseReward( typeof( TreasureBag ), 1072583 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.TheCitadel;
		}
		
		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();
		}		
		
		private class InternalObjective : SlayObjective
		{
			public InternalObjective() : base( typeof( SerpentsFangAssassin ), "male serpent's fang assassins", 10, "Citadel" )
			{
			}
			
			public override bool IsObjective( Mobile mob )
			{
				if ( mob.Female )
					return false;
					
				return base.IsObjective( mob );
			}
		}
	}
	
	public class ExtinguishingTheFlameQuest : BaseQuest
	{				
		/* Extinguishing the Flame */
		public override object Title{ get{ return 1072911; } }
		
		/* The Dragon's Flame sect members have gone too far! Express to them my displeasure by slaying ten 
		of them. But remember, I do not condone war on women, so I will only accept the deaths of men, 
		human or elf.  Either race will do, I care not for the shape of their ears. Yes, this action will 
		properly make clear my disapproval and has a pleasing harmony. */	
		public override object Description{ get{ return 1072966; } }
		
		/* As you wish. */
		public override object Refuse{ get{ return 1072979; } }
		
		/* The Black Order's fortress home is well hidden.  Legend has it that a humble fishing village 
		disguises the magical portal. */
		public override object Uncomplete{ get{ return 1072980; } }
	
		public ExtinguishingTheFlameQuest() : base()
		{			
			AddObjective( new InternalObjective() );
			
			AddReward( new BaseReward( typeof( TreasureBag ), 1072583 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.TheCitadel;
		}
		
		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();
		}		
		
		private class InternalObjective : SlayObjective
		{
			public InternalObjective() : base( typeof( DragonsFlameMage ), "male dragon's flame mages", 10, "Citadel" )
			{
			}
			
			public override bool IsObjective( Mobile mob )
			{
				if ( mob.Female )
					return false;
					
				return base.IsObjective( mob );
			}
		}
	}
	
	public class DeathToTheNinjaQuest : BaseQuest
	{				
		/* Death to the Ninja! */
		public override object Title{ get{ return 1072913; } }
		
		/* I wish to make a statement of censure against the elite ninjas of the Black Order.  Deliver, in 
		the strongest manner, my disdain.  But do not make war on women, even those that take arms against 
		you.  It is not ... fitting. */	
		public override object Description{ get{ return 1072967; } }
		
		/* As you wish. */
		public override object Refuse{ get{ return 1072979; } }
		
		/* The Black Order's fortress home is well hidden.  Legend has it that a humble fishing village 
		disguises the magical portal. */
		public override object Uncomplete{ get{ return 1072980; } }
	
		public DeathToTheNinjaQuest() : base()
		{			
			AddObjective( new SlayObjective( typeof( EliteNinja ), "elite ninjas", 10, "Citadel" ) );
			
			AddReward( new BaseReward( typeof( TreasureBag ), 1072583 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.TheCitadel;
		}
		
		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 CrimeAndPunishmentQuest : BaseQuest
	{				
		/* Crime and Punishment */
		public override object Title{ get{ return 1072914; } }
		
		/* The Tiger's Claw sect members have gone too far! Express to them my displeasure by slaying 
		ten of them. But remember, I do not condone war on women, so I will only accept the deaths of 
		men, human and elf. */	
		public override object Description{ get{ return 1072968; } }
		
		/* As you wish. */
		public override object Refuse{ get{ return 1072979; } }
		
		/* The Black Order's fortress home is well hidden.  Legend has it that a humble fishing village 
		disguises the magical portal. */
		public override object Uncomplete{ get{ return 1072980; } }
	
		public CrimeAndPunishmentQuest() : base()
		{			
			AddObjective( new InternalObjective() );
			
			AddReward( new BaseReward( typeof( TreasureBag ), 1072583 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.TheCitadel;
		}
		
		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();
		}		
		
		private class InternalObjective : SlayObjective
		{
			public InternalObjective() : base( typeof( TigersClawThief ), "male tiger's claw thieves", 10, "Citadel" )
			{
			}
			
			public override bool IsObjective( Mobile mob )
			{
				if ( mob.Female )
					return false;
					
				return base.IsObjective( mob );
			}
		}
	}
	
	public class Acob : MondainQuester
	{		
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( OverpopulationQuest ),
				typeof( WildBoarCullQuest ),
				typeof( NewLeadershipQuest ),
				typeof( ExAssassinsQuest ),
				typeof( ExtinguishingTheFlameQuest ),
				typeof( DeathToTheNinjaQuest ),
				typeof( CrimeAndPunishmentQuest )
			};} 
		}
		
		[Constructable]
		public Acob() : base( "Elder Acob", "the wise" )
		{			
			SetSkill( SkillName.Meditation, 60.0, 83.0 );
			SetSkill( SkillName.Focus, 60.0, 83.0 );
		}
		
		public Acob( Serial serial ) : base( serial )
		{
		}		
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Female = false;
			Race = Race.Elf;
			
			Hue = 0x8389;
			HairItemID = 0x2FCF;
			HairHue = 0x389;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Backpack() );
			AddItem( new ElvenBoots( 0x73D ) );
			AddItem( new HidePants() );
			AddItem( new ElvenShirt( 0x71 ) );
		}
		
		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();
		}
	}
}