N nuna New member Messages 136 Points 0 Emulator Jun 23, 2014 #2 can anyone help me to make script for automatically every 4 hours the prt_maze02 all monster will be killed and also be cleaned up.
can anyone help me to make script for automatically every 4 hours the prt_maze02 all monster will be killed and also be cleaned up.
S Sunzuki New member Messages 22 Points 0 Jun 23, 2014 #3 are you aware of that? // Delay before removing mobs from empty maps (default 5 min = 300 secs)mob_remove_delay: 300000 https://raw.githubusercontent.com/HerculesWS/Hercules/master/conf/battle/monster.conf
are you aware of that? // Delay before removing mobs from empty maps (default 5 min = 300 secs)mob_remove_delay: 300000 https://raw.githubusercontent.com/HerculesWS/Hercules/master/conf/battle/monster.conf
N nuna New member Messages 136 Points 0 Emulator Jun 23, 2014 #4 i want only in prt_maze02 not in all
S Sunzuki New member Messages 22 Points 0 Jun 23, 2014 #5 I wouldn't do that but what ever - script OnInit -1,{end;OnInit: freeloop(1); while(1) { killmonsterall "prt_maze02"; cleanmap "prt_maze02"; sleep 60*60*4*1000; } end;} maybe OnHour<hour>: event is a better choice Last edited by a moderator: Jun 23, 2014
I wouldn't do that but what ever - script OnInit -1,{end;OnInit: freeloop(1); while(1) { killmonsterall "prt_maze02"; cleanmap "prt_maze02"; sleep 60*60*4*1000; } end;} maybe OnHour<hour>: event is a better choice
A Angelmelody (\ /) ( . .) Messages 772 Points 0 Age 32 Location new_1-1,53,111 Github Angelmelody Emulator Jun 23, 2014 #6 Code: - script test123456 -1,{OnMinute0: if(!gettime(2) && !(gettime(3)%4)) atcommand "@killmonster2 prt_maze02";end;} Last edited by a moderator: Jun 23, 2014
Code: - script test123456 -1,{OnMinute0: if(!gettime(2) && !(gettime(3)%4)) atcommand "@killmonster2 prt_maze02";end;}
A Angelmelody (\ /) ( . .) Messages 772 Points 0 Age 32 Location new_1-1,53,111 Github Angelmelody Emulator Jun 23, 2014 #7 sorry.... double post Last edited by a moderator: Jun 23, 2014
N nuna New member Messages 136 Points 0 Emulator Jun 23, 2014 #8 thank you very much very kind people