summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-17 17:19:26 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-17 17:19:26 +0000
commit4f192318c6ce14dc231dba81426161cb7d450738 (patch)
tree432b866b6d51dadf8f48581ab162c8883a77027d /src/map/trade.c
parentff8a0342bc95eb2064ed7c620a0c410a92fde310 (diff)
downloadhercules-4f192318c6ce14dc231dba81426161cb7d450738.tar.gz
hercules-4f192318c6ce14dc231dba81426161cb7d450738.tar.bz2
hercules-4f192318c6ce14dc231dba81426161cb7d450738.tar.xz
hercules-4f192318c6ce14dc231dba81426161cb7d450738.zip
added +2 drops slots into MOBS DBs
brushed up srcs for 10 drops fixed some mobs... fixed TXT logs fixed 1 guardian spawn changed 2 SQL files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1126 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 91b21a38b..6ab75651a 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -236,10 +236,8 @@ void trade_tradecommit(struct map_session_data *sd) {
if (sd->status.inventory[n].amount < sd->deal_item_amount[trade_i])
sd->deal_item_amount[trade_i] = sd->status.inventory[n].amount;
- #ifndef TXT_ONLY
if(log_config.trade > 0)
log_trade(sd,target_sd,n,sd->deal_item_amount[trade_i]);
- #endif //USE_SQL
flag = pc_additem(target_sd, &sd->status.inventory[n], sd->deal_item_amount[trade_i]);
if (flag == 0)
@@ -255,10 +253,8 @@ void trade_tradecommit(struct map_session_data *sd) {
if (target_sd->status.inventory[n].amount < target_sd->deal_item_amount[trade_i])
target_sd->deal_item_amount[trade_i] = target_sd->status.inventory[n].amount;
- #ifndef TXT_ONLY
if(log_config.trade > 0)
log_trade(target_sd,sd,n,target_sd->deal_item_amount[trade_i]);
- #endif //USE_SQL
flag = pc_additem(sd, &target_sd->status.inventory[n], target_sd->deal_item_amount[trade_i]);
if (flag == 0)
@@ -270,18 +266,14 @@ void trade_tradecommit(struct map_session_data *sd) {
}
}
if (sd->deal_zeny) {
- #ifndef TXT_ONLY
if (log_config.trade > 0 && log_config.zeny > 0)
log_zeny(sd, target_sd, sd->deal_zeny);
- #endif //USE_SQL
sd->status.zeny -= sd->deal_zeny;
target_sd->status.zeny += sd->deal_zeny;
}
if (target_sd->deal_zeny) {
- #ifndef TXT_ONLY
if (log_config.trade > 0 && log_config.zeny > 0)
log_zeny(target_sd, sd, sd->deal_zeny);
- #endif //USE_SQL
target_sd->status.zeny -= target_sd->deal_zeny;
sd->status.zeny += target_sd->deal_zeny;