summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-13 17:25:17 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-13 17:25:17 -0300
commit34b1658c53bf21a67b5828e42ecf33518475e3e8 (patch)
tree92cfb02df98731dd433d61920323478947990cf3
parenta3ebd99c6baccfb7a90e4998eb9bbe16871e480d (diff)
downloadserverdata-34b1658c53bf21a67b5828e42ecf33518475e3e8.tar.gz
serverdata-34b1658c53bf21a67b5828e42ecf33518475e3e8.tar.bz2
serverdata-34b1658c53bf21a67b5828e42ecf33518475e3e8.tar.xz
serverdata-34b1658c53bf21a67b5828e42ecf33518475e3e8.zip
Demure: Do not waste CPU power outside season.
This gives a three months window where Valentine Scoreboards will be calculated
-rw-r--r--npc/001-11/Demure.txt3
1 files changed, 2 insertions, 1 deletions
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;
}