Just check the Item you are trying to open.. If it is no (ItemType.)Box then don't use the UseItem Packet.
Change the Code in the BasicPacketHandler.cs -> Guri Function from
Code:
else if (guriPacket.Type == 300)
{
if (guriPacket.Argument == 8023 && short.TryParse(guriPacket.User.ToString(), out short slot))
{
ItemInstance box = Session.Character.Inventory.LoadBySlotAndType(slot, InventoryType.Equipment);
if (box != null)
{
box.Item.Use(Session, ref box, 1, new[] { guriPacket.Data.ToString() });
}
}
}
Code:
else if (guriPacket.Type == 300)
{
if (guriPacket.Argument == 8023 && short.TryParse(guriPacket.User.ToString(), out short slot))
{
ItemInstance box = Session.Character.Inventory.LoadBySlotAndType(slot, InventoryType.Equipment);
if (box != null && box.Item.ItemType == ItemType.Box)
{
box.Item.Use(Session, ref box, 1, new[] { guriPacket.Data.ToString() });
}
}
}






