/// <summary> /// send message to all member of alliance /// </summary> public void SendMessageToAllianceMembers(string msg, PacketHandler.eChatType type, PacketHandler.eChatLoc loc) { lock (Guilds.SyncRoot) { foreach (Guild guild in Guilds) { guild.SendMessageToGuildMembers(msg, type, loc); } } }
/// <summary> /// Sends a message to all guild members /// </summary> /// <param name="msg">message string</param> /// <param name="type">message type</param> /// <param name="loc">message location</param> public void SendMessageToGuildMembers(string msg, PacketHandler.eChatType type, PacketHandler.eChatLoc loc) { lock (m_onlineGuildPlayers) { foreach (GamePlayer pl in m_onlineGuildPlayers.Values) { if (!HasRank(pl, Guild.eRank.GcHear)) { continue; } pl.Out.SendMessage(msg, type, loc); } } }