From 0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3 Mon Sep 17 00:00:00 2001 From: Matheus Macabu Date: Thu, 4 Jul 2013 17:36:16 -0300 Subject: Split use_sql_db into the three available: item_db, mob_db, mob_skill_db. Signed-off-by: Matheus Macabu --- src/plugins/db2sql.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index 8db4a006f..5cb8d52a2 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -49,7 +49,7 @@ int db2sql(char** str, const char* source, int line, int scriptopt) { struct item_data *it = NULL; unsigned char offset = 0; #ifdef RENEWAL - if( iMap->db_use_sqldbs ) offset = 1; + if( iMap->db_use_sql_item_db ) offset = 1; #endif if( (it = itemdb->exists(parse_dbrow(str,source,line,scriptopt))) ) { /* renewal has the 'matk' and 'equip_level' is now 'equip_level_min', and there is a new 'equip_level_max' field */ @@ -69,7 +69,7 @@ int db2sql(char** str, const char* source, int line, int scriptopt) { SqlStmt_ShowDebug(stmt); else { #ifdef RENEWAL - if( iMap->db_use_sqldbs ) offset += 1; + if( iMap->db_use_sql_item_db ) offset += 1; #endif if( it->script ) trimbraces(str[19+offset]); if ( SQL_SUCCESS != SQL->StmtBindParam(stmt, 2, SQLDT_STRING, it->script?str[19+offset]:"", it->script?strlen(str[19+offset]):0) ) @@ -98,8 +98,8 @@ int db2sql(char** str, const char* source, int line, int scriptopt) { CPCMD(db2sql) { - if( iMap->db_use_sqldbs ) { - ShowInfo("db2sql: this should not be used with 'db_use_sqldbs' enabled, skipping...\n"); + if( iMap->db_use_sql_item_db ) { + ShowInfo("db2sql: this should not be used with 'db_use_sql_item_db' enabled, skipping...\n"); return; } -- cgit v1.2.3-70-g09d2