Is there another way to reload scripts?

Lulu

New member
Messages
103
Points
0
Age
33
Emulator
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

 
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

 
you could make a script for that
default_tongue.png


Code:
-	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;}
 
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.

 
tried it. after reloading several times. gives a debug msg.

 
For me, i will suggest to implement a command like this.
default_smile.png


 
Back
Top