Mob Room Cleaner

Kuroyama

New member
Messages
128
Points
0
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!

 
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

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