Serboy Posted June 22, 2023 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
0 Winterfox Posted June 22, 2023 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
0 Serboy Posted June 23, 2023 Author 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
0 Emistry Posted June 25, 2023 Posted June 25, 2023 OnMinute00: OnMinute20: OnMinute40: if (getmapusers("prontera") == 0) killmonsterall "prontera"; end; run every 00th, 20th, 40th minutes Quote
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
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.