From 34b1658c53bf21a67b5828e42ecf33518475e3e8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 Jan 2021 17:25:17 -0300 Subject: Demure: Do not waste CPU power outside season. This gives a three months window where Valentine Scoreboards will be calculated --- npc/001-11/Demure.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npc/001-11/Demure.txt b/npc/001-11/Demure.txt index c36ca4cf8..7a97ff9aa 100644 --- a/npc/001-11/Demure.txt +++ b/npc/001-11/Demure.txt @@ -235,7 +235,8 @@ OnInit: OnClock2359: OnClock1159: - .@nb = query_sql("SELECT c.name, i.value FROM `acc_reg_num_db` AS i, `char` AS c WHERE i.key='#VALENTINE_POINTS' AND i.account_id=c.account_id AND c.char_num='0' ORDER BY i.value DESC LIMIT 10", $@valentine_name$, $@valentine_value); + if (season() == WINTER) + .@nb = query_sql("SELECT c.name, i.value FROM `acc_reg_num_db` AS i, `char` AS c WHERE i.key='#VALENTINE_POINTS' AND i.account_id=c.account_id AND c.char_num='0' ORDER BY i.value DESC LIMIT 10", $@valentine_name$, $@valentine_value); end; } -- cgit v1.2.3-70-g09d2