diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-08-04 19:01:42 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-08-04 19:01:42 -0700 |
commit | 66850e890fe678a54e4b0ccad71b9175f91d1e7b (patch) | |
tree | b6101234bef737f9cf769f92663603cf8eef2175 /src/map/clif.c | |
parent | b37b6c92af2a3cd08031f6cde395ac97fb6f493f (diff) | |
download | tmwa-66850e890fe678a54e4b0ccad71b9175f91d1e7b.tar.gz tmwa-66850e890fe678a54e4b0ccad71b9175f91d1e7b.tar.bz2 tmwa-66850e890fe678a54e4b0ccad71b9175f91d1e7b.tar.xz tmwa-66850e890fe678a54e4b0ccad71b9175f91d1e7b.zip |
Give a warning when unable to drop an item.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 10 |
1 files changed, 9 insertions, 1 deletions
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); |