hmmm not seeing bankbox, am using runuo2 by the way so maybe it's different?Look at BankBox.CanFit . It's in the server core.
public class BankBox : Container
{
private Mobile m_Owner;
private bool m_Open;
public override int DefaultMaxWeight { get { return 0; } }
public override bool IsVirtualItem { get { return true; } }
public BankBox(Serial serial)
: base(serial)
{ }
public Mobile Owner { get { return m_Owner; } }
public bool Opened { get { return m_Open; } }
public void Open()
{
m_Open = true;
if (m_Owner != null)
{
m_Owner.PrivateOverheadMessage(
MessageType.Regular,
0x3B2,
true,
String.Format("Bank container has {0} items, {1} stones", TotalItems, TotalWeight),
m_Owner.NetState);
m_Owner.Send(new EquipUpdate(this));
DisplayTo(m_Owner);
}
}
This is what I added to the Containers.cs and it doesn't seem to work
{
public override int DefaultMaxItems
{
get
{
// return base.DefaultMaxItems;
return 600;
}
}
So I'm gonna guess that's not right?
Awesome thank you very muchJust tested this script posted by Peoharen, it compiles and works.
ref: http://www.runuo.com/community/threads/bank-box-max-items.84598/#post-3800182
I tested by using a player account, not a staff account, and setting the shard to Test shard so my full is full of stuff.
Dropped a few bags until the bank item count reaches about 145.
Try to drop my robe in, it won't fit.
I use the deed, and now the robe fits.
We use essential cookies to make this site work, and optional cookies to enhance your experience.