/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Death on Oct-30-2011 08:24:13pm
Filepath: scripts\_custom\events and scenarios\Halloween2011\Quests\Quest Items\MathildasCrystalBall.cs
Lines of code: 65
***********************************************************/


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

namespace Server.Engines.Quests
{
	public class CrabbyOldCowQuest : BaseQuest
	{				
		public override object Title{ get{ return "Crabby Old Cow"; } }
		
		public override object Description{ get{ return "This hideous doll looks like it might belong to a young witch in the area. You should return it to the girl."; } }
		
		public override object Refuse{ get{ return "It's probably best to return the hideous doll, but for now you put it aside."; } }
		
		public override object Uncomplete{ get{ return "I'm sure the young witch is probably searching for this doll as we speak."; } }
		
		public override object Complete{ get{ return "You got my doll back! That crabby old cow Gladis took it from me, then hid it in her house. I could never reach it because I didn't know how to use her teleporter. None of the adults believed that she took it, but she did! Here, you can have this stuffed animal my mom gave me so that I would quit talking about my lost doll"; } }
	
		public CrabbyOldCowQuest() : base()
		{			
			AddObjective( new DeliverObjective( typeof( HideousDoll ) , "Hideous Doll", 1, typeof( Maple ), "Maple (Wormwood)", 3600 ) );
			
			AddReward( new BaseReward( typeof( StuffedAncientHellHound ), "A stuffed, ancient hell hound" ) );
		}
		
		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 HideousDoll : BaseQuestItem
	{
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( CrabbyOldCowQuest )
			};} 
		}
		
		public override int Lifespan{ get{ return 3600; } }
	
		[Constructable]
		public HideousDoll() : base( 8440 )
		{
			Name = "Hideous Doll (Double click for quest)";
			Hue = 1420;
		}
		
		public HideousDoll( Serial serial ) : base( serial )
		{
		}
		
		public override void GetProperties( ObjectPropertyList list)
		{
			base.GetProperties( list );
			list.Add( 1060658,"Timeline \t" + "To be deleted after Halloween Event");
		}
		
		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();
		}	
	}
}