context: /////////////////////////////////////////////////////
  //
  //Created by:  Morrigan and Ashlar, together forever.
  //
  /////////////////////////////////////////////////////
  using System;
  using Server;
  using Server.Items;
  
  namespace Server.Items
  {
  	public class ClownfishSmallNoLidFishtankAddon : BaseAddon
  	{
  		public override BaseAddonDeed Deed
  		{
  			get
  			{
  				return new ClownfishSmallNoLidFishtankAddonDeed();
  			}
  		}
  
  		[ Constructable ]
  		public ClownfishSmallNoLidFishtankAddon()
  		{
  			AddonComponent ac = null;
  
  /////////////////////////////////////////////////////////////////////////////////////////
  /*Example		
  			Variable ac= new item "AddonComponet" with a item id of (dec number - not hex)
  			ac 	     = new AddonComponent				( 5990 );
  
  			the new item has a hue of 1 (index number)
  			ac.Hue = 1;
  
  			the new item is located at the ( targeted location, x(n -s), y(e -w), z(u-d)
  			AddComponent			 ( ac, 		    0, 	 0, 	    0 );
  */
  //Tank
  			//Black on bottom of tank
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 1;
  			ac.Name = "fishtank base";
  			AddComponent( ac, 0, 0, 0 );
  			ac = new AddonComponent( 5992 );
  			ac.Hue = 1;
  			ac.Name = "fishtank base";
  			AddComponent( ac, 0, 0, 0 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 1;
  			ac.Name = "fishtank base";
  			AddComponent( ac, 0, 0, 1 );
  			ac = new AddonComponent( 5992 );
  			ac.Hue = 1;
  			ac.Name = "fishtank base";
  			AddComponent( ac, 0, 0, 1 );
  
  			//Shades of blue
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 92;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 2 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 92;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 2 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 92;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 3 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 92;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 3 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 93;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 4 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 93;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 4 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 93;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 5 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 93;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 5 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 94;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 6 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 94;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 6 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 94;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 7 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 94;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 7 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 95;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 8 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 95;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 8 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 95;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 9 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 95;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 9 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 10 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 10 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 11 );
  			ac = new AddonComponent( 5990 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 11 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 12 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 13 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 13 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 14 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 14 );
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 96;
  			ac.Name = "water";
  			AddComponent( ac, 0, 0, 15 );
  
  			//Sand
  			ac = new AddonComponent( 4846 );
  			ac.Hue = 348;
  			ac.Name = "sand";
  			AddComponent( ac, 1, 1, 12 );
  
  			//Plant and fish
  			ac = new AddonComponent( 15105 );
  			ac.Name = "a Clownfish";
  			AddComponent( ac, 1, 1, 16 );
  
  		}
  
  		public ClownfishSmallNoLidFishtankAddon( 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();
  		}
  	}
  
  	public class ClownfishSmallNoLidFishtankAddonDeed : BaseAddonDeed
  	{
  		public override BaseAddon Addon
  		{
  			get
  			{
  				return new ClownfishSmallNoLidFishtankAddon();
  			}
  		}
  
  		[Constructable]
  		public ClownfishSmallNoLidFishtankAddonDeed()
  		{
  			Name = "a Clownfish small fishtank";
  		}
  
  		public ClownfishSmallNoLidFishtankAddonDeed( Serial serial ) : base( serial )
  		{
  		}
  
  		public override void Serialize( GenericWriter writer )
  		{
  			base.Serialize( writer );
  
gt: 			writer.Write( 0 ); // Version