summaryrefslogtreecommitdiff
path: root/npc/017-10
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-01 01:32:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-01 01:32:53 -0300
commit98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e (patch)
tree178076b1f435735e6941edb7578f21e63e0c9662 /npc/017-10
parentdfc2250457ad340b6037e990f62bce3d9996fd1a (diff)
downloadserverdata-98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e.tar.gz
serverdata-98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e.tar.bz2
serverdata-98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e.tar.xz
serverdata-98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e.zip
Politics: Allow election for Tulimshar, Halinarzo, Land Of Fire, Nivalis and Frostia.
This means all six towns are now working. Tulimshar application tax is 60 GP!
Diffstat (limited to 'npc/017-10')
-rw-r--r--npc/017-10/_import.txt1
-rw-r--r--npc/017-10/politics.txt53
2 files changed, 54 insertions, 0 deletions
diff --git a/npc/017-10/_import.txt b/npc/017-10/_import.txt
index ddd202783..4499709f0 100644
--- a/npc/017-10/_import.txt
+++ b/npc/017-10/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/017-10/_warps.txt",
"npc/017-10/dispatcher.txt",
+"npc/017-10/politics.txt",
diff --git a/npc/017-10/politics.txt b/npc/017-10/politics.txt
new file mode 100644
index 000000000..9d9d9cce1
--- /dev/null
+++ b/npc/017-10/politics.txt
@@ -0,0 +1,53 @@
+// TMW2 Scripts
+// Author:
+// Jesusalva
+// Description:
+// Town Administrator file, see npc/functions/politics.txt
+// User variables:
+// #POL_APPLYWEEK = Week of last application
+// #POL_VOTEDAY = Day of last vote
+
+017-10,54,35,0 script Land Of Fire Office NPC_POLITICS,{
+do
+{
+ mesc ".:: "+l("Land Of Fire Townhall")+" ::.", 2;
+ mesc l("Current Town Administrator: ")+$LOF_MAYOR$, 3;
+ mesc l("Application fee: @@ GP", .applytax);
+ next;
+ select
+ l("Information"),
+ rif(#POL_APPLYWEEK != gettimeparam(GETTIME_WEEKDAY), l("Apply for the office!")),
+ l("View Candidate List and cast a vote"),
+ l("[Quit]");
+
+ switch (@menu) {
+ case 1:
+ POL_Information();
+ break;
+ case 2:
+ // array_push might be too sensible for getd/setd
+ if (Zeny < .applytax)
+ break;
+ Zeny-=.applytax;
+ $LOF_MONEY+=.applytax;
+ #POL_APPLYWEEK=gettimeparam(GETTIME_WEEKDAY);
+ array_push($LOF_CANDIDATE$, strcharinfo(0));
+ array_push($LOF_VOTES, 0);
+ mesc l("Application successful!"), 3;
+ next;
+ break;
+ case 3:
+ POL_Candidate("LOF");
+ break;
+ default:
+ close;
+ }
+} while (true);
+end;
+
+OnInit:
+ .applytax=50;
+ .distance=4;
+ end;
+}
+