diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-11 20:38:42 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-11 20:38:42 +0000 |
commit | 7fd9079444a24e69407e9bfb74cd149f1563d0bd (patch) | |
tree | 3126d9633d3af66238ebecaf3eecbdd1197c1bb2 /src/map | |
parent | 75b03a564ace1deb3956da35bb0bffd52b3c181b (diff) | |
download | hercules-7fd9079444a24e69407e9bfb74cd149f1563d0bd.tar.gz hercules-7fd9079444a24e69407e9bfb74cd149f1563d0bd.tar.bz2 hercules-7fd9079444a24e69407e9bfb74cd149f1563d0bd.tar.xz hercules-7fd9079444a24e69407e9bfb74cd149f1563d0bd.zip |
implemented vending log
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/vending.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index 347c97bfd..2cfe0413a 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -112,6 +112,13 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha clif_tradecancelled(vsd); 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++) { @@ -122,6 +129,13 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha vsd->vending[vend_list[i]].amount -= amount; pc_cart_delitem(vsd, index, amount, 0); clif_vendingreport(vsd, index, amount); + + //log added by Lupus + #ifndef TXT_ONLY + if(log_config.vend > 0) + log_vend(sd,vsd, index, amount, 0); // for Item log. + #endif + } } |