From f1c46db9680829c1b0b54587a5a3011d6ea31973 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 19 Aug 2020 19:18:25 -0300 Subject: Prevent the double-mail bug --- npc/functions/scoreboards.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc') 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?) -- cgit v1.2.3-70-g09d2