From 38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 22 Oct 2007 20:38:26 +0000 Subject: - Added the new mail system. Requires optimization and tests. - Updated the maildb sql structure. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11548 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index abbce9d52..5374cf9b4 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -105,6 +105,11 @@ #define HM_CLASS_BASE 6001 #define HM_CLASS_MAX (HM_CLASS_BASE+MAX_HOMUNCULUS_CLASS-1) +//Mail System +#define MAX_MAIL_INBOX 30 +#define MAIL_TITLE_LENGTH 40 +#define MAIL_BODY_LENGTH 200 + struct item { int id; short nameid; @@ -236,6 +241,32 @@ struct mmo_charstatus { #endif }; +struct mail_message { + unsigned int id; + int send_id; + char send_name[NAME_LENGTH]; + int dest_id; + char dest_name[NAME_LENGTH]; + + char title[MAIL_TITLE_LENGTH]; + char body[MAIL_BODY_LENGTH]; + + unsigned char read; + unsigned int timestamp; + + int zeny; + struct item item; +}; + +struct mail_data { + short amount; + short changed; + short satured; + struct mail_message msg[MAX_MAIL_INBOX]; + + short unchecked, unreaded; +}; + struct registry { int global_num; struct global_reg global[GLOBAL_REG_NUM]; -- cgit v1.2.3-60-g2f50