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

namespace Server.Items
{
	public class zencornergreystoneAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {1880, -2, 3, 1}, {1874, -1, 2, 0}, {29, -2, -2, 1}// 1	2	3	
			, {3310, 2, -1, 2}, {1873, 1, -1, 0}, {4554, 3, -1, 3}// 5	6	8	
			, {3310, -1, 3, 8}, {4554, -1, 3, 3}, {37, 3, -2, 3}// 9	10	12	
			, {1873, 0, -1, 0}, {28, -1, -2, 1}, {1896, 3, -1, 1}// 13	15	16	
			, {28, 2, -2, 1}, {38, -2, 3, 3}, {15872, -1, 0, 2}// 17	19	20	
			, {1873, 2, -1, 0}, {27, -2, -1, 1}, {1874, -1, 0, 0}// 21	22	23	
			, {3309, -1, 0, 2}, {27, -2, 2, 1}, {15872, -1, 1, 2}// 24	25	26	
			, {1895, -1, 3, 1}, {1879, 3, -2, 1}, {1896, -1, -1, 3}// 27	28	29	
			, {3309, 0, -1, 2}, {15871, 1, -1, 2}, {15871, 2, -1, 2}// 30	31	32	
			, {15872, -1, 2, 2}, {15871, 0, -1, 2}, {1874, -1, 1, 0}// 33	34	35	
			, {1895, -1, -1, 1}// 36	
		};

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

		[ Constructable ]
		public zencornergreystoneAddon()
		{

            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, 11534, -1, -1, 7, 0, -1, "ArcanistStatueEast", 1);// 4
			AddComplexComponent( (BaseAddon) this, 34, 0, -2, 1, 0, 1, "", 1);// 7
			AddComplexComponent( (BaseAddon) this, 35, -2, 0, 1, 0, 1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 35, -2, 1, 1, 0, 1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 34, 1, -2, 1, 0, 1, "", 1);// 18

		}

		public zencornergreystoneAddon( 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 zencornergreystoneAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new zencornergreystoneAddon();
			}
		}

		[Constructable]
		public zencornergreystoneAddonDeed()
		{
			Name = "zencornergreystone";
		}

		public zencornergreystoneAddonDeed( 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();
		}
	}
}