private bool m_inUse;
public bool InUse { get { return m_inUse; } set { m_inUse = value; } }
if (!CheckVendorAccess(from))
{
Say(501522); // I shall not treat with scum like thee!
return;
}
if (DateTime.UtcNow - m_LastRestock > RestockDelay)
{
Restock();
}
if (m_inUse)
{
Say("I'm busy, go shop somewhere else.");
return;
}
if (!CheckVendorAccess(from))
{
Say(501522); // I shall not treat with scum like thee!
return;
}
Container pack = from.Backpack;
if (m_inUse)
{
Say("I'm busy, go sell your stuff somewhere else.");
return;
}
#region busyVendor
private bool m_isBusy = false;
public bool IsBusy { get { return m_isBusy; } set { m_isBusy = value; } }
public static void Initialize()
{
PacketHandlers.Register( 0x3B, 0, true, new OnPacketReceive( OnCloseVendorGumps ) );
}
private static void OnCloseVendorGumps( NetState state, PacketReader pvSrc )
{
Serial serial = pvSrc.ReadInt32();
Mobile vendor = World.FindMobile( serial );
if ( vendor == null )
{
return;
}
else
{
((BaseVendor)vendor).IsBusy = false;
return;
}
}
#endregion
We use essential cookies to make this site work, and optional cookies to enhance your experience.