diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-02-17 22:30:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-02-17 22:30:51 -0300 |
commit | 62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9 (patch) | |
tree | 26f174f7d7f8b39ec2358b7bbe9a7b668c38133b /npc | |
parent | 0a6cba4c68521edc6e33cacd6999ab461f8ad6aa (diff) | |
download | serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.gz serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.bz2 serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.xz serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.zip |
It was stated that Frostia was founded "by elves and ukars", so allow Ukars.
Update some code accordingly. But remember - Ukars are virtually extinct.
Frostia remains exercising an elf supremacy.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/024-1/guard.txt | 3 | ||||
-rw-r--r-- | npc/024-11/politics.txt | 16 | ||||
-rw-r--r-- | npc/functions/util.txt | 2 |
3 files changed, 13 insertions, 8 deletions
diff --git a/npc/024-1/guard.txt b/npc/024-1/guard.txt index 26abab9bc..070f5e3e4 100644 --- a/npc/024-1/guard.txt +++ b/npc/024-1/guard.txt @@ -14,8 +14,7 @@ L_MainLogic: if (BaseLevel < 40 && !REBIRTH) goto L_Unallowed; - if (Class == Elven) - { + if (frally()) { slide 93, 69; npctalk3 l("Elves are always allowed inside."); end; diff --git a/npc/024-11/politics.txt b/npc/024-11/politics.txt index d33c90c64..e4ca2c1e9 100644 --- a/npc/024-11/politics.txt +++ b/npc/024-11/politics.txt @@ -12,21 +12,27 @@ do { mesc ".:: "+l("Frostia Townhall")+" ::.", 2; mesc l("Current Town Administrator: ")+$FROSTIA_MAYOR$, 3; + + // 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()) + if (!is_staff() || GETUSERSAVG() < 10) close; + POL_TownInfo("FROSTIA"); - mesc l("Application fee: @@ GP", .applytax); - if (is_staff()) - mesc l("Average user count = %d", GETUSERSAVG()); + // Frostia is special: Only citizens can apply for office + if (!frally()) + mesc l("Only elves may run to Town Admin Office in Frostia!"), 1; + else + mesc l("Application fee: @@ GP", .applytax); next; select l("Information"), rif(strcharinfo(0) == $FROSTIA_MAYOR$, l("Manage Town")), - rif(#POL_APPLYWEEK != gettimeparam(GETTIME_WEEKDAY) && GETUSERSAVG() >= 10, l("Apply for the office!")), + rif(#POL_APPLYWEEK != gettimeparam(GETTIME_WEEKDAY) && frally(), l("Apply for the office!")), l("View Candidate List and cast a vote"), l("[Quit]"); diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 84782e448..afb94fbdf 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -1261,7 +1261,7 @@ function script NewcomerEXPDROPUP { // Frostia Util // frally( ) function script frally { - return (Class == Elven || reputation("Frostia") == 100); + return (Class == Elven || Class == Ukar || reputation("Frostia") == 100); } // Easter Egg |