diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-05-16 19:29:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-05-16 19:29:07 -0300 |
commit | 03d2035c1a4b9cc688c43a8ae8aa5d8d1c4a62ff (patch) | |
tree | fbd5e141504d3f1e0d63532ec3952a5d6363374e | |
parent | 4f4094064df9469f157513745cf6dd5d5961c0a1 (diff) | |
download | serverdata-03d2035c1a4b9cc688c43a8ae8aa5d8d1c4a62ff.tar.gz serverdata-03d2035c1a4b9cc688c43a8ae8aa5d8d1c4a62ff.tar.bz2 serverdata-03d2035c1a4b9cc688c43a8ae8aa5d8d1c4a62ff.tar.xz serverdata-03d2035c1a4b9cc688c43a8ae8aa5d8d1c4a62ff.zip |
Add $HIST_ONLINE to preserve historical online activity
-rw-r--r-- | npc/functions/scoreboards.txt | 5 | ||||
-rw-r--r-- | npc/functions/weather.txt | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index c664c6a4d..1e3b00254 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -5,7 +5,8 @@ // Leaderboards + GM Command Log function script ScoreboardsReload { - debugmes "Reloading scoreboards..."; + $HIST_ONLINE = GETUSERSAVG(); + debugmes "Reloading scoreboards... %d", gettimetick(0); .@nb = query_sql("select name, zeny from `char` WHERE `guild_id`!=1 ORDER BY zeny DESC LIMIT 15", $@hofortune_name$, $@hofortune_value); .@nb = query_sql("select name, base_level from `char` WHERE `guild_id`!=1 ORDER BY base_level DESC LIMIT 15", $@hoblvl_name$, $@hoblvl_value); .@nb = query_sql("select name, job_level from `char` WHERE `guild_id`!=1 ORDER BY job_level DESC LIMIT 15", $@hojlvl_name$, $@hojlvl_value); @@ -37,7 +38,7 @@ function script ScoreboardsReload { deletearray $@aurora_value; .@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+Q_AuroraEvent+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 10", $@aurora_name$, $@aurora_value); } - debugmes "Scoreboards reloaded"; + debugmes "Scoreboards reloaded, %d", gettimetick(0); return; } diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index bf530b114..497d0ab6a 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -49,7 +49,7 @@ OnInit: // This is weather startup .@init=true; $@WEATHER_NIGHT=is_night(true); - array_pad($@PLAYER_ACTIVITY, 96, 0); + array_pad($@PLAYER_ACTIVITY, 96, $HIST_ONLINE); .tpc=0; .tcl=0; // Bind commands |