summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-12 00:31:40 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-14 01:14:56 +0300
commit5b502a267b6546ade4adb116d11354f0bf929cbf (patch)
treecbfe974ab458c6accf7c2db35b2cb1aceb8d7b28 /src/map/intif.c
parentab81d4012eac5c2c00c485971fc9b89bf69761be (diff)
downloadhercules-5b502a267b6546ade4adb116d11354f0bf929cbf.tar.gz
hercules-5b502a267b6546ade4adb116d11354f0bf929cbf.tar.bz2
hercules-5b502a267b6546ade4adb116d11354f0bf929cbf.tar.xz
hercules-5b502a267b6546ade4adb116d11354f0bf929cbf.zip
Add account id and char id into inter server rodex update packet
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 86bf07bce..e565c71e6 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -2754,16 +2754,21 @@ static void intif_parse_RodexNotifications(int fd)
/// 2 - user got Items
/// 3 - delete
/// 4 - sender Read (returned mail)
-static int intif_rodex_updatemail(int64 mail_id, int8 flag)
+static int intif_rodex_updatemail(struct map_session_data *sd, int64 mail_id, uint8 opentype, int8 flag)
{
+ nullpo_ret(sd);
+
if (intif->CheckForCharServer())
return 0;
- WFIFOHEAD(inter_fd, 11);
+ WFIFOHEAD(inter_fd, 20);
WFIFOW(inter_fd, 0) = 0x3097;
- WFIFOQ(inter_fd, 2) = mail_id;
- WFIFOB(inter_fd, 10) = flag;
- WFIFOSET(inter_fd, 11);
+ WFIFOL(inter_fd, 2) = sd->status.account_id;
+ WFIFOL(inter_fd, 6) = sd->status.char_id;
+ WFIFOQ(inter_fd, 10) = mail_id;
+ WFIFOB(inter_fd, 18) = opentype;
+ WFIFOB(inter_fd, 19) = flag;
+ WFIFOSET(inter_fd, 20);
return 0;
}