Esempio n. 1
0
        /// <summary>
        /// Provides an easy means of routing chat messages between players
        /// </summary>
        static public void Player_RouteChat(Player p, Player from, SC_Whisper <Data.Database> chat)
        {       //Formulate the chat notification!
            SC_Chat schat = new SC_Chat();

            schat.chatType = Chat_Type.Whisper;

            schat.from    = chat.from;
            schat.message = chat.message;
            schat.bong    = chat.bong;

            //Go!
            p._client.sendReliable(schat);
        }
Esempio n. 2
0
        /// <summary>
        /// Provides an easy means of routing chat messages between players
        /// </summary>
        static public void Player_RouteChat(Player p, Player from, SC_Whisper <Data.Database> chat)
        {
            //We ignoring them?
            if (from != null)
            {
                if (p._accountIgnore.ContainsKey(from._alias) || p._accountIgnore.ContainsValue(from._ipAddress))
                {
                    return;
                }
            }

            //Formulate the chat notification!
            SC_Chat schat = new SC_Chat();

            schat.chatType = Chat_Type.Whisper;

            schat.from    = chat.from;
            schat.message = chat.message;
            schat.bong    = chat.bong;

            //Go!
            p._client.sendReliable(schat);
        }