summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-12-03 11:36:10 -0200
committershennetsind <ind@henn.et>2013-12-03 11:36:10 -0200
commit85023b1aad64d2b3b5d5ff53e1704abe0e689aa9 (patch)
tree97d1ead260038711e8693f1ffa4cf4d09128f533 /src/map/clif.c
parentff5779033a7d45bbd306b2bf62759152a72cbe79 (diff)
downloadhercules-85023b1aad64d2b3b5d5ff53e1704abe0e689aa9.tar.gz
hercules-85023b1aad64d2b3b5d5ff53e1704abe0e689aa9.tar.bz2
hercules-85023b1aad64d2b3b5d5ff53e1704abe0e689aa9.tar.xz
hercules-85023b1aad64d2b3b5d5ff53e1704abe0e689aa9.zip
Fixed Bug 7542
replaced pc_isuseitem 90overweight error message by its official version, added invent-full check for when trying to open packages/boxes, and modified mail getAttachment to fail when over 90% weight. Special Thanks to kyeme. http://hercules.ws/board/tracker/issue-7542-bug-when-weight-90/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 2257df0aa..312393629 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -14843,6 +14843,11 @@ void clif_parse_Mail_getattach(int fd, struct map_session_data *sd)
if ((data = itemdb->exists(sd->mail.inbox.msg[i].item.nameid)) == NULL)
return;
+ if( pc_is90overweight(sd) ) {
+ clif->mail_getattachment(fd, 2);
+ return;
+ }
+
switch( pc->checkadditem(sd, data->nameid, sd->mail.inbox.msg[i].item.amount) ) {
case ADDITEM_NEW:
fail = ( pc->inventoryblank(sd) == 0 );