summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 15:31:33 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 15:31:33 +0000
commiteb7c3471753d978ef6e0a1c9be77fcc67e63a825 (patch)
tree03849df2df421e9c0edd6c9ad6682934dd0e3b59
parentb61133ee839f83548f1b8c955fafddbf4cfecf27 (diff)
downloadhercules-eb7c3471753d978ef6e0a1c9be77fcc67e63a825.tar.gz
hercules-eb7c3471753d978ef6e0a1c9be77fcc67e63a825.tar.bz2
hercules-eb7c3471753d978ef6e0a1c9be77fcc67e63a825.tar.xz
hercules-eb7c3471753d978ef6e0a1c9be77fcc67e63a825.zip
Added "Set Zeny, Zeny +/- whatever;" script operation to be logged by log_zeny (from log_athena.conf), bugreport:2666
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15311 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1d215d6af..1eed1a889 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6211,6 +6211,7 @@ int pc_setparam(struct map_session_data *sd,int type,int val)
case SP_ZENY:
if( val < 0 )
return 0;// can't set negative zeny
+ log_zeny(sd, LOG_TYPE_NPC, sd, -(sd->status.zeny - cap_value(val, 0, MAX_ZENY)));
sd->status.zeny = cap_value(val, 0, MAX_ZENY);
break;
case SP_BASEEXP: