Yvan Major
Member
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!
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();
}
}
}