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

namespace Server.Items
{
	public class megalavapoolAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {12962, -3, -3, 0}, {4924, -1, -3, 0}, {4921, -2, -3, 0}// 1	2	3	
			, {4924, 1, -3, 0}, {12965, 3, -3, 0}, {4921, 2, -3, 0}// 4	5	6	
			, {4924, 0, -3, 0}, {4927, -3, 1, 0}, {4915, 0, 3, 0}// 7	8	9	
			, {4936, -3, -2, 0}, {4918, 1, 3, 0}, {4906, 3, 1, 0}// 10	11	12	
			, {4912, 2, 3, 0}, {12964, 3, 3, 0}, {12963, -3, 3, 0}// 13	14	15	
			, {13390, -2, 2, 0}, {13371, 2, -2, 0}, {13383, 0, 0, 0}// 16	17	18	
			, {13371, 2, 2, 0}, {13390, -2, -2, 0}, {4933, -3, 2, 0}// 19	20	25	
			, {4897, 3, -1, 0}, {6711, 1, 1, 0}, {6715, 1, 0, 0}// 26	27	28	
			, {6719, 1, -1, 0}, {6761, 0, 1, 0}, {6765, -1, 1, 0}// 29	30	31	
			, {6701, 0, 0, 2}, {6747, 0, 0, 2}, {6723, 2, -1, 0}// 32	33	39	
			, {6769, -1, 2, 0}, {4894, 3, 0, 0}, {4930, -3, 0, 0}// 40	41	42	
			, {4900, 3, 2, 0}, {13644, -1, -1, 0}, {4918, -2, 3, 0}// 43	44	48	
			, {4912, -1, 3, 0}, {4930, -3, -1, 0}, {4906, 3, -2, 0}// 49	50	51	
			, {6773, 2, 1, 0}, {6773, 1, 2, 0}, {6773, -1, -1, 1}// 52	53	54	
					};

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

		[ Constructable ]
		public megalavapoolAddon()
		{

            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, 4870, 0, -1, 0, 0, 1, "", 1);// 21
			AddComplexComponent( (BaseAddon) this, 4882, 0, 2, 0, 0, 1, "", 1);// 22
			AddComplexComponent( (BaseAddon) this, 4858, -1, 0, 0, 0, 1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 4858, 2, 0, 0, 0, 1, "", 1);// 24
			AddComplexComponent( (BaseAddon) this, 4888, 1, -2, 0, 0, 1, "", 1);// 34
			AddComplexComponent( (BaseAddon) this, 4876, 0, -2, 0, 0, 1, "", 1);// 35
			AddComplexComponent( (BaseAddon) this, 4858, -2, -1, 0, 0, 1, "", 1);// 36
			AddComplexComponent( (BaseAddon) this, 4864, -2, 0, 0, 0, 1, "", 1);// 37
			AddComplexComponent( (BaseAddon) this, 4858, -2, 1, 0, 0, 1, "", 1);// 38
			AddComplexComponent( (BaseAddon) this, 4888, -1, -2, 0, 0, 1, "", 1);// 45
			AddComplexComponent( (BaseAddon) this, 4858, 2, 1, 0, 0, 1, "", 1);// 46
			AddComplexComponent( (BaseAddon) this, 4882, 1, 2, 0, 0, 1, "", 1);// 47

		}

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

		[Constructable]
		public megalavapoolAddonDeed()
		{
			Name = "megalavapool";
		}

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