summaryrefslogtreecommitdiff
path: root/npc/functions/scoreboards.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/scoreboards.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/scoreboards.txt')
-rw-r--r--npc/functions/scoreboards.txt28
1 files changed, 3 insertions, 25 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index f7d5ddaf..dc21758d 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -164,30 +164,8 @@ function script HallOfGame {
// Main script handler for scoreboards
- script @scoreboard NPC_HIDDEN,{
end;
-OnHour00:
-OnHour01:
-OnHour02:
-OnHour03:
-OnHour04:
-OnHour05:
-OnHour06:
-OnHour07:
-OnHour08:
-OnHour09:
-OnHour10:
-OnHour11:
-OnHour12:
-OnHour13:
-OnHour14:
-OnHour15:
-OnHour16:
-OnHour17:
-OnHour18:
-OnHour19:
-OnHour20:
-OnHour21:
-OnHour22:
-OnHour23:
+OnClock0500:
+OnClock1700:
OnInit:
consolemes(CONSOLEMES_DEBUG, "Reloading scoreboards...");
.@nb = query_sql("select name, zeny from `char` ORDER BY zeny DESC LIMIT 15", $@hofortune_name$, $@hofortune_value);
@@ -207,7 +185,7 @@ OnCall:
do {
clear;
mes l("The Mana World - Legacy");
- mesc l("All scoreboards are updated hourly."), 1;
+ mesc l("All scoreboards are updated at 05:00 and 17:00 servertime."), 1;
mes "";
select
l("Hall Of Fortune"),