Serboy Posted June 22, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/16/23 Last Seen: July 11, 2024 Share Posted June 22, 2023 how to killmonster every hour if or if no player in map like on branch room will killmonster2 every 20mins or hour if theres no player inside Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted June 22, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted June 22, 2023 Hello, this should do what you want. - script mob_cleaner -1,{ OnTimer60000: for(.@i = 0; .@i < getarraysize(.cleanMaps$); .@i++) if(getmapunits(BL_PC, .cleanMaps$[.@i]) == 0) killmonsterall(.cleanMaps$[.@i]); setnpctimer 0; end; OnInit: setarray .cleanMaps$[0], "prontera", "payon"; initnpctimer; } Quote Link to comment Share on other sites More sharing options...
0 Serboy Posted June 23, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/16/23 Last Seen: July 11, 2024 Author Share Posted June 23, 2023 23 hours ago, Winterfox said: Hello, this should do what you want. - script mob_cleaner -1,{ OnTimer60000: for(.@i = 0; .@i < getarraysize(.cleanMaps$); .@i++) if(getmapunits(BL_PC, .cleanMaps$[.@i]) == 0) killmonsterall(.cleanMaps$[.@i]); setnpctimer 0; end; OnInit: setarray .cleanMaps$[0], "prontera", "payon"; initnpctimer; } ty Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted June 25, 2023 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 15 hours ago Share Posted June 25, 2023 OnMinute00: OnMinute20: OnMinute40: if (getmapusers("prontera") == 0) killmonsterall "prontera"; end; run every 00th, 20th, 40th minutes Quote Link to comment Share on other sites More sharing options...
Question
Serboy
how to killmonster every hour if or if no player in map
like on branch room will killmonster2 every 20mins or hour if theres no player inside
Link to comment
Share on other sites
3 answers 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.