Jump to content
  • 0

Question

Posted
 
 

Hello guys,


can i request a Script every 10minutes auto command @killmonster2(WithoutDROP) on certain map?


because on my deadbranch room NPC, some of my players spamming Bloody Branch! and some of the newbie can't hunt because so many MVP's


So i request to have an script which is every 10minutes automtic @killmonster2(WithoutDROP)

my branchroom map is New_1-3, New_2-3, New_3-3, New_4-3, New_5-3



Thanks in advance

and sorry sorry for my Bad ENGLISH!

3 answers to this question

Recommended Posts

  • 1
Posted


OnMinute00:

OnMinute10:

OnMinute20:

OnMinute30:

OnMinute40:

OnMinute50:

for ( .@i = 1; .@i <= 5; .@i++ )

if ( !getmapusers( "New_"+.@i+"-3" ) )

killmonster "New_"+.@i+"-3","All";

end;

  • Upvote 1
Posted (edited)

I cant recommend it to send a command like this every 10 Minutes because if you haven't a good host system or too many player it can be lag a bit and sometimes the server can crash but here is a script to to this.

-	script	KillMobs	-1,{

OnInit:
	while(1){
		killmonster2 "New_1-3";
		killmonster2 "New_2-3";
		killmonster2 "New_3-3";
		killmonster2 "New_4-3";
		killmonster2 "New_5-3";
		sleep 600000;
	}
	end;
}

Best regards,

Rynbef~

Edited by Rynbef
Posted

You will never make your server crash or lag with that script xD

But still I wouldn't recommend you to clean the maps if players are on it because it will eventually kill the monsters they just spawned.

-	script	KillMobs	-1,{

OnInit:
OnTimer600000:
	if (!getmapusers("New_1-3")) killmonster2 "New_1-3";
	if (!getmapusers("New_2-3")) killmonster2 "New_2-3";
	if (!getmapusers("New_3-3")) killmonster2 "New_3-3";
	if (!getmapusers("New_4-3")) killmonster2 "New_4-3";
	if (!getmapusers("New_5-3")) killmonster2 "New_5-3";
	initnpctimer;
	end;
}

It will clean the map every 10 minutes only if there are no players on them

 

Don't worry you won't lag at all even if there are thousands of mobs in them ^^

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