Jump to content
  • 0
Sign in to follow this  
Kuroyama

Mob Room Cleaner

Question

Hello again :sob:, need some help regarding this thing like if the room (prt_in or something) has left over monsters while nobody in the room for about 5mins,

The monster inside will be automatically killed (@killmonster) without drop.

This one is similar to my request before, bloody branch timer but the thing is

this is not for bloody branch, just a room for @spawn commands. Thanks!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

clean prontera map after empty for 10 seconds, just for testing make sure it works

-	script	dsfkdsjhf	FAKE_NPC,{
OnTimer1000:
	if (!getmapusers("prontera")) {
		if (++.empty == 10)
			cleanmap "prontera";
	}
	else
		.empty = 0;
OnInit:
	initnpctimer;
	end;
}

 

 

clean prt_in map after empty for 5 minutes

-	script	dsfkdsjhf	FAKE_NPC,{
OnTimer10000:
	if (!getmapusers("prt_in")) {
		if (++.empty == 30)
			cleanmap "prt_in";
	}
	else
		.empty = 0;
OnInit:
	initnpctimer;
	end;
}

 

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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