Lulu 25 Posted November 10, 2013 I know i can reload a certain script via @loadnpcfile, @loadnpc, @unloadnpc.... etc Is there any faster way besides unloading and loading it again? If I use @reloadscript, even monster spawns and MVP spawns will be reloaded. Is there a faster way to reload a specific folder in the npc dir or an instant reload for a specific npc file? Thanks 1 chocolab reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 10, 2013 you could make a script for that - script reloadnpcfile -1,{OnInit: bindatcmd "reloadnpcfile",strnpcinfo(3)+"::OnAtcommand"; end;OnAtcommand: if (getgmlevel() < 99) end; atcommand "@unloadnpcfile " + .@atcmd_parameters$[0]; atcommand "@loadnpc " + .@atcmd_parameters$[0]; message strcharinfo(0), "NPC file " + .@atcmd_parameters$[0] + " reloaded if you didn't get any problem with the other commands. AVOID RELOADING ANY MOBS OR MAPFLAGS WITH THIS COMMAND."; end;} 2 Mumbles and Echoes reacted to this Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 10, 2013 jabote will that work on every npc on the whole server? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 10, 2013 Haven't tested. It's supposed that, by doing that, the script will do something like this for you: @unloadnpcfile path/to/npc.txt@loadnpc path/to/npc.txt You specify the path to the NPC by yourself. Quote Share this post Link to post Share on other sites
0 Lulu 25 Posted November 11, 2013 tried it. after reloading several times. gives a debug msg. Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted November 11, 2013 For me, i will suggest to implement a command like this. Quote Share this post Link to post Share on other sites
0 Lulu 25 Posted November 11, 2013 For me, i will suggest to implement a command like this. same. maybe this can be a suggestion Quote Share this post Link to post Share on other sites
0 chocolab 0 Posted November 26, 2013 bump for this? can this be a suggestion? Quote Share this post Link to post Share on other sites
-1 ossi0110 200 Posted November 10, 2013 I know i can reload a certain script via @loadnpcfile, @loadnpc, @unloadnpc.... etc Is there any faster way besides unloading and loading it again? If I use @reloadscript, even monster spawns and MVP spawns will be reloaded. Is there a faster way to reload a specific folder in the npc dir or an instant reload for a specific npc file? Thanks No Quote Share this post Link to post Share on other sites
I know i can reload a certain script via @loadnpcfile, @loadnpc, @unloadnpc.... etc
Is there any faster way besides unloading and loading it again?
If I use @reloadscript, even monster spawns and MVP spawns will be reloaded.
Is there a faster way to reload a specific folder in the npc dir or an instant reload for a specific npc file?
Thanks
Share this post
Link to post
Share on other sites