Hi all, here is my code for "Spring Water" reagent and i want to use a bottle dyed blue for it and i cannot seems to make it stackable even if it is coded Base Reagent.

Here is the code and thanks for any help!
Code:
using System;

namespace Server.Items
{
    // TODO: Commodity?
    public class SpringWater : BaseReagent, ICommodity
    {
        [Constructable]
        public SpringWater()
            : this(1)
        {
        }

        [Constructable]
        public SpringWater(int amount)
            : base(0xEFC, amount)
        {
            this.Hue = 1264;
            this.Name = "Spring Water";
        }

        public SpringWater(Serial serial)
            : base(serial)
        {
        }

        public SpringWater(int itemID, int amount) : base(itemID, amount)
        {
        }

        int ICommodity.DescriptionNumber
        {
            get
            {
                return this.LabelNumber;
            }
        }
        bool ICommodity.IsDeedable
        {
            get
            {
                return true;
            }
        }
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
}
 
does not matter. The this. is redundant

The base item also needs to have a client flag of stackable. If it does not you can not force it to be a stackable item. Is this a remake of a graphic that is, indeed, stackable??
 
does not matter. The this. is redundant

The base item also needs to have a client flag of stackable. If it does not you can not force it to be a stackable item. Is this a remake of a graphic that is, indeed, stackable??

No its a bottle, the error i am getting is a container cannot be stackable or Something like this. I cannot reload yet, i am trying to fix the Taming BOD thing to get thru the distro exact same way. I am not sure but i think its all the Taming BOD who make my unsavable playermobile.
[doublepost=1512755381][/doublepost]
does not matter. The this. is redundant

The base item also needs to have a client flag of stackable. If it does not you can not force it to be a stackable item. Is this a remake of a graphic that is, indeed, stackable??

How do i Flag the client please?
 
Back