Jump to content
  • 0
Sign in to follow this  
nasagnilac

scripts_main.conf:12 - syntax error

Question

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[i]);
    }
}
****************************************************************
    // 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.

Edited by GM Fenrir™

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.