diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-01-07 03:30:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-01-14 18:06:02 +0300 |
commit | cd9fca48ad3fcb86fe4b4f159c68595859077998 (patch) | |
tree | b7890b0a4f9511b44d58ee82aba861c254da5e8f /src | |
parent | a3073644e5c15264a0e1ca6e9b79558215851573 (diff) | |
download | hercules-cd9fca48ad3fcb86fe4b4f159c68595859077998.tar.gz hercules-cd9fca48ad3fcb86fe4b4f159c68595859077998.tar.bz2 hercules-cd9fca48ad3fcb86fe4b4f159c68595859077998.tar.xz hercules-cd9fca48ad3fcb86fe4b4f159c68595859077998.zip |
Send wrong bank status by bank check packet status in clif_parse_BankCheck.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index b5e71ab95..378e5c268 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -18462,19 +18462,19 @@ void clif_parse_BankWithdraw(int fd, struct map_session_data *sd) void clif_parse_BankCheck(int fd, struct map_session_data* sd) __attribute__((nonnull (2))); void clif_parse_BankCheck(int fd, struct map_session_data* sd) { -#if PACKETVER >= 20130313 +#if PACKETVER >= 20130320 struct packet_banking_check p; + p.PacketType = banking_checkType; if (!battle_config.feature_banking) { - clif->messagecolor_self(fd, COLOR_RED, msg_fd(fd,1483)); - return; + p.Money = 0; + p.Reason = (short)1; + } else { + p.Money = (int)sd->status.bank_vault; + p.Reason = (short)0; } - p.PacketType = banking_checkType; - p.Money = (int)sd->status.bank_vault; - p.Reason = (short)0; - - clif->send(&p,sizeof(p), &sd->bl, SELF); + clif->send(&p, sizeof(p), &sd->bl, SELF); #endif } |