summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-22 20:38:26 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-22 20:38:26 +0000
commit38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d (patch)
tree2ac7f91b25ed1c8da6e0e8bae0bb1e24b2c144d9 /src/common/mmo.h
parent256a7ebe4e172686f547cf406fd642d6e76e4ed4 (diff)
downloadhercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.gz
hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.bz2
hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.tar.xz
hercules-38b5e25fd06a5d03413f59e3e37c6ffc21d0d02d.zip
- 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
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];