summaryrefslogtreecommitdiff
path: root/npc/functions/global_event_handler.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-17 00:04:22 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-17 00:04:22 -0300
commit665eff45cce85e00109ee7a4b7125eff52c7580c (patch)
treec6610627dee0be751f6c3c553597c682a2f7fb39 /npc/functions/global_event_handler.txt
parentdaf65ed9945542415c04a4e344a11ba95ddfe5f5 (diff)
downloadserverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.gz
serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.bz2
serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.xz
serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.zip
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.
Diffstat (limited to 'npc/functions/global_event_handler.txt')
-rw-r--r--npc/functions/global_event_handler.txt4
1 files changed, 2 insertions, 2 deletions
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;