private void SendCharacterList(ClientConnection client, SubPacket packet) { List <Character> characterList = Database.GetCharacters(client.currentUserId); if (characterList.Count > 8) { Program.Log.Error("Warning, got more than 8 characters. List truncated, check DB for issues."); } CharacterListPacket characterlistPacket = new CharacterListPacket(0, characterList); List <SubPacket> subPackets = characterlistPacket.BuildPackets(); BasePacket basePacket = BasePacket.CreatePacket(subPackets, true, false); BasePacket.EncryptPacket(client.blowfish, basePacket); client.QueuePacket(basePacket); }