public static void InteractBank(PlayerSocket socket, Packet packet) { byte interactionType = packet.ReadByte(); IMobile player = socket.Mobile; switch (interactionType) { case 0x44: //Deposit Item byte invSlotID = (byte)packet.ReadByte(); packet.ReadByte(); //?? int amount = packet.ReadInt16(); player.BankStoreItem(invSlotID, amount); break; case 0x57: //Withdraw Item byte bankSlotID = packet.ReadByte(); player.BankWithdrawItem(bankSlotID); break; default: //Unhandled Console.WriteLine("Client: {0}: Unhandled packet 0x{1:X2}", socket, interactionType); break; } }