From 66850e890fe678a54e4b0ccad71b9175f91d1e7b Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 4 Aug 2012 19:01:42 -0700 Subject: Give a warning when unable to drop an item. --- src/map/clif.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/map/clif.c b/src/map/clif.c index 2cf8d33..30348fe 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7610,11 +7610,19 @@ void clif_parse_DropItem (int fd, struct map_session_data *sd) clif_clearchar_area (&sd->bl, 1); return; } - if (sd->npc_id != 0 || sd->opt1 > 0 || map[sd->bl.m].flag.no_player_drops || + if (map[sd->bl.m].flag.no_player_drops) + { + clif_displaymessage(sd->fd, "Can't drop items here."); + return; + } + if (sd->npc_id != 0 || sd->opt1 > 0 || (sd->sc_data && (sd->sc_data[SC_AUTOCOUNTER].timer != -1 || //オートカウンター sd->sc_data[SC_BLADESTOP].timer != -1 || //白刃取り sd->sc_data[SC_BERSERK].timer != -1))) //バーサーク + { + clif_displaymessage(sd->fd, "Can't drop items right now."); return; + } item_index = RFIFOW (fd, 2) - 2; item_amount = RFIFOW (fd, 4); -- cgit v1.2.3-60-g2f50