Jump to content
  • 0
Lulu

Is there another way to reload scripts?

Question

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

8 answers to this question

Recommended Posts

  • -1

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

Share this post


Link to post
Share on other sites
  • 0

you could make a script for that :P

 

-	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;}

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

For me, i will suggest to implement a command like this. :)

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...

×
×
  • Create New...

Important Information

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