diff options
-rw-r--r-- | conf/inter-server.conf | 12 | ||||
-rw-r--r-- | src/map/map.c | 24 |
2 files changed, 30 insertions, 6 deletions
diff --git a/conf/inter-server.conf b/conf/inter-server.conf index 2bffeb1af..85acdc4df 100644 --- a/conf/inter-server.conf +++ b/conf/inter-server.conf @@ -139,13 +139,13 @@ npc_market_data_db: npc_market_data // Hercules, while still loading the SQL tables we provide to be used // exclusively by your Control Panel or Website. -// Use SQL for item_db? (not recommended) -use_sql_item_db: no +// Use SQL for item_db? (deprecated) +//use_sql_item_db: no -// Use SQL for mob_db? (not recommended) -use_sql_mob_db: no +// Use SQL for mob_db? (deprecated) +//use_sql_mob_db: no -// Use SQL for mob_skill_db? (not recommended) -use_sql_mob_skill_db: no +// Use SQL for mob_skill_db? (deprecated) +//use_sql_mob_skill_db: no import: conf/import/inter_conf.txt diff --git a/src/map/map.c b/src/map/map.c index dc935079a..2ad13bea3 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3748,14 +3748,38 @@ int inter_config_read(char *cfgName) { else if(strcmpi(w1,"use_sql_item_db")==0) { map->db_use_sql_item_db = config_switch(w2); ShowStatus ("Using item database as SQL: '%s'\n", w2); + if (map->db_use_sql_item_db) { + // Deprecated 2015-08-09 [Haru] + ShowWarning("Support for the SQL item database is deprecated and it will removed in future versions. " + "Please upgrade to the non-sql version as soon as possible. " + "Bug reports or pull requests concerning the SQL item database are no longer accepted.\n"); + ShowInfo("Resuming in 10 seconds...\n"); + sleep(10); + } } else if(strcmpi(w1,"use_sql_mob_db")==0) { map->db_use_sql_mob_db = config_switch(w2); ShowStatus ("Using monster database as SQL: '%s'\n", w2); + if (map->db_use_sql_mob_db) { + // Deprecated 2015-08-09 [Haru] + ShowWarning("Support for the SQL monster database is deprecated and it will removed in future versions. " + "Please upgrade to the non-sql version as soon as possible. " + "Bug reports or pull requests concerning the SQL monster database are no longer accepted.\n"); + ShowInfo("Resuming in 10 seconds...\n"); + sleep(10); + } } else if(strcmpi(w1,"use_sql_mob_skill_db")==0) { map->db_use_sql_mob_skill_db = config_switch(w2); ShowStatus ("Using monster skill database as SQL: '%s'\n", w2); + if (map->db_use_sql_mob_db) { + // Deprecated 2015-08-09 [Haru] + ShowWarning("Support for the SQL monster skill database is deprecated and it will removed in future versions. " + "Please upgrade to the non-sql version as soon as possible. " + "Bug reports or pull requests concerning the SQL monster skill database are no longer accepted.\n"); + ShowInfo("Resuming in 10 seconds...\n"); + sleep(10); + } } else if(strcmpi(w1,"autotrade_merchants_db")==0) safestrncpy(map->autotrade_merchants_db, w2, sizeof(map->autotrade_merchants_db)); |