diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-02-19 11:39:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-02-19 11:39:28 -0300 |
commit | 3ef43a71a8df86fc056875bf52b303bfbcc61360 (patch) | |
tree | 92815a096114c65b64caa2b8c43afead018dd992 | |
parent | 80edceaf0ca0e94477ffea4a0e79072c9b89d69d (diff) | |
download | serverdata-3ef43a71a8df86fc056875bf52b303bfbcc61360.tar.gz serverdata-3ef43a71a8df86fc056875bf52b303bfbcc61360.tar.bz2 serverdata-3ef43a71a8df86fc056875bf52b303bfbcc61360.tar.xz serverdata-3ef43a71a8df86fc056875bf52b303bfbcc61360.zip |
Automatically unlock Frostia's Office
-rw-r--r-- | npc/024-11/politics.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/npc/024-11/politics.txt b/npc/024-11/politics.txt index e4ca2c1e9..e21f3094a 100644 --- a/npc/024-11/politics.txt +++ b/npc/024-11/politics.txt @@ -15,12 +15,14 @@ do // FIXME: Some hack code to disable the town // Frostia Townhall is only available if player activity reaches a threshold - if (Class != Elven) - mesc l("Only elves may run to Town Admin Office in Frostia!"), 1; - else - mesc l("Hey, you're an elf, cool! But you still cannot run for office here!"), 1; - if (!is_staff() || GETUSERSAVG() < 10) + if (GETUSERSAVG() < 10) { + if (Class != Elven) + mesc l("Only elves may run to Town Admin Office in Frostia!"), 1; + else + mesc l("Hey, you're an elf, cool! But you still cannot run for office here!"), 1; + mesc l("%d more active users are required to unlock Frostia Townhall.", 10-GETUSERSAVG()); close; + } POL_TownInfo("FROSTIA"); // Frostia is special: Only citizens can apply for office |