nasagnilac
New member
- Messages
- 121
- Points
- 0
- Github
- gmblank
I have this error after changing the files below.
Console Error
(08/01/2016 05:59:53) [ Error ] : npc/ep15/scripts_main.conf:12 - syntax error
(08/01/2016 05:59:53) [ Error ] : npc/update/custom_scripts.conf:14 - syntax error
npc/ep15/scripts_main.conf:12 - syntax error
"npc/ep15/MOTD.txt",
npc/update/custom_scripts.conf:14 - syntax error
"npc/update/Custom_Scripts/HourlyBonus.txt",
mmo.h
// map_cache.dat Files Path
#ifndef DBPATHS
#define DBPATHS "ep15/"
#endif
map.c
/**
* Reloads all the scripts.
*
* @param clear whether to clear the script list before reloading.
*/
void map_reloadnpc(bool clear) {
int i;
if (clear)
npc->clearsrcfile();
#ifdef RENEWAL
map->read_npclist("npc/re/scripts_main.conf", false);
#else
map->read_npclist("npc/"DBPATHS"scripts_main.conf", false);
map->read_npclist("npc/update/scripts_main.conf", false);
#endif
// Append extra scripts
for( i = 0; i < map->extra_scripts_count; i++ ) {
npc->addsrcfile(map->extra_scripts);
}
}
****************************************************************
// import should overwrite any previous configuration, so it should be called last
if (libconfig->lookup_string(&config, "import", &import) == CONFIG_TRUE) {
const char *base_npclist = NULL;
#ifdef RENEWAL
base_npclist = "npc/re/scripts_main.conf";
#else
base_npclist = "npc/"DBPATHS"scripts_main.conf";
base_npclist = "npc/update/scripts_main.conf";
#endif
if (strcmp(import, filename) == 0 || strcmp(import, base_npclist) == 0) {
ShowWarning("map_read_npclist: Loop detected! Skipping 'import'...\n");
} else {
if (!map->read_npclist(import, true))
retval = false;
}
}
libconfig->destroy(&config);
return retval;
}
I am customizing my herc files but I am not yet familiar with this new update of herc. Please help me.
Console Error
(08/01/2016 05:59:53) [ Error ] : npc/ep15/scripts_main.conf:12 - syntax error
(08/01/2016 05:59:53) [ Error ] : npc/update/custom_scripts.conf:14 - syntax error
npc/ep15/scripts_main.conf:12 - syntax error
"npc/ep15/MOTD.txt",
npc/update/custom_scripts.conf:14 - syntax error
"npc/update/Custom_Scripts/HourlyBonus.txt",
mmo.h
// map_cache.dat Files Path
#ifndef DBPATHS
#define DBPATHS "ep15/"
#endif
map.c
/**
* Reloads all the scripts.
*
* @param clear whether to clear the script list before reloading.
*/
void map_reloadnpc(bool clear) {
int i;
if (clear)
npc->clearsrcfile();
#ifdef RENEWAL
map->read_npclist("npc/re/scripts_main.conf", false);
#else
map->read_npclist("npc/"DBPATHS"scripts_main.conf", false);
map->read_npclist("npc/update/scripts_main.conf", false);
#endif
// Append extra scripts
for( i = 0; i < map->extra_scripts_count; i++ ) {
npc->addsrcfile(map->extra_scripts);
}
}
****************************************************************
// import should overwrite any previous configuration, so it should be called last
if (libconfig->lookup_string(&config, "import", &import) == CONFIG_TRUE) {
const char *base_npclist = NULL;
#ifdef RENEWAL
base_npclist = "npc/re/scripts_main.conf";
#else
base_npclist = "npc/"DBPATHS"scripts_main.conf";
base_npclist = "npc/update/scripts_main.conf";
#endif
if (strcmp(import, filename) == 0 || strcmp(import, base_npclist) == 0) {
ShowWarning("map_read_npclist: Loop detected! Skipping 'import'...\n");
} else {
if (!map->read_npclist(import, true))
retval = false;
}
}
libconfig->destroy(&config);
return retval;
}
I am customizing my herc files but I am not yet familiar with this new update of herc. Please help me.
Last edited by a moderator: