diff options
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r-- | npc/functions/politics.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index d4c939570..b1c92a726 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -122,36 +122,48 @@ OnSun0000: $TULIM_MAYOR$=$TULIM_CANDIDATE$[.@w]; deletearray($TULIM_CANDIDATE$); deletearray($TULIM_VOTES); + array_push($TULIM_CANDIDATE$, $TULIM_MAYOR$); + array_push($TULIM_VOTES, 0); .@w=array_highest($HALIN_VOTES); if ($HALIN_CANDIDATE$[.@w] != "") $HALIN_MAYOR$=$HALIN_CANDIDATE$[.@w]; deletearray($HALIN_CANDIDATE$); deletearray($HALIN_VOTES); + array_push($HALIN_CANDIDATE$, $HALIN_MAYOR$); + array_push($HALIN_VOTES, 0); .@w=array_highest($HURNS_VOTES); if ($HURNS_CANDIDATE$[.@w] != "") $HURNS_MAYOR$=$HURNS_CANDIDATE$[.@w]; deletearray($HURNS_CANDIDATE$); deletearray($HURNS_VOTES); + array_push($HURNS_CANDIDATE$, $HURNS_MAYOR$); + array_push($HURNS_VOTES, 0); .@w=array_highest($LOF_VOTES); if ($LOF_CANDIDATE$[.@w] != "") $LOF_MAYOR$=$LOF_CANDIDATE$[.@w]; deletearray($LOF_CANDIDATE$); deletearray($LOF_VOTES); + array_push($LOF_CANDIDATE$, $LOF_MAYOR$); + array_push($LOF_VOTES, 0); .@w=array_highest($NIVAL_VOTES); if ($NIVAL_CANDIDATE$[.@w] != "") $NIVAL_MAYOR$=$NIVAL_CANDIDATE$[.@w]; deletearray($NIVAL_CANDIDATE$); deletearray($NIVAL_VOTES); + array_push($NIVAL_CANDIDATE$, $NIVAL_MAYOR$); + array_push($NIVAL_VOTES, 0); .@w=array_highest($FROSTIA_VOTES); if ($FROSTIA_CANDIDATE$[.@w] != "") $FROSTIA_MAYOR$=$FROSTIA_CANDIDATE$[.@w]; deletearray($FROSTIA_CANDIDATE$); deletearray($FROSTIA_VOTES); + array_push($FROSTIA_CANDIDATE$, $FROSTIA_MAYOR$); + array_push($FROSTIA_VOTES, 0); // Notify new mayors of their victory rodex_sendmail(gf_charnameid($TULIM_MAYOR$), "Tulimshar Townhall", "Election Victory", "You've been elected to the office!"); |