ays297 Posted June 23, 2012 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 49 Reputation: 0 Joined: 11/30/11 Last Seen: November 2, 2014 Share Posted June 23, 2012 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. Quote Link to comment Share on other sites More sharing options...
0 Skorm Posted August 17, 2022 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted August 17, 2022 @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; } Quote Link to comment Share on other sites More sharing options...
Question
ays297
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.