summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h31
1 files changed, 31 insertions, 0 deletions
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];