summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 17:42:33 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 17:42:33 +0800
commit23a88d62725074068be31b54e4f406051dbc93a4 (patch)
tree29a43f56841619887542e13ed86e999d109de068 /src/map/map.c
parentda6a2bb9f242101dcb1e2addd130ac879a63bc67 (diff)
downloadhercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.gz
hercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.bz2
hercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.xz
hercules-23a88d62725074068be31b54e4f406051dbc93a4.zip
Split mob sql database into mob_db and mob_db_re.
-http://hercules.ws/board/topic/8084-separate-the-mob-db-and-mob-db-re/
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c
index e5574eaf7..25d7ce692 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3722,15 +3722,19 @@ int inter_config_read(char *cfgName) {
if(strcmpi(w1,"item_db_db")==0)
strcpy(map->item_db_db,w2);
else if(strcmpi(w1,"mob_db_db")==0)
- strcpy(map->mob_db_db,w2);
+ strcpy(map->mob_db_db, w2);
+ else if (strcmpi(w1, "mob_db_re_db") == 0)
+ strcpy(map->mob_db_re_db, w2);
else if(strcmpi(w1,"item_db2_db")==0)
strcpy(map->item_db2_db,w2);
else if(strcmpi(w1,"item_db_re_db")==0)
strcpy(map->item_db_re_db,w2);
else if(strcmpi(w1,"mob_db2_db")==0)
- strcpy(map->mob_db2_db,w2);
- else if(strcmpi(w1,"mob_skill_db_db")==0)
- strcpy(map->mob_skill_db_db,w2);
+ strcpy(map->mob_db2_db, w2);
+ else if(strcmpi(w1, "mob_skill_db_db") == 0)
+ strcpy(map->mob_skill_db_db, w2);
+ else if(strcmpi(w1, "mob_skill_db_re_db") == 0)
+ strcpy(map->mob_skill_db_re_db, w2);
else if(strcmpi(w1,"mob_skill_db2_db")==0)
strcpy(map->mob_skill_db2_db,w2);
else if(strcmpi(w1,"interreg_db")==0)
@@ -6005,8 +6009,10 @@ void map_defaults(void) {
sprintf(map->item_db2_db, "item_db2");
sprintf(map->item_db_re_db, "item_db_re");
sprintf(map->mob_db_db, "mob_db");
+ sprintf(map->mob_db_re_db, "mob_db_re");
sprintf(map->mob_db2_db, "mob_db2");
sprintf(map->mob_skill_db_db, "mob_skill_db");
+ sprintf(map->mob_skill_db_re_db, "mob_skill_db_re");
sprintf(map->mob_skill_db2_db, "mob_skill_db2");
sprintf(map->interreg_db, "interreg");