public static void GuildNameRequest(WorldClient client, Packet packet) { int id; if (!packet.TryReadInt(out id)) { Log.WriteLine(LogLevel.Warn, "Failed reading Guild Name Request packet {0}", client.GetCharacterName()); return; } var guild = WorldGuild.GetGuild(id); if (guild == null) { SendGuildNameResult(client, id, ""); } else { SendGuildNameResult(client, id, guild.Name); } }