From 5b7a246f3a0a522473ff8fefb434ba3ef9c16aec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 21 Dec 2022 11:40:50 -0300 Subject: This should fix the Christmas scoreboard initialization bug --- npc/functions/scoreboards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index 52bf06133..921673953 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -28,7 +28,7 @@ function script ScoreboardsReload { if (season() == AUTUMN || season() == WINTER) { .@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Autumn+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 5", $@hasn_name$, $@hasn_value); } - if (season() == WINTER || season() == SPRING) { + if (season() == WINTER || season() == SPRING || $EVENT$ == "Christmas") { .@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 5", $@xmas_box_name$, $@xmas_box_value); .@nb = query_sql("SELECT c.name, i.count3 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count3 DESC LIMIT 5", $@xmas_gp_name$, $@xmas_gp_value); } -- cgit v1.2.3-60-g2f50