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

namespace Server.Items
{
	public class SerenityTableNSAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {9035, 0, -2, 16}, {7950, 1, 3, 1}, {9441, 0, 0, 4}// 5	6	7	
			, {2886, 0, 0, 7}, {3268, -2, -1, 1}, {9037, 0, -2, 23}// 10	12	14	
			, {3237, 1, -1, 1}, {9036, -2, 0, 1}, {9035, 0, -1, 18}// 18	19	21	
			, {3268, -2, 3, 1}, {9037, -1, 1, 1}, {3380, 0, 3, 1}// 22	24	25	
			, {3268, -2, 1, 1}, {3268, 2, 1, 1}, {3268, 2, 3, 1}// 26	30	33	
			, {9036, 1, -2, 23}, {9035, -1, -2, 16}, {9036, -1, -2, 23}// 34	36	37	
			, {7949, 1, 2, 1}, {9035, 0, 0, 12}, {9035, 1, -2, 16}// 38	42	45	
			, {9036, 2, 0, 1}, {6814, 2, -1, 1}, {7951, 1, 1, 2}// 47	48	52	
			, {7951, -1, 2, 1}, {3237, -1, -1, 1}, {9037, -2, -2, 21}// 54	56	58	
			, {6816, -2, -1, 1}, {9036, 2, -2, 21}, {9037, 1, 1, 2}// 61	63	69	
			, {3268, 2, -1, 1}, {3237, -1, 3, 1}, {7949, 1, 3, 1}// 71	73	74	
			, {7950, 0, 3, 1}, {3237, 1, 3, 1}, {9442, 0, 0, 1}// 75	76	77	
					};

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

		[ Constructable ]
		public SerenityTableNSAddon()
		{

            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, 4664, 0, -2, 1, 183, -1, "", 1);// 1
			AddComplexComponent( (BaseAddon) this, 4249, -1, -1, 1, 183, -1, "", 1);// 2
			AddComplexComponent( (BaseAddon) this, 4254, 2, -1, 1, 183, -1, "", 1);// 3
			AddComplexComponent( (BaseAddon) this, 4255, 2, 3, 1, 183, -1, "", 1);// 4
			AddComplexComponent( (BaseAddon) this, 3237, 2, 2, 1, 2874, -1, "", 1);// 8
			AddComplexComponent( (BaseAddon) this, 3307, 0, -1, 4, 2874, -1, "", 1);// 9
			AddComplexComponent( (BaseAddon) this, 4664, -1, -2, 1, 183, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 4664, 1, -2, 1, 183, -1, "", 1);// 13
			AddComplexComponent( (BaseAddon) this, 4665, 2, -2, 1, 183, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 4248, 1, 1, 1, 183, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 3307, 0, 0, 13, 2874, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 4249, 1, -1, 1, 183, -1, "", 1);// 20
			AddComplexComponent( (BaseAddon) this, 4251, -1, 3, 1, 183, -1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 3237, -2, 0, 1, 2874, -1, "", 1);// 27
			AddComplexComponent( (BaseAddon) this, 4251, 0, 3, 1, 183, -1, "", 1);// 28
			AddComplexComponent( (BaseAddon) this, 10265, 0, 0, 0, 387, -1, "", 1);// 29
			AddComplexComponent( (BaseAddon) this, 4248, 0, 2, 1, 183, -1, "", 1);// 31
			AddComplexComponent( (BaseAddon) this, 3237, -2, 2, 1, 2874, -1, "", 1);// 32
			AddComplexComponent( (BaseAddon) this, 4248, -1, 0, 1, 183, -1, "", 1);// 35
			AddComplexComponent( (BaseAddon) this, 4256, -2, 3, 1, 183, -1, "", 1);// 39
			AddComplexComponent( (BaseAddon) this, 4251, 1, 3, 1, 183, -1, "", 1);// 40
			AddComplexComponent( (BaseAddon) this, 4604, 1, 0, 1, 387, -1, "", 1);// 41
			AddComplexComponent( (BaseAddon) this, 4248, 0, 1, 1, 183, -1, "", 1);// 43
			AddComplexComponent( (BaseAddon) this, 4248, -1, 1, 1, 183, -1, "", 1);// 44
			AddComplexComponent( (BaseAddon) this, 4252, -2, 2, 1, 183, -1, "", 1);// 46
			AddComplexComponent( (BaseAddon) this, 4248, 1, 2, 1, 183, -1, "", 1);// 49
			AddComplexComponent( (BaseAddon) this, 4248, 1, 0, 1, 183, -1, "", 1);// 50
			AddComplexComponent( (BaseAddon) this, 4248, -1, 2, 1, 183, -1, "", 1);// 51
			AddComplexComponent( (BaseAddon) this, 4253, -2, -1, 1, 183, -1, "", 1);// 53
			AddComplexComponent( (BaseAddon) this, 4250, 2, 0, 1, 183, -1, "", 1);// 55
			AddComplexComponent( (BaseAddon) this, 4252, -2, 1, 1, 183, -1, "", 1);// 57
			AddComplexComponent( (BaseAddon) this, 4250, 2, 1, 1, 183, -1, "", 1);// 59
			AddComplexComponent( (BaseAddon) this, 4248, 0, 0, 1, 183, -1, "", 1);// 60
			AddComplexComponent( (BaseAddon) this, 4249, 0, -1, 1, 183, -1, "", 1);// 62
			AddComplexComponent( (BaseAddon) this, 4663, -2, -2, 1, 183, -1, "", 1);// 64
			AddComplexComponent( (BaseAddon) this, 4250, 2, 2, 1, 183, -1, "", 1);// 65
			AddComplexComponent( (BaseAddon) this, 4604, -1, 0, 1, 387, -1, "", 1);// 66
			AddComplexComponent( (BaseAddon) this, 3237, 2, 0, 1, 2874, -1, "", 1);// 67
			AddComplexComponent( (BaseAddon) this, 3237, 0, -1, 1, 2874, -1, "", 1);// 68
			AddComplexComponent( (BaseAddon) this, 4252, -2, 0, 1, 183, -1, "", 1);// 70
			AddComplexComponent( (BaseAddon) this, 3268, 0, 3, 1, 2874, -1, "", 1);// 72

		}

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

		[Constructable]
		public SerenityTableNSAddonDeed()
		{
			Name = "SerenityTableNS";
		}

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