/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Jan-01-2012 10:09:13pm
Filepath: scripts\events and scenarios\Halloween2011\Quests\Quest Givers\Hanzel.cs
Lines of code: 78

Description: 

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


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

namespace Server.Engines.Quests
{
	public class TheOnlyFruitIllEatQuest : BaseQuest
	{				
		public override object Title{ get{ return "The Only Fruit I'll Eat"; } }
		
		public override object Description{ get{ return "I hate all fruit except for apples which have been smothered in sugary syrup!. I adore candied apples and can never get enough of them. I think you should get me some of these candied apples, you look like the kind of person who can get candy whenever they want!<br><br>Bring me back enough apples and I'll weave a spiderweb for you out of the gossamer I went out to collect."; } }
		
		public override object Refuse{ get{ return "Shucks, I was really banking on you getting me some candied apples!"; } }
		
		public override object Uncomplete{ get{ return "If you're looking for candy, some of the other witches might offer you some quests with a bag of candy as the reward."; } }
		
		public override object Complete{ get{ return "Thank you so much for bringing me some candied apples. I just finished weaving this spider web so you can have it. Come back to see me if you get some more candied apples"; } }
	
		public TheOnlyFruitIllEatQuest() : base()
		{			
			AddObjective( new ObtainObjective( typeof( CandiedApple ), "Candied Apple", 25, 2512, 0, 1194 ) );
			
			AddReward( new BaseReward( typeof( SmallWeb ), "A small spider web" ) );
		}
		
		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 Hanzel : MondainQuester
	{
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( TheOnlyFruitIllEatQuest )
			};} 
		}
		
		[Constructable]
		public Hanzel() : base( "Hanzel", "the Warlock" )
		{			
				SetSkill( SkillName.Meditation, 60.0, 83.0 );
				SetSkill( SkillName.Focus, 60.0, 83.0 );
		}
		
		public Hanzel( Serial serial ) : base( serial )
		{
		}		
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );

			Hue = 0x83EA;

			Female = false;
			Body = 0x190;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Robe( 0x1 ) );
			AddItem( new Sandals() );
			AddItem( new WizardsHat( 0x1 ) );
			AddItem( new GoldBracelet() );

			HairItemID = 0x203C;
			HairHue = 1156;

			Item staff = new GnarledStaff();
			staff.Movable = false;
			AddItem( staff );
		}
		
		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();
		}
	}
}