summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmistry <Equinox1991@gmail.com>2015-07-05 07:37:22 +0800
committerEmistry <Equinox1991@gmail.com>2015-07-05 07:37:22 +0800
commite26c8e0f545b2cec1177376574317acc70c7e5d0 (patch)
tree1d5ed63826068de29b0cd592fb02f39412c2f213 /src
parent3fbd2b3b3b8277ded2b8139139e62e32c3db3145 (diff)
downloadhercules-e26c8e0f545b2cec1177376574317acc70c7e5d0.tar.gz
hercules-e26c8e0f545b2cec1177376574317acc70c7e5d0.tar.bz2
hercules-e26c8e0f545b2cec1177376574317acc70c7e5d0.tar.xz
hercules-e26c8e0f545b2cec1177376574317acc70c7e5d0.zip
Updated cash atcommand.
Return a message that tell GM how many points has been sent and what is the latest total amount of points accumulated by users.
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 1e915de3d..2be990025 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7805,13 +7805,15 @@ ACMD(cash)
if( !battle_config.cashshop_show_points ){
sprintf(output, msg_fd(fd,505), ret, sd->cashPoints);
clif_disp_onlyself(sd, output, strlen(output));
+ clif->message(fd, output);
}
} else
clif->message(fd, msg_fd(fd,149)); // Unable to decrease the number/value.
} else {
if( (ret=pc->paycash(sd, -value, 0)) >= 0){
sprintf(output, msg_fd(fd,410), ret, sd->cashPoints);
- clif_disp_onlyself(sd, output, strlen(output));
+ clif_disp_onlyself(sd, output, strlen(output));
+ clif->message(fd, output);
} else
clif->message(fd, msg_fd(fd,41)); // Unable to decrease the number/value.
}
@@ -7822,13 +7824,15 @@ ACMD(cash)
if( !battle_config.cashshop_show_points ){
sprintf(output, msg_fd(fd,506), ret, sd->kafraPoints);
clif_disp_onlyself(sd, output, strlen(output));
+ clif->message(fd, output);
}
} else
clif->message(fd, msg_fd(fd,149)); // Unable to decrease the number/value.
} else {
if( (ret=pc->paycash(sd, -value, -value)) >= 0){
sprintf(output, msg_fd(fd,411), ret, sd->kafraPoints);
- clif_disp_onlyself(sd, output, strlen(output));
+ clif_disp_onlyself(sd, output, strlen(output));
+ clif->message(fd, output);
} else
clif->message(fd, msg_fd(fd,41)); // Unable to decrease the number/value.
}