/// <summary> /// Occurs when requesting to refresh the outbox list with mail items. /// </summary> private void CM_REQUESTOUTBOXMAILLIST(CMSG_REQUESTOUTBOX cpkt) { SMSG_MAILLISTOUTBOX spkt = new SMSG_MAILLISTOUTBOX(); spkt.SessionId = this.character.id; spkt.SourceActor = this.character.id; foreach (Mail c in Singleton.Database.GetOutboxMail(this.character)) spkt.AddMail(c.MailId, c.Sender, c.Topic, 1, c.Time, 0, 0); this.Send((byte[])spkt); }
/// <summary> /// Occurs when requesting to refresh the outbox list with mail items. /// </summary> private void CM_REQUESTOUTBOXMAILLIST(CMSG_REQUESTOUTBOX cpkt) { SMSG_MAILLISTOUTBOX spkt = new SMSG_MAILLISTOUTBOX(); spkt.SessionId = this.character.id; spkt.SourceActor = this.character.id; foreach (Mail c in Singleton.Database.GetOutboxMail(this.character)) { spkt.AddMail(c.MailId, c.Sender, c.Topic, 1, c.Time, 0, 0); } this.Send((byte[])spkt); }