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

namespace Server.Items
{
	public class samhaimfeastNSAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {2503, 0, 2, 1}, {2444, 0, 2, 0}, {3180, -1, 2, 1}// 1	2	3	
			, {4077, 1, 2, 1}, {3197, -1, -1, 1}, {3180, 2, 1, 1}// 4	5	6	
			, {3160, 0, -1, 1}, {3160, -1, -1, 1}, {11599, 2, 0, 1}// 7	8	9	
			, {3160, 1, -1, 1}, {3158, -2, 1, 1}, {4071, -1, 0, 1}// 10	11	12	
			, {11599, 1, 0, 1}, {11599, 1, 1, 1}, {2503, 1, 2, 7}// 14	15	16	
			, {4075, 1, 0, 1}, {3178, -1, 2, 1}, {4074, 0, 1, 1}// 17	19	20	
			, {2420, 0, 1, 0}, {4072, 0, 0, 1}, {3158, 0, 1, 15}// 21	22	23	
			, {3179, 2, 1, 1}, {3157, -2, 0, 1}, {3158, -2, 2, 1}// 24	25	26	
			, {4073, -1, 2, 1}, {4076, 0, 2, 1}, {2416, 0, 1, 8}// 27	28	30	
			, {3179, -1, 2, 1}, {3197, 0, -1, 1}, {4078, 1, 1, 1}// 31	32	33	
			, {3197, 1, -1, 2}, {4070, -1, 1, 1}// 34	35	
		};

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

		[ Constructable ]
		public samhaimfeastNSAddon()
		{

            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, 2458, 1, 2, 1, 38, -1, "a champagne glass", 1);// 13
			AddComplexComponent( (BaseAddon) this, 7732, -1, -2, 1, 0, -1, "a Scarecrow", 1);// 18
			AddComplexComponent( (BaseAddon) this, 2458, 0, 2, 0, 38, -1, "a champagne glass", 1);// 29
			AddComplexComponent( (BaseAddon) this, 2458, 1, 2, 3, 38, -1, "a champagne glass", 1);// 36
			AddComplexComponent( (BaseAddon) this, 4012, 0, 1, 0, 0, 0, "", 1);// 37

		}

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

		[Constructable]
		public samhaimfeastNSAddonDeed()
		{
			Name = "samhaimfeastNS";
		}

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