public int HandlePacket(GameClient client, GSPacketIn packet) { int id = packet.ReadInt(); bool result = false; string msg = "ConsortiaInviteDeleteHandler.Failed"; using (ConsortiaBussiness db = new ConsortiaBussiness()) { if (db.DeleteConsortiaInviteUsers(id, client.Player.PlayerCharacter.ID)) { msg = "ConsortiaInviteDeleteHandler.Success"; result = true; } } packet.WriteBoolean(result); packet.WriteString(LanguageMgr.GetTranslation(msg)); client.Out.SendTCP(packet); return 0; }