From c912bcd1fd19719db1e92d1db35693664fb29d13 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 26 Aug 2019 13:05:40 -0300 Subject: 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. --- npc/functions/politics.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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; } -- cgit v1.2.3-60-g2f50