diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-07 17:16:53 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-07 17:16:53 +0000 |
commit | 7496915ff909733618b011ca06ee27ae7a098f2b (patch) | |
tree | 4291f623b63f1d03fbb14d4cb7dc67dab70798af /src/map/clif.c | |
parent | a78edf2b3c8b22ff202ee43261f89c42e2313657 (diff) | |
download | hercules-7496915ff909733618b011ca06ee27ae7a098f2b.tar.gz hercules-7496915ff909733618b011ca06ee27ae7a098f2b.tar.bz2 hercules-7496915ff909733618b011ca06ee27ae7a098f2b.tar.xz hercules-7496915ff909733618b011ca06ee27ae7a098f2b.zip |
- Some updates on the mail system packets [Zephyrus]
- Corrected the mail database structure on main.sql
- TODO: find what happens when you cannot receive an emailed item due to weight problems.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11692 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3bdaa3396..068ace525 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11301,14 +11301,14 @@ void clif_parse_AutoRevive(int fd, struct map_session_data *sd) * Reply to an Attachment operation * 0 : Successfully attached item to mail * 1 : Fail to set the attachment - * 2 : Weight problems (when getting the attachment) *------------------------------------------*/ -static void clif_Mail_attachment(int fd, uint8 flag) +static void clif_Mail_attachment(int fd, int index, uint8 flag) { - WFIFOHEAD(fd,packet_len(0x245)); - WFIFOW(fd,0) = 0x245; - WFIFOB(fd,2) = flag; - WFIFOSET(fd,packet_len(0x245)); + WFIFOHEAD(fd,packet_len(0x255)); + WFIFOW(fd,0) = 0x255; + WFIFOW(fd,2) = index; + WFIFOB(fd,4) = flag; + WFIFOSET(fd,packet_len(0x255)); } /*------------------------------------------ @@ -11519,7 +11519,7 @@ void clif_parse_Mail_getattach(int fd, struct map_session_data *sd) weight = data->weight * sd->mail.inbox.msg[i].item.amount; if (weight > sd->max_weight - sd->weight) { - clif_Mail_attachment(fd, 2); + // clif_Mail_attachment(fd, 2); return; } } @@ -11582,7 +11582,7 @@ void clif_parse_Mail_setattach(int fd, struct map_session_data *sd) flag = mail_setitem(sd, idx, amount); if (idx > 0) - clif_Mail_attachment(fd,flag); + clif_Mail_attachment(fd,idx,flag); } /*------------------------------------------ |