summaryrefslogtreecommitdiff
path: root/src/map/rodex.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-12 19:33:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-21 04:21:52 +0300
commit1962fe593393d260c5f170c5fe6932e130e495bf (patch)
tree476783454adee1cac9b6c3ad03f2df487e4ee401 /src/map/rodex.c
parent6791b26d7865c38129abd80f8e8a6a62872238f4 (diff)
downloadhercules-1962fe593393d260c5f170c5fe6932e130e495bf.tar.gz
hercules-1962fe593393d260c5f170c5fe6932e130e495bf.tar.bz2
hercules-1962fe593393d260c5f170c5fe6932e130e495bf.tar.xz
hercules-1962fe593393d260c5f170c5fe6932e130e495bf.zip
Add rodex 2017 packets.
Diffstat (limited to 'src/map/rodex.c')
-rw-r--r--src/map/rodex.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/map/rodex.c b/src/map/rodex.c
index 63d7242db..dcecb6b8f 100644
--- a/src/map/rodex.c
+++ b/src/map/rodex.c
@@ -547,13 +547,18 @@ void rodex_clean(struct map_session_data *sd, int8 flag)
/// User request to open rodex, load mails from char-server
/// @param sd : Who's requesting
/// @param open_type : Box Type (see RODEX_OPENTYPE)
-void rodex_open(struct map_session_data *sd, int8 open_type)
+void rodex_open(struct map_session_data *sd, int8 open_type, int64 first_mail_id)
{
+#if PACKETVER >= 20170419
+ const int type = 1;
+#else
+ const int type = 0;
+#endif
nullpo_retv(sd);
if (open_type == RODEX_OPENTYPE_ACCOUNT && battle_config.feature_rodex_use_accountmail == false)
open_type = RODEX_OPENTYPE_MAIL;
- intif->rodex_requestinbox(sd->status.char_id, sd->status.account_id, 0, open_type, 0);
+ intif->rodex_requestinbox(sd->status.char_id, sd->status.account_id, type, open_type, first_mail_id);
}
/// User request to read next page of mails
@@ -568,7 +573,7 @@ void rodex_next_page(struct map_session_data *sd, int8 open_type, int64 last_mai
if (open_type == RODEX_OPENTYPE_ACCOUNT && battle_config.feature_rodex_use_accountmail == false) {
// Should not happen
open_type = RODEX_OPENTYPE_MAIL;
- rodex->open(sd, open_type);
+ rodex->open(sd, open_type, 0);
return;
}