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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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