Ejemplo n.º 1
0
        /// <summary>
        /// Occurs when requesting to refresh the inbox list with mail items.
        /// </summary>
        private void CM_REQUESTINBOXMAILLIST(CMSG_REQUESTINOX cpkt)
        {
            SMSG_MAILLIST spkt = new SMSG_MAILLIST();

            spkt.SessionId   = this.character.id;
            spkt.SourceActor = this.character.id;
            foreach (Mail c in Singleton.Database.GetInboxMail(this.character))
            {
                spkt.AddMail(c);
            }
            this.Send((byte[])spkt);
        }
Ejemplo n.º 2
0
        protected void OnCheckMail(Character target)
        {
            SMSG_MAILLIST spkt = new SMSG_MAILLIST();

            spkt.SessionId   = target.id;
            spkt.SourceActor = target.id;

            foreach (Mail c in Singleton.Database.GetInboxMail(target))
            {
                spkt.AddMail(c);
            }

            target.client.Send((byte[])spkt);
        }