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

namespace Server.Items
{
	public class tranquilitySAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {4551, -4, -2, 6}, {4550, -5, -2, 12}, {2922, -4, -1, 0}// 2	6	8	
			, {2921, -5, -1, 0}, {1872, -1, -2, 0}, {1872, 1, -2, 0}// 9	12	14	
			, {9315, -1, 0, 0}, {9315, -1, 1, 0}, {9315, 0, -1, 0}// 24	25	26	
			, {9315, 0, 0, 0}, {9315, 0, 1, 0}, {9315, 1, -1, 0}// 27	28	29	
			, {9315, 1, 0, 0}, {9315, 1, 1, 0}, {9315, -1, -1, 0}// 30	31	32	
			, {13580, 0, -1, 0}, {13580, 1, -1, 0}, {13580, -1, -1, 0}// 33	34	35	
			, {50, 1, 1, 0}, {13597, -1, 0, 0}, {13597, 0, 0, 0}// 38	45	46	
			, {13597, 1, 0, 0}, {13603, -1, 1, 0}, {13603, 0, 1, 0}// 47	48	49	
			, {13603, 1, 1, 0}, {4551, -2, -2, 6}, {4551, 0, -2, 6}// 50	51	52	
			, {4551, 2, -2, 6}, {4551, 4, -2, 6}, {4550, -3, -2, 12}// 53	54	55	
			, {4550, -1, -2, 12}, {4550, 1, -2, 12}, {4550, 3, -2, 12}// 56	57	58	
			, {4550, 5, -2, 12}, {2920, -3, -1, 0}, {2921, 3, -1, 0}// 59	78	79	
			, {2920, 5, -1, 0}, {2922, 4, -1, 0}// 80	81	
		};

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

		[ Constructable ]
		public tranquilitySAddon()
		{

            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, 1872, -4, -2, 0, 2219, -1, "", 1);// 1
			AddComplexComponent( (BaseAddon) this, 6811, -4, -2, 9, 2329, -1, "", 1);// 3
			AddComplexComponent( (BaseAddon) this, 1872, -5, -2, 0, 2219, -1, "", 1);// 4
			AddComplexComponent( (BaseAddon) this, 1872, -5, -2, 5, 2219, -1, "", 1);// 5
			AddComplexComponent( (BaseAddon) this, 9036, -5, -2, 13, 2389, -1, "", 1);// 7
			AddComplexComponent( (BaseAddon) this, 1872, -3, -2, 0, 2219, -1, "", 1);// 10
			AddComplexComponent( (BaseAddon) this, 1872, -2, -2, 0, 2219, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 1872, 0, -2, 0, 2219, -1, "", 1);// 13
			AddComplexComponent( (BaseAddon) this, 1872, 2, -2, 0, 2219, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 1872, 3, -2, 0, 2219, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 1872, 4, -2, 0, 2219, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 1872, 5, -2, 0, 2219, -1, "", 1);// 18
			AddComplexComponent( (BaseAddon) this, 1872, -3, -2, 5, 2219, -1, "", 1);// 19
			AddComplexComponent( (BaseAddon) this, 1872, -1, -2, 5, 2219, -1, "", 1);// 20
			AddComplexComponent( (BaseAddon) this, 1872, 1, -2, 5, 2219, -1, "", 1);// 21
			AddComplexComponent( (BaseAddon) this, 1872, 3, -2, 5, 2219, -1, "", 1);// 22
			AddComplexComponent( (BaseAddon) this, 1872, 5, -2, 5, 2219, -1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 50, 1, -1, 0, 2219, -1, "", 1);// 36
			AddComplexComponent( (BaseAddon) this, 50, 1, 0, 0, 2219, -1, "", 1);// 37
			AddComplexComponent( (BaseAddon) this, 50, -2, -1, 0, 2219, -1, "", 1);// 39
			AddComplexComponent( (BaseAddon) this, 50, -2, 0, 0, 2219, -1, "", 1);// 40
			AddComplexComponent( (BaseAddon) this, 50, -2, 1, 0, 2219, -1, "", 1);// 41
			AddComplexComponent( (BaseAddon) this, 49, -1, 1, 0, 2219, -1, "", 1);// 42
			AddComplexComponent( (BaseAddon) this, 49, 0, 1, 0, 2219, -1, "", 1);// 43
			AddComplexComponent( (BaseAddon) this, 49, 1, 1, 0, 2219, -1, "", 1);// 44
			AddComplexComponent( (BaseAddon) this, 6811, 4, -2, 9, 2329, -1, "", 1);// 60
			AddComplexComponent( (BaseAddon) this, 6811, 2, -2, 9, 2328, -1, "", 1);// 61
			AddComplexComponent( (BaseAddon) this, 6811, -2, -2, 9, 2328, -1, "", 1);// 62
			AddComplexComponent( (BaseAddon) this, 6811, 0, -2, 9, 2328, -1, "", 1);// 63
			AddComplexComponent( (BaseAddon) this, 9036, 5, -2, 13, 2389, -1, "", 1);// 64
			AddComplexComponent( (BaseAddon) this, 9036, 1, -2, 13, 2359, -1, "", 1);// 65
			AddComplexComponent( (BaseAddon) this, 9036, -1, -2, 13, 2359, -1, "", 1);// 66
			AddComplexComponent( (BaseAddon) this, 9036, -3, -2, 13, 2389, -1, "", 1);// 67
			AddComplexComponent( (BaseAddon) this, 9036, 3, -2, 13, 2389, -1, "", 1);// 68
			AddComplexComponent( (BaseAddon) this, 3245, -1, 2, 0, 2283, -1, "", 1);// 69
			AddComplexComponent( (BaseAddon) this, 3245, 0, 2, 0, 2283, -1, "", 1);// 70
			AddComplexComponent( (BaseAddon) this, 3245, 1, 2, 0, 2283, -1, "", 1);// 71
			AddComplexComponent( (BaseAddon) this, 3244, 2, -1, 0, 2283, -1, "", 1);// 72
			AddComplexComponent( (BaseAddon) this, 3244, 2, 0, 0, 2283, -1, "", 1);// 73
			AddComplexComponent( (BaseAddon) this, 3244, 2, 1, 0, 2283, -1, "", 1);// 74
			AddComplexComponent( (BaseAddon) this, 3244, -2, -1, 0, 2283, -1, "", 1);// 75
			AddComplexComponent( (BaseAddon) this, 3244, -2, 0, 0, 2283, -1, "", 1);// 76
			AddComplexComponent( (BaseAddon) this, 3244, -2, 1, 0, 2283, -1, "", 1);// 77

		}

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

		[Constructable]
		public tranquilitySAddonDeed()
		{
			Name = "tranquilityS";
		}

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