From 665eff45cce85e00109ee7a4b7125eff52c7580c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Jul 2021 00:04:22 -0300 Subject: Align scoreboard reloading to log cleaner for single lag spikes. Port Confringo. If it is an unacceptable lag, then the boss point scoreboard may end as OnInit only, or taking a hidden entry for on-the-fly updates. We'll see in testserver. --- npc/functions/global_event_handler.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/functions/global_event_handler.txt') diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index f611e997..89df294c 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -35,10 +35,10 @@ OnPCDieEvent: // Cleanup: Retain chat logs for 24~48 hours // Cleanup: Retain item logs for 2 months -OnClock0500: +OnClock0501: query_sql("DELETE FROM `picklog` WHERE `time` < '"+sqldate(0, -2)+"'"); query_sql("DELETE FROM `zenylog` WHERE `time` < '"+sqldate(0, -2)+"'"); -OnClock1700: +OnClock1701: if (gettime(GETTIME_DAYOFMONTH) > 1) query_sql("DELETE FROM `chatlog` WHERE `time` < '"+sqldate(-1)+"'"); end; -- cgit v1.2.3-60-g2f50