Exemple #1
0
        /// <summary>
        /// Searches in the market for you owner comment.
        /// </summary>
        private void CM_MARKET_OWNERCOMMENT(CMSG_MARKETOWNERCOMMENT cpkt)
        {
            if (cpkt.SessionId != this.character.id)
            {
                return;
            }

            //OBTAIN COMMENT
            string comment = Singleton.Database.FindCommentByPlayerId(this.character.ModelId);

            if (comment == null)
            {
                comment = string.Empty;
            }

            //SEND THE ATTAINED COMMENT OVER TO THE PLAYER
            SMSG_MARKETMESSAGE spkt = new SMSG_MARKETMESSAGE();

            spkt.Reason    = (comment.Length == 0) ? (byte)0x0B : (byte)0;
            spkt.Message   = comment;
            spkt.SessionId = this.character.id;
            this.Send((byte[])spkt);
        }
        /// <summary>
        /// Searches in the market for you owner comment.
        /// </summary>
        private void CM_MARKET_OWNERCOMMENT(CMSG_MARKETOWNERCOMMENT cpkt)
        {
            if (cpkt.SessionId != this.character.id) return;

            //OBTAIN COMMENT
            string comment = Singleton.Database.FindCommentByPlayerId(this.character.ModelId);
            if (comment == null) comment = string.Empty;

            //SEND THE ATTAINED COMMENT OVER TO THE PLAYER
            SMSG_MARKETMESSAGE spkt = new SMSG_MARKETMESSAGE();
            spkt.Reason = (comment.Length == 0) ? (byte)0x0B : (byte)0;
            spkt.Message = comment;
            spkt.SessionId = this.character.id;
            this.Send((byte[])spkt);
        }