summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/messages.conf1
-rw-r--r--src/map/pc.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/conf/messages.conf b/conf/messages.conf
index f9dc5edd4..8b3daa684 100644
--- a/conf/messages.conf
+++ b/conf/messages.conf
@@ -1520,6 +1520,7 @@
//src/map/pc.c::pc_isUseitem
1474: You cannot use this item while sitting
+1475: You cannot use this item while storage is open
1476: You are already mounting something else
diff --git a/src/map/pc.c b/src/map/pc.c
index ab5749eb1..43bdb5f82 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4216,6 +4216,11 @@ int pc_isUseitem(struct map_session_data *sd,int n)
return 0; // You cannot use this item while sitting.
}
+ if (sd->state.storage_flag && item->type != IT_CASH) {
+ clif->colormes(sd->fd, COLOR_RED, msg_txt(1475));
+ return 0; // You cannot use this item while storage is open.
+ }
+
switch( nameid ) { // TODO: Is there no better way to handle this, other than hardcoding item IDs?
case ITEMID_ANODYNE:
if( map_flag_gvg2(sd->bl.m) )