diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-09 17:26:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-09 17:26:45 -0300 |
commit | 67a3c5acc38d76d83cfbaa401f29f470f645d230 (patch) | |
tree | 25db6c28c878a99a320598dfa7e69a8f0992cfa9 /npc | |
parent | 699b9247d7fad000141d815d867f6efee4d6be22 (diff) | |
download | serverdata-67a3c5acc38d76d83cfbaa401f29f470f645d230.tar.gz serverdata-67a3c5acc38d76d83cfbaa401f29f470f645d230.tar.bz2 serverdata-67a3c5acc38d76d83cfbaa401f29f470f645d230.tar.xz serverdata-67a3c5acc38d76d83cfbaa401f29f470f645d230.zip |
Elected town admins will be marked to run again for the office free of charge.
They can still apply to another town and their run won't be annuled.
This allows a player to control ALL towns ingame.
Seu ramo está à frente de 'upstream/master' por 12 submissões.
Diffstat (limited to 'npc')
-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!"); |