/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Jan-01-2012 10:09:11pm
Filepath: scripts\events and scenarios\Christmas\quests\SantaFallenQuest\GiftboxQuest.cs
Lines of code: 90

Description: 

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


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

namespace Server.Engines.Quests
{
	public class GiftBoxQuest : BaseQuest
	{				
		public override object Title{ get{ return "Christmas Gift Gathering"; } }
		
	
		public override object Description{ get{ return "Help!  It has been reported that Santa Claus has crashed somewhere in Sosaria while doing a practice run with his sleigh.  This run also involves ensuring the sleigh can handle the weight of the magic gift boxes.  These gift boxes are special as they are very light weight and are multiplied on a as needed bassis.<br><br>At impact, these gifts have been scattered and must be found so they can be returned to the North Pole for final inspection, then delivered to everyone on Christmas. Locate the crash site, retrieve 5 gift boxes and bring them to me. "; } }
		
		/* I will patiently await your reconsideration. */
		public override object Refuse{ get{ return 1073921; } }
		
		public override object Uncomplete{ get{ return "Locate the crash site, retrieve 5 gift boxes and bring them to me."; } }
		

		public override object Complete{ get{ return "Thank you!  In the spirit of Christmas, here is some decoration for your house"; } }
	
		public GiftBoxQuest() : base()
		{
			AddObjective( new ObtainObjective( typeof( WrappedChristmasGift ), "Magical Christmas Gift Box", 5, Utility.Random( 0x46a2, 5 ) ) );
			
			
			AddReward( new BaseReward( typeof( ChristmasDecorationBag ), "Christmas Decoration" ) );
		}
		
		
		public override void GiveRewards()
		{
			base.GiveRewards();
			
			/*
			if(0.05>Utility.RandomDouble())
			{
				Owner.SendMessage(52,"Before you leave, look what I just found.  It's a spare key to go visit santa's village! Be sure to use it before Christmas as it will magically vanish.");
				Owner.GiveItem(new SantaVillageKey());			
			}*/
			
				
		}
		
		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 GiftBoxQuester : MondainQuester
	{	
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( GiftBoxQuest )
			
			};} 
		}
		
		[Constructable]
		public GiftBoxQuester() : base( "Legolas", "the Santa Elf Master Archer" )
		{	
		}
		
		public GiftBoxQuester( Serial serial ) : base( serial )
		{
		}		
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Race = Race.Elf;
			
			Hue = 0x83E6;
			HairItemID = 0x2FC2;
			HairHue = 0x8E;
			
			JesterHat hat = new JesterHat();
			hat.Hue=62;
			AddItem(hat);
			
			JinBaori overtunic = new JinBaori();
			overtunic.Hue=32;
			AddItem(overtunic);
			
			FancyShirt tunic = new FancyShirt();
			tunic.Hue=62;
			AddItem(tunic);
			
			LongPants pants = new LongPants();
			pants.Hue=32;
			AddItem(pants);
			
			Sandals shoes = new Sandals();
			shoes.Hue=62;
			AddItem(shoes);				
			
			Quiver quiver = new Quiver();
			quiver.Hue=62;
			AddItem(quiver);

			Yumi bow = new Yumi();
			bow.Hue=62;
			AddItem(bow);
		}
		
		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();
		}
	}
}