Jump to content
  • 0

@Reloadscript don't reload mobs


Legend

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/17
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  662
  • Reputation:   671
  • Joined:  11/12/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/17
  • Last Seen:  

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 ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.01
  • Content Count:  19
  • Reputation:   7
  • Joined:  11/08/22
  • Last Seen:  

This is SRC modification.   

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1188
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.01
  • Content Count:  19
  • Reputation:   7
  • Joined:  11/08/22
  • Last Seen:  

Link to comment
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.   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.

×
×
  • Create New...