summaryrefslogtreecommitdiff
path: root/src/map/log.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/log.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/log.c')
-rw-r--r--src/map/log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/log.c b/src/map/log.c
index 5b0ff78de..b788ab3ba 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -24,7 +24,7 @@ int log_branch(struct map_session_data *sd)
printf("DB server Error - %s\n",mysql_error(&mmysql_handle));
} else {
#endif
- if((logfp=fopen(log_config.log_drop,"a+")) != NULL) {
+ if((logfp=fopen(log_config.log_branch,"a+")) != NULL) {
char timestring[255];
time_t curtime;
time(&curtime);
@@ -48,8 +48,7 @@ int log_drop(struct map_session_data *sd, int monster_id, int *log_drop)
#ifndef TXT_ONLY
if(log_config.sql_logs > 0)
{
- //TODO: Expand 8 slots into 10
- sprintf(tmp_sql, "INSERT DELAYED INTO `%s` (`drop_date`, `kill_char_id`, `monster_id`, `item1`, `item2`, `item3`, `item4`, `item5`, `item6`, `item7`, `item8`, `map`) VALUES (NOW(), '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s') ", log_config.log_drop_db, sd->status.char_id, monster_id, log_drop[0], log_drop[1], log_drop[2], log_drop[3], log_drop[4], log_drop[5], log_drop[6], log_drop[7], sd->mapname);
+ sprintf(tmp_sql, "INSERT DELAYED INTO `%s` (`drop_date`, `kill_char_id`, `monster_id`, `item1`, `item2`, `item3`, `item4`, `item5`, `item6`, `item7`, `item8`, `item9`, `itemCard`, `map`) VALUES (NOW(), '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s') ", log_config.log_drop_db, sd->status.char_id, monster_id, log_drop[0], log_drop[1], log_drop[2], log_drop[3], log_drop[4], log_drop[5], log_drop[6], log_drop[7], log_drop[8], log_drop[9], sd->mapname);
if(mysql_query(&mmysql_handle, tmp_sql))
printf("DB server Error - %s\n",mysql_error(&mmysql_handle));
} else {