Skip to content

Commit

Permalink
Fixed Bug 8121
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shennetsind committed Mar 29, 2014
1 parent a43cd2b commit 336b818
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/map/atcommand.c
Expand Up @@ -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);
Expand Down

0 comments on commit 336b818

Please sign in to comment.