예제 #1
0
 /// <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);
         }
     }
 }
예제 #2
0
파일: Guild.cs 프로젝트: mywebext/DOL
 /// <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);
         }
     }
 }