summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-26 13:05:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-26 13:05:40 -0300
commitc912bcd1fd19719db1e92d1db35693664fb29d13 (patch)
tree2d05411e9d3be23861a9b4f4c97e3edf39d3e748 /npc/functions/politics.txt
parent937922483e45c64536a1986779eee5a7b0b88fa2 (diff)
downloadserverdata-c912bcd1fd19719db1e92d1db35693664fb29d13.tar.gz
serverdata-c912bcd1fd19719db1e92d1db35693664fb29d13.tar.bz2
serverdata-c912bcd1fd19719db1e92d1db35693664fb29d13.tar.xz
serverdata-c912bcd1fd19719db1e92d1db35693664fb29d13.zip
Town Politics: Send a RODeX mail to new mayors that they were (re-)elected.
That would be 2 mails weekly on re-election: Victory, and Term GP Income. No mail is sent on defeat, nor to old mayors if they didn't ran again.
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 3d21d313d..5b40ac53b 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -122,6 +122,15 @@ OnSun0000:
$FROSTIA_MAYOR$=$FROSTIA_CANDIDATE$[.@w];
deletearray($FROSTIA_CANDIDATE$);
deletearray($FROSTIA_VOTES);
+
+ // Notify new mayors of their victory
+ rodex_sendmail(gf_charnameid($TULIM_MAYOR$), "Tulimshar Townhall", "Election Victory", "You've been elected to the office!");
+ rodex_sendmail(gf_charnameid($HALIN_MAYOR$), "Halinarzo Townhall", "Election Victory", "You've been elected to the office!");
+ rodex_sendmail(gf_charnameid($HURNS_MAYOR$), "Hurnscald Townhall", "Election Victory", "You've been elected to the office!");
+ rodex_sendmail(gf_charnameid($LOF_MAYOR$), "LoF Townhall", "Election Victory", "You've been elected to the office!");
+ rodex_sendmail(gf_charnameid($NIVAL_MAYOR$), "Nivalis Townhall", "Election Victory", "You've been elected to the office!");
+ rodex_sendmail(gf_charnameid($FROSTIA_MAYOR$), "Frostia Townhall", "Election Victory", "You've been elected to the office!");
+
end;
}