summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-23 21:00:48 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-23 21:00:48 +0000
commit97215867bc7799ffe1166313aa58b57ae2b1a776 (patch)
tree797b7741f30b6ee26b0b125e39eb6ead428cc8ea /src/map/atcommand.c
parent8fdc11ce3e6db27667df3f4e4676fc28ed61c97d (diff)
downloadhercules-97215867bc7799ffe1166313aa58b57ae2b1a776.tar.gz
hercules-97215867bc7799ffe1166313aa58b57ae2b1a776.tar.bz2
hercules-97215867bc7799ffe1166313aa58b57ae2b1a776.tar.xz
hercules-97215867bc7799ffe1166313aa58b57ae2b1a776.zip
* Updates to various custom stuff that buying stores might/are expected to support (follow up to r14713).
- Buying store no longer works on novending maps/cells (bugreport:4778). - MANNER_NOROOM mute flag now affects buying stores as well (like vending). - Enabled @autotrade for buying stores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14724 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 6abee5223..ab55e952c 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5945,8 +5945,8 @@ ACMD_FUNC(autotrade)
return -1;
}
- if( !sd->vender_id ) { //check if player is vending
- clif_displaymessage(fd, msg_txt(549)); // You should be vending to use @Autotrade.
+ if( !sd->vender_id && !sd->state.buyingstore ) { //check if player is vending or buying
+ clif_displaymessage(fd, msg_txt(549)); // "You should have a shop open to use @autotrade."
return -1;
}