diff options
author | calciumkid <calciumkid@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-10 05:05:51 +0000 |
---|---|---|
committer | calciumkid <calciumkid@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-10 05:05:51 +0000 |
commit | 1edd5a4a11df1b529206c2e599e99effdd4d1f51 (patch) | |
tree | bb964ff5584b4b22e2c099cb5d434f2db75f2da7 /src | |
parent | 025f33dbc64c6075b4c4d081b968cf495ff695a6 (diff) | |
download | hercules-1edd5a4a11df1b529206c2e599e99effdd4d1f51.tar.gz hercules-1edd5a4a11df1b529206c2e599e99effdd4d1f51.tar.bz2 hercules-1edd5a4a11df1b529206c2e599e99effdd4d1f51.tar.xz hercules-1edd5a4a11df1b529206c2e599e99effdd4d1f51.zip |
Added client feedback to @cash and @points
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15056 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index e0fb1c309..9290f844a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8158,6 +8158,7 @@ ACMD_FUNC(reject) *-----------------------------------*/ ACMD_FUNC(cash) { + char output[128]; int value; nullpo_retr(-1, sd); @@ -8168,17 +8169,27 @@ ACMD_FUNC(cash) if( !strcmpi(command+1,"cash") ) { - if( value > 0 ) + if( value > 0 ) { pc_getcash(sd, value, 0); - else + sprintf(output, msg_txt(505), value, sd->cashPoints); + clif_disp_onlyself(sd, output, strlen(output)); + } else { pc_paycash(sd, -value, 0); + sprintf(output, msg_txt(410), value, sd->cashPoints); + clif_disp_onlyself(sd, output, strlen(output)); + } } else { // @points - if( value > 0 ) + if( value > 0 ) { pc_getcash(sd, 0, value); - else + sprintf(output, msg_txt(506), value, sd->kafraPoints); + clif_disp_onlyself(sd, output, strlen(output)); + } else { pc_paycash(sd, -value, -value); + sprintf(output, msg_txt(411), -value, sd->kafraPoints); + clif_disp_onlyself(sd, output, strlen(output)); + } } return 0; |