summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-08-19 19:18:25 -0300
committerJesusaves <cpntb1@ymail.com>2020-08-19 19:18:25 -0300
commitf1c46db9680829c1b0b54587a5a3011d6ea31973 (patch)
tree0e387daa7d4cd5f34f90e36c6f35488b2eebcf96 /npc
parent7d284e94bfa3383ac3fda40ecf1a9cdabe0c0c98 (diff)
downloadserverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.gz
serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.bz2
serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.xz
serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.zip
Prevent the double-mail bug
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/scoreboards.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index 13541074d..b9b916730 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -52,6 +52,8 @@ OnDay1101:
OnDay1201:
ScoreboardsReload(); // Ensure
+ if ($SCOREBOARD == gettimeparam(GETTIME_MONTH)) end;
+
for (.@i=0; .@i < getarraysize($@hof_name$); .@i++) {
rodex_sendmail(gf_charnameid($@hof_name$[.@i]), "Scoreboards", "Hall Of Honor: TOP 10", "For being on the TOP 10 of this hall, you're getting some Strange Coins.", 0, StrangeCoin, 15);
}
@@ -60,6 +62,7 @@ OnDay1201:
rodex_sendmail(gf_charnameid($@cfefe_name$[.@i]), "Scoreboards", "Hall Of Candor Battle: TOP 10", "For being on the TOP 10 of this hall, you're getting some Strange Coins.", 0, StrangeCoin, 15);
}
+ $SCOREBOARD = gettimeparam(GETTIME_MONTH);
end;
// Hourly Reload (maybe "OnMinute00" would work better?)