summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
commit0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3 (patch)
tree28a722e533422e2d05b662f533d311a88b4edb6a /src/map/map.c
parent5b1d3c5ebcbeab9730f8f4603c769c090ca4c8d1 (diff)
downloadhercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.gz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.bz2
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.xz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.zip
Split use_sql_db into the three available: item_db, mob_db, mob_skill_db.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 2770a8af7..3a2ca6c57 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3548,9 +3548,17 @@ int inter_config_read(char *cfgName) {
strcpy(map_server_db, w2);
else if(strcmpi(w1,"default_codepage")==0)
strcpy(default_codepage, w2);
- else if(strcmpi(w1,"use_sql_db")==0) {
- iMap->db_use_sqldbs = config_switch(w2);
- ShowStatus ("Using SQL dbs: %s\n",w2);
+ else if(strcmpi(w1,"use_sql_item_db")==0) {
+ iMap->db_use_sql_item_db = config_switch(w2);
+ ShowStatus ("Using item database as SQL: '%s'\n", w2);
+ }
+ else if(strcmpi(w1,"use_sql_mob_db")==0) {
+ iMap->db_use_sql_mob_db = config_switch(w2);
+ ShowStatus ("Using monster database as SQL: '%s'\n", w2);
+ }
+ else if(strcmpi(w1,"use_sql_mob_skill_db")==0) {
+ iMap->db_use_sql_mob_skill_db = config_switch(w2);
+ ShowStatus ("Using monster skill database as SQL: '%s'\n", w2);
}
/* sql log db */
else if(strcmpi(w1,"log_db_ip")==0)
@@ -5319,7 +5327,9 @@ int do_init(int argc, char *argv[])
iMap->night_flag = 0; // 0=day, 1=night [Yor]
iMap->enable_spy = 0; //To enable/disable @spy commands, which consume too much cpu time when sending packets. [Skotlex]
- iMap->db_use_sqldbs = 0;
+ iMap->db_use_sql_item_db = 0;
+ iMap->db_use_sql_mob_db = 0;
+ iMap->db_use_sql_mob_skill_db = 0;
sprintf(iMap->item_db_db, "item_db");
sprintf(iMap->item_db2_db, "item_db2");