Jump to content
  • 0

Removing monsters in a map


ays297

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  11/30/11
  • Last Seen:  

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

@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;
}

 

Link to comment
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.   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.

×
×
  • Create New...