Remove Scripts from loading list

Chuu

New member
Messages
60
Points
0
Age
29
Location
Germany
Github
Peek-a-Chuu
Emulator
rAthena
Client Version
2018--06-20a
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 ~
 
Last edited by a moderator:
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.

 
/*
//- 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

 
Back
Top