/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Feb-12-2011 07:53:05pm
Filepath: scripts\_custom\mlpackage\Quests\Trammel\Andric.cs
Lines of code: 112

Description: 

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


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

namespace Server.Engines.Quests
{
	public class SplitEndsQuest : BaseQuest
	{					
		/* Split Ends */
		public override object Title{ get{ return 1075506; } }
		
		/* *sighs* I think bowcrafting is a might beyond my talents. Say there, you look a bit more confident with tools. 
		Can I persuade thee to make a few arrows? You could have my satchel in return... 'tis useless to me! You'll need a 
		fletching kit to start, some feathers, and a few arrow shafts. Just use the fletching kit while you have the other 
		things, and I'm sure you'll figure out the rest. */	
		public override object Description{ get{ return 1075507; } }
		
		/* Oh. Well. I'll just keep trying alone, I suppose... */
		public override object Refuse{ get{ return 1075508; } }
		
		/* You're not quite done yet.  Get back to work! */
		public override object Uncomplete{ get{ return 1072271; } }
		
		/* Thanks for helping me out.  Here's the reward I promised you. */
		public override object Complete{ get{ return 1072272; } }
		
		public SplitEndsQuest() : base()
		{					
			AddObjective( new ObtainObjective( typeof( Arrow ), "arrow", 20, 0xF3F ) );
						
			AddReward( new BaseReward( typeof( FletchersSatchel ), 1074282 ) ); // Craftsman's Satchel
		}
		
		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 Andric : MondainQuester
	{
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( SplitEndsQuest )
			};} 
		}
		
		[Constructable]
		public Andric() : base( "Andric", "the archer trainer" )
		{			
			SetSkill( SkillName.Blacksmith, 65.0, 88.0 );
		}
		
		public Andric( Serial serial ) : base( serial )
		{
		}		
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Female = false;
			CantWalk = true;
			Race = Race.Human;
			
			Hue = 0x8407;			
			HairItemID = 0x2049;
			HairHue = 0x6CE;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Backpack() );			
			AddItem( new Boots( 0x1BB ) );
						
			Item item;
			
			item = new LeatherLegs();
			item.Hue = 0x6C8;
			AddItem( item );
			
			item = new LeatherGloves();
			item.Hue = 0x1BB;
			AddItem( item );
			
			item = new LeatherChest();
			item.Hue = 0x1BB;
			AddItem( item );
			
			item = new LeatherArms();
			item.Hue = 0x4C7;
			AddItem( item );			
			
			item = new CompositeBow();
			item.Hue = 0x5DD;
			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 FletchersSatchel : Backpack
	{
		[Constructable]
		public FletchersSatchel() : base()
		{
			Hue = BaseReward.SatchelHue();
			
			AddItem( new Feather( 10 ) );
			AddItem( new FletcherTools() );
		}
		
		public FletchersSatchel( 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();
		}
	}
}