Jump to content
  • 0

@Reloadscript don't reload mobs


Question

6 answers to this question

Recommended Posts

  • 0
Posted
10 minutes ago, Legend said:

Hi guys ! can anyone help me ? I would like to use the command @reloadscript not reload on monsters and Mvps.

have u tried @reloadmobdb ?

  • 0
Posted (edited)
12 minutes ago, Legend said:

Hi guys ! can anyone help me ? I would like to use the command @reloadscript not reload on monsters and Mvps.

That's problematic because the mobs are loaded from script files. If you reload a script without removing the mobs prior, you'll end up with twice as many mobs on the map (and it will keep increasing if you reload the file again). Also, you might want to get away from using @reloadscript as a whole. That command is only really useful to reload mobs...

Instead, I'd recommend looking into "@reloadnpcfile npc/custom/test.txt". It will unload and reload only a specific file without having to reload your whole server scripts. It's much faster and efficient.

Edited by Tokei
  • 0
Posted
On 2/16/2023 at 3:26 AM, Tokei said:

That's problematic because the mobs are loaded from script files. If you reload a script without removing the mobs prior, you'll end up with twice as many mobs on the map (and it will keep increasing if you reload the file again). Also, you might want to get away from using @reloadscript as a whole. That command is only really useful to reload mobs...

Instead, I'd recommend looking into "@reloadnpcfile npc/custom/test.txt". It will unload and reload only a specific file without having to reload your whole server scripts. It's much faster and efficient.

I already had this function on another server, but Do not remember how I changed..

When reloading did not affect the mobs folder, the only way to reload in the mobs was if it restarted the server, other than that , the mobs continued following their automatic respaw

 ?

 

On 2/16/2023 at 3:25 AM, Chaos92 said:

have u tried @reloadmobdb ?

I do not want to reload in the mob folder, I want to reload on all npcs except in the mob

 

someone help me please ?

  • 0
Posted (edited)

Are you want reload custom script, if yes try this script

Spoiler
//===== rAthena/Hercules Script =======================================
//= Single NPC reloader
//===== By: ==================================================
//= luizragna
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= Use @r <npc_name>
//= To reload a single npc
//= Sample-1:
//= to reload npc/custom/jobmaster.txt
//= use @r jobmaster
//= Sample-2:
//= to reload npc/custom/events/poring_race.txt
//= use @r events/poring_race
//===== Additional Comments: =================================
//= 1.0 First release.
//============================================================

-	script	Reloader#OP	FAKE_NPC,{

	OnInit:
		bindatcmd "r",strnpcinfo(3)+"::OnAtcommandReload",99;
	end;

	OnAtcommandReload:
	
	if (.@atcmd_parameters$[0] == "")
	{
	message(strcharinfo(PC_NAME), "Por favor, digite o nome do NPC!");
	end;
	}
	
	atcommand "@unloadnpcfile npc/custom/"+.@atcmd_parameters$[0]+".txt";
	sleep2 100;
	atcommand "@loadnpc npc/custom/"+.@atcmd_parameters$[0]+".txt";
}

 

 

Edited by hendra814

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...