diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-26 13:05:40 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-26 13:05:40 -0300 |
commit | c912bcd1fd19719db1e92d1db35693664fb29d13 (patch) | |
tree | 2d05411e9d3be23861a9b4f4c97e3edf39d3e748 /npc | |
parent | 937922483e45c64536a1986779eee5a7b0b88fa2 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/functions/politics.txt | 9 |
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; } |