diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-11 21:01:36 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-11 21:01:36 +0000 |
commit | 2f0d91cf8f2fb0871376e125baad760bc127b586 (patch) | |
tree | a9d28b168a795781c596d82b7dc37166742c879b /src/map/vending.c | |
parent | 7fd9079444a24e69407e9bfb74cd149f1563d0bd (diff) | |
download | hercules-2f0d91cf8f2fb0871376e125baad760bc127b586.tar.gz hercules-2f0d91cf8f2fb0871376e125baad760bc127b586.tar.bz2 hercules-2f0d91cf8f2fb0871376e125baad760bc127b586.tar.xz hercules-2f0d91cf8f2fb0871376e125baad760bc127b586.zip |
implemented vending log
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@955 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index 2cfe0413a..85e9b8aa9 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -113,12 +113,6 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha return; } - //log added by Lupus - #ifndef TXT_ONLY - if(log_config.vend > 0) - log_vend(sd,vsd, 0,1, z); //n == 0, amount == 1 for Zeny log. - #endif - pc_payzeny(sd, z); pc_getzeny(vsd, z); for(i = 0; 8 + 4 * i < len; i++) { @@ -132,8 +126,11 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha //log added by Lupus #ifndef TXT_ONLY - if(log_config.vend > 0) - log_vend(sd,vsd, index, amount, 0); // for Item log. + if(log_config.vend > 0) { + log_vend(sd,vsd, index, amount, z); // for Item + Zeny. log. + //we log ZENY only with the 1st item. Then zero it for the rest items 8). + z = 0; + } #endif } |