diff options
author | Haru <haru@dotalux.com> | 2015-07-08 15:08:09 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-09 21:14:02 +0200 |
commit | 84e02ac28fbb15c58d0a0f8a916b49663198b05b (patch) | |
tree | 19cf6e022ca82f02ce59b3c81e2b234f5bc9fc87 /src | |
parent | 01a596069aadd4dd50b67ec35db4258c0f899464 (diff) | |
download | hercules-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.c | 24 |
1 files changed, 24 insertions, 0 deletions
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)); |