Code:
public override void DisplayTo(Mobile to)
{
ProcessOpeners(to);
NetState ns = to.NetState;
if (ns == null)
{
return;
}
if (to is PlayerMobile pm)
{
if (pm.Name == "Fraz")
{
ContainerData = ContainerData.GetData(2958);
}
else if (pm.Name == "Geos")
{
ContainerData = ContainerData.GetData(3708);
}
}
ValidatePositions();
if (ns.HighSeas)
{
to.Send(new ContainerDisplayHS(this));
}
else
{
to.Send(new ContainerDisplay(this));
}
if (ns.ContainerGridLines)
{
to.Send(new ContainerContent6017(to, this));
}
else
{
to.Send(new ContainerContent(to, this));
}
if (to.ViewOPL)
{
var items = Items;
foreach (var o in items)
{
to.Send(o.OPLPacket);
}
}
}