From 336b818cd4acc771563d4ab0d98566de25794143 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 29 Mar 2014 17:21:26 -0300 Subject: 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 --- src/map/atcommand.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') 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); -- cgit v1.2.3-60-g2f50