Michele
Member
I need to remove items from vendor, for example i want to remove contract from barkeeper, but in barkeeper.cs i cant see it.
#region Header
// **********
// ServUO - Barkeeper.cs
// **********
#endregion
#region References
using System.Collections.Generic;
using Server.Items;
#endregion
namespace Server.Mobiles
{
public class Barkeeper : BaseVendor
{
private readonly List<SBInfo> m_SBInfos = new List<SBInfo>();
[Constructable]
public Barkeeper()
: base("the barkeeper")
{ }
public Barkeeper(Serial serial)
: base(serial)
{ }
public override VendorShoeType ShoeType { get { return Utility.RandomBool() ? VendorShoeType.ThighBoots : VendorShoeType.Boots; } }
protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }
public override void InitSBInfo()
{
m_SBInfos.Add(new SBBarkeeper());
}
public override void InitOutfit()
{
base.InitOutfit();
AddItem(new HalfApron(Utility.RandomBrightHue()));
}
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();
}
}
}
// **********
// ServUO - Barkeeper.cs
// **********
#endregion
#region References
using System.Collections.Generic;
using Server.Items;
#endregion
namespace Server.Mobiles
{
public class Barkeeper : BaseVendor
{
private readonly List<SBInfo> m_SBInfos = new List<SBInfo>();
[Constructable]
public Barkeeper()
: base("the barkeeper")
{ }
public Barkeeper(Serial serial)
: base(serial)
{ }
public override VendorShoeType ShoeType { get { return Utility.RandomBool() ? VendorShoeType.ThighBoots : VendorShoeType.Boots; } }
protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }
public override void InitSBInfo()
{
m_SBInfos.Add(new SBBarkeeper());
}
public override void InitOutfit()
{
base.InitOutfit();
AddItem(new HalfApron(Utility.RandomBrightHue()));
}
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();
}
}
}