
////////////////////////////////////////
//                                    //
//   Generated by CEO's YAAAG - V1.2  //
// (Yet Another Arya Addon Generator) //
//                                    //
////////////////////////////////////////
using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class bloodmoonAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {12791, 2, -1, 2}, {12791, 3, 1, 2}, {12791, -2, 1, 2}// 1	2	3	
			, {12791, -3, -2, 2}, {12791, 3, 0, 2}, {3392, 1, -2, 2}// 4	5	6	
			, {12791, -3, 1, 2}, {3392, 3, -2, 2}, {12791, 2, 0, 2}// 7	8	9	
			, {12791, 3, -1, 2}, {12791, -3, 0, 2}, {12791, 0, 1, 2}// 10	11	12	
			, {12791, 0, -1, 2}, {12791, -2, -1, 2}, {12791, 1, -2, 2}// 13	14	16	
			, {12791, -1, -1, 2}, {12791, 2, 1, 2}, {12791, 2, -2, 2}// 18	19	20	
			, {12791, -1, -2, 2}, {12791, 0, -2, 2}, {3392, 2, -2, 2}// 21	22	23	
			, {12791, 3, -2, 2}, {12791, -2, -2, 2}, {12791, -3, -1, 2}// 24	25	26	
			, {12791, -1, 1, 2}, {12788, 1, 0, 2}, {12788, 1, -1, 2}// 27	30	31	
			, {12788, 1, 1, 2}, {12788, -2, 0, 2}, {12788, -1, 0, 2}// 32	33	34	
			, {12788, 0, 0, 2}, {3392, -1, -2, 2}, {3392, 0, -2, 2}// 35	36	37	
			, {3392, 3, 1, 1}, {3392, 3, -1, 2}, {3392, 3, 0, 2}// 38	39	40	
			, {12791, 3, 3, 2}, {3392, 3, 3, 2}, {12791, -2, 3, 2}// 41	42	43	
			, {12790, -2, 2, 2}, {12790, 0, 2, 2}, {12790, 1, 2, 2}// 44	45	46	
			, {12791, -1, 3, 2}, {3392, 2, 3, 2}, {12791, 1, 3, 2}// 47	48	49	
			, {12790, -3, 2, 2}, {12791, 3, 3, 2}, {3392, 1, 3, 3}// 50	51	52	
			, {12790, -3, 3, 2}, {12791, -1, 2, 2}, {12791, 0, 3, 2}// 53	54	55	
			, {12791, 2, 3, 2}, {12791, 2, 3, 2}, {12791, 3, 2, 2}// 57	58	59	
			, {12791, -3, 3, 2}, {12791, 2, 2, 2}, {3392, -1, 3, 3}// 60	61	62	
			, {3392, 0, 3, 3}, {3392, 3, 2, 3}, {3392, -2, 3, 5}// 63	64	65	
			, {3392, -3, 2, 0}// 66	
		};

 
            
		public override BaseAddonDeed Deed
		{
			get
			{
				return new bloodmoonAddonDeed();
			}
		}

		[ Constructable ]
		public bloodmoonAddon()
		{

            for (int i = 0; i < m_AddOnSimpleComponents.Length / 4; i++)
                AddComponent( new AddonComponent( m_AddOnSimpleComponents[i,0] ), m_AddOnSimpleComponents[i,1], m_AddOnSimpleComponents[i,2], m_AddOnSimpleComponents[i,3] );


			AddComplexComponent( (BaseAddon) this, 8778, -2, -1, 2, 2701, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 4475, -2, 0, 2, 2850, -1, "<BIG>Here Lies my sanity may it never return", 1);// 17
			AddComplexComponent( (BaseAddon) this, 13922, -3, 1, 21, 2781, -1, "Moon", 1);// 28
			AddComplexComponent( (BaseAddon) this, 9036, -1, 0, 2, 2781, -1, "", 1);// 29
			AddComplexComponent( (BaseAddon) this, 8779, -2, 2, 2, 2701, -1, "", 1);// 56

		}

		public bloodmoonAddon( Serial serial ) : base( serial )
		{
		}

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource)
        {
            AddComplexComponent(addon, item, xoffset, yoffset, zoffset, hue, lightsource, null, 1);
        }

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
        {
            AddonComponent ac;
            ac = new AddonComponent(item);
            if (name != null && name.Length > 0)
                ac.Name = name;
            if (hue != 0)
                ac.Hue = hue;
            if (amount > 1)
            {
                ac.Stackable = true;
                ac.Amount = amount;
            }
            if (lightsource != -1)
                ac.Light = (LightType) lightsource;
            addon.AddComponent(ac, xoffset, yoffset, zoffset);
        }

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}

	public class bloodmoonAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new bloodmoonAddon();
			}
		}

		[Constructable]
		public bloodmoonAddonDeed()
		{
			Name = "bloodmoon";
		}

		public bloodmoonAddonDeed( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}