summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorKirieZ <guilherme.menaldo@outlook.com>2017-07-30 13:45:41 -0300
committerKirieZ <guilherme.menaldo@outlook.com>2017-07-30 13:45:41 -0300
commit544da439e81ff78ec102b754e16b6cc0a28a6d0a (patch)
tree6fef53b94dec9f72b65b39df08fb8eb4160a467f /src/common/mmo.h
parent71d694baa88d2beb6ec0f89fb2f8b733898acea5 (diff)
downloadhercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.gz
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.bz2
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.xz
hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.zip
Implementation of RoDEX
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 276e0eb08..9bb9837ab 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -271,6 +271,13 @@
#endif
STATIC_ASSERT(MAX_ITEM_OPTIONS <= 5, "This value is limited by the client and database layout and should only be increased if you know the consequences.");
+// RoDEX
+#define RODEX_TITLE_LENGTH (40 + 1)
+#define RODEX_BODY_LENGTH (500 + 1)
+#define RODEX_MAX_ITEM (5)
+#define RODEX_EXPIRE (1 * 15 * 24 * 60 * 60)
+#define RODEX_MAIL_PER_PAGE 7
+
// The following system marks a different job ID system used by the map server,
// which makes a lot more sense than the normal one. [Skotlex]
// These marks the "level" of the job.
@@ -809,6 +816,46 @@ enum fame_list_type {
RANKTYPE_PK = 3, //Not supported yet
};
+struct rodex_message {
+ int64 id;
+ int sender_id;
+ char sender_name[NAME_LENGTH];
+ int receiver_id;
+ int receiver_accountid;
+ char receiver_name[NAME_LENGTH];
+ char title[RODEX_TITLE_LENGTH];
+ char body[RODEX_BODY_LENGTH];
+ struct {
+ struct item item;
+ int idx;
+
+ } items[RODEX_MAX_ITEM];
+ int64 zeny;
+ uint8 type;
+ int8 opentype;
+ bool is_read;
+ bool is_deleted;
+ int send_date;
+ int expire_date;
+ int weight;
+ int items_count;
+};
+
+VECTOR_STRUCT_DECL(rodex_maillist, struct rodex_message);
+
+enum rodex_opentype {
+ RODEX_OPENTYPE_MAIL = 0,
+ RODEX_OPENTYPE_ACCOUNT = 1,
+ RODEX_OPENTYPE_RETURN = 2,
+};
+
+enum MAIL_TYPE {
+ MAIL_TYPE_TEXT = 0x0,
+ MAIL_TYPE_ZENY = 0x2,
+ MAIL_TYPE_ITEM = 0x4,
+ MAIL_TYPE_NPC = 0x8
+};
+
/**
* Guild Basic Information
* It is used to request changes via intif_guild_change_basicinfo in map-server and to