summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-29 17:21:26 -0300
committershennetsind <ind@henn.et>2014-03-29 17:21:26 -0300
commit336b818cd4acc771563d4ab0d98566de25794143 (patch)
treec50fa4c8aa0e9c2b9e2b35a6bbf09b0aabb93f93
parenta43cd2b1c29461ce3955d6cbcf6edcb8e19bebfb (diff)
downloadhercules-336b818cd4acc771563d4ab0d98566de25794143.tar.gz
hercules-336b818cd4acc771563d4ab0d98566de25794143.tar.bz2
hercules-336b818cd4acc771563d4ab0d98566de25794143.tar.xz
hercules-336b818cd4acc771563d4ab0d98566de25794143.zip
Fixed Bug 8121
Would reject buyingstores on @at, fixed (unlike vendings, buying stores are not able to survive restarts at this time, should be added soon) http://hercules.ws/board/tracker/issue-8121-buyingstore-use-commend-autotrade-error/ Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/atcommand.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 4c35999d6..07079c1f9 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5484,7 +5484,14 @@ ACMD(autotrade) {
int timeout = atoi(message);
status->change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);
}
-
+
+ /* currently standalones are not supporting buyingstores, so we rely on the previous method */
+ if( sd->state.buyingstore ) {
+ clif->authfail_fd(fd, 15);
+ return true;
+ }
+
+
clif->chsys_quit(sd);
clif->authfail_fd(sd->fd, 15);