Jump to content
  • 0
Sign in to follow this  
Chuu

Remove Scripts from loading list

Question

Hello herc community,

I'd like to know how I can efficiently remove NPCs from the loading list.

 

Reason:

For development reasons, I only need one path and a few NPCs to be loaded - so others are superfluous/not needed and take more time to (re-)load.

I discovered the scripts_removed.conf in the /npc folder. Following configuration has been tested:

//=========================================================================
//= Hercules global npc removed list
//=========================================================================
// All NPCs that you wish to remove from your loading list should be put in
// this file
//=========================================================================

// If instead of a path to an NPC is put "all" no file will be loaded
npc_removed_list: (
	//"all",
	//"path/to/npc",
	"npc/airports",
	"npc/battleground",
	"npc/cities",
	"npc/custom",
	//"npc/dev",	<-- ONLY THIS PATH SHOULD BE LOADED
	"npc/events",
	"npc/instances",
	"npc/jobs",
	"npc/kafras",
	"npc/mapflag",
	"npc/mechants",
	"npc/mobs",
	"npc/other",
	"npc/quests",
	"npc/re",
	"npc/warps",
	"npc/woe-fe",
	"npc/woe-se",
	
) // removed

 

But it did not work and all NPCs have been loaded. How can I achieve only load the "/dev" path?

 

Thank you in advance ~

Edited by Ouverture

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

In order to use script remove you need to specify the path of the npc file, another solution would be to disable the include for the other files in scripts_main.conf and add load for your files only.

Share this post


Link to post
Share on other sites
  • 0
/*
//- Common Script Files -
@include "npc/scripts.conf"
@include "npc/scripts_woe.conf"
@include "npc/scripts_jobs.conf"
@include "npc/scripts_mapflags.conf"
@include "npc/scripts_monsters.conf"
@include "npc/scripts_warps.conf"

//- Pre-Renewal Script Files -
@include "npc/pre-re/scripts.conf"
@include "npc/pre-re/scripts_jobs.conf"
@include "npc/pre-re/scripts_mapflags.conf"
@include "npc/pre-re/scripts_monsters.conf"
@include "npc/pre-re/scripts_warps.conf"
*/

//- Development / Testing Script Files -
@include "npc/scripts_dev.conf"

//- Custom Script Files -
// Your NPCs go in this file!
@include "npc/scripts_custom.conf"

Thank you, worked like a charm! <3

Share this post


Link to post
Share on other sites

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.