summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-22 01:13:28 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-22 01:13:28 +0000
commit078fe1c3ff072c85ca14a3465b0fc9d8a523711f (patch)
treea5673dc034fe5beafa040810683a09d509006032 /src/map/atcommand.c
parent88a2f6741ec3aee559495a219d499ecc3425a3f1 (diff)
downloadhercules-078fe1c3ff072c85ca14a3465b0fc9d8a523711f.tar.gz
hercules-078fe1c3ff072c85ca14a3465b0fc9d8a523711f.tar.bz2
hercules-078fe1c3ff072c85ca14a3465b0fc9d8a523711f.tar.xz
hercules-078fe1c3ff072c85ca14a3465b0fc9d8a523711f.zip
-Apply EvilPuncker path from tid:71756
-Fix and upd logzeny enumeration type bugreport:6897 -Upd @zeny to send a message when succed bugreport:6886 -Upd ChaosPanic to affect all bugreport:6893 -Upd bloodylust cooldown and disable endure effect bugreport:6547 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16940 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 891fb1a79..abdd8267e 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2526,7 +2526,7 @@ ACMD_FUNC(skillpoint)
*------------------------------------------*/
ACMD_FUNC(zeny)
{
- int zeny;
+ int zeny=0, ret=-1;
nullpo_retr(-1, sd);
if (!message || !*message || (zeny = atoi(message)) == 0) {
@@ -2535,12 +2535,13 @@ ACMD_FUNC(zeny)
}
if(zeny > 0){
- if(pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL) == 1)
+ if((ret=pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL)) == 1)
clif_displaymessage(fd, msg_txt(149)); // Unable to increase the number/value.
}
- else if(pc_payzeny(sd,-zeny,LOG_TYPE_COMMAND,NULL) == 1){
+ else if((ret=pc_payzeny(sd,-zeny,LOG_TYPE_COMMAND,NULL)) == 1){
clif_displaymessage(fd, msg_txt(41)); // Unable to decrease the number/value.
}
+ if(!ret) clif_displaymessage(fd, msg_txt(176)); //ret=0 mean cmd success
return 0;
}