Jump to content
  • 0

Removing monsters in a map


Question

Posted

I have a DB Room and there's a time when player just wants the room to be clean when they enter.

How can I remove all the mobs in a db room when there are no players for 30 minutes.

1 answer to this question

Recommended Posts

  • 0
Posted

@ays297

prontera,100,100,5	script	gold_room_timer	-1,500,500,{
	end;

OnTouch: // On touch reset the timer...
	initnpctimer;
	end;

OnTimer1800000: // On 30 minutes remove monsters if the map is empty & restart timer.
	if(getmapusers(.map_name$) <= 0) {
		killmonsterall .map_name$;
		cleanmap .map_name$;
	}
	initnpctimer;
	end;

OnInit: // On server start the timer...
	.map_name$ = strnpcinfo(4);
	initnpctimer;
	end;
}

 

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