diff options
author | shennetsind <ind@henn.et> | 2013-12-03 11:36:10 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-03 11:36:10 -0200 |
commit | 85023b1aad64d2b3b5d5ff53e1704abe0e689aa9 (patch) | |
tree | 97d1ead260038711e8693f1ffa4cf4d09128f533 /src/map/pc.c | |
parent | ff5779033a7d45bbd306b2bf62759152a72cbe79 (diff) | |
download | hercules-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/pc.c')
-rw-r--r-- | src/map/pc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 64fbd77f3..85285e55c 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4305,10 +4305,15 @@ int pc_isUseitem(struct map_session_data *sd,int n) else if( itemdb_is_poison(nameid) && (sd->class_&MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS ) return 0; - if( (item->package || item->group) && pc_is90overweight(sd) ) { - //##TODO## find official response to this - clif->colormes(sd->fd,COLOR_RED,msg_txt(1477));// Item cannot be open when overweight by 90% - return 0; + if( item->package || item->group ) { + if( pc_is90overweight(sd) ) { + clif->msgtable(sd->fd,ITEM_CANT_OBTAIN_WEIGHT); + return 0; + } + if( !pc->inventoryblank(sd) ) { + clif->colormes(sd->fd,COLOR_RED,msg_txt(1477)); + return 0; + } } //Gender check |