diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-08-19 19:18:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-08-19 19:18:25 -0300 |
commit | f1c46db9680829c1b0b54587a5a3011d6ea31973 (patch) | |
tree | 0e387daa7d4cd5f34f90e36c6f35488b2eebcf96 /npc/functions | |
parent | 7d284e94bfa3383ac3fda40ecf1a9cdabe0c0c98 (diff) | |
download | serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.gz serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.bz2 serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.tar.xz serverdata-f1c46db9680829c1b0b54587a5a3011d6ea31973.zip |
Prevent the double-mail bug
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/scoreboards.txt | 3 |
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?) |