summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-07-08 15:08:09 +0200
committerHaru <haru@dotalux.com>2015-08-09 21:14:02 +0200
commit84e02ac28fbb15c58d0a0f8a916b49663198b05b (patch)
tree19cf6e022ca82f02ce59b3c81e2b234f5bc9fc87
parent01a596069aadd4dd50b67ec35db4258c0f899464 (diff)
downloadhercules-84e02ac28fbb15c58d0a0f8a916b49663198b05b.tar.gz
hercules-84e02ac28fbb15c58d0a0f8a916b49663198b05b.tar.bz2
hercules-84e02ac28fbb15c58d0a0f8a916b49663198b05b.tar.xz
hercules-84e02ac28fbb15c58d0a0f8a916b49663198b05b.zip
Deprecated SQL item, monster and monster skill databases
- The files are (and will) still be included for use in Control Panels or websites, but their use as the data source for the map server is no longer supported. Please upgrade to their text counterparts instead. Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--conf/inter-server.conf12
-rw-r--r--src/map/map.c24
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));