diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-12-21 11:40:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-12-21 11:40:50 -0300 |
commit | 5b7a246f3a0a522473ff8fefb434ba3ef9c16aec (patch) | |
tree | a5efe770af59377e6983ff6850b1e5bb4a6d614d | |
parent | e2bb4861760098a95abdaf6c755c9181bb0a8f3f (diff) | |
download | serverdata-5b7a246f3a0a522473ff8fefb434ba3ef9c16aec.tar.gz serverdata-5b7a246f3a0a522473ff8fefb434ba3ef9c16aec.tar.bz2 serverdata-5b7a246f3a0a522473ff8fefb434ba3ef9c16aec.tar.xz serverdata-5b7a246f3a0a522473ff8fefb434ba3ef9c16aec.zip |
This should fix the Christmas scoreboard initialization bug
-rw-r--r-- | npc/functions/scoreboards.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |