summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/003-2/_import.txt1
-rw-r--r--npc/003-2/politics.txt53
-rw-r--r--npc/009-2/_import.txt1
-rw-r--r--npc/009-2/politics.txt53
-rw-r--r--npc/017-10/_import.txt1
-rw-r--r--npc/017-10/politics.txt53
-rw-r--r--npc/020-7-1/_import.txt1
-rw-r--r--npc/020-7-1/politics.txt53
-rw-r--r--npc/024-11/_import.txt1
-rw-r--r--npc/024-11/politics.txt53
10 files changed, 270 insertions, 0 deletions
diff --git a/npc/003-2/_import.txt b/npc/003-2/_import.txt
index f6711989e..f355c5192 100644
--- a/npc/003-2/_import.txt
+++ b/npc/003-2/_import.txt
@@ -6,3 +6,4 @@
"npc/003-2/hiddenwarp.txt",
"npc/003-2/lua.txt",
"npc/003-2/mapflags.txt",
+"npc/003-2/politics.txt",
diff --git a/npc/003-2/politics.txt b/npc/003-2/politics.txt
new file mode 100644
index 000000000..176e4ef44
--- /dev/null
+++ b/npc/003-2/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
+
+003-2,29,35,0 script Tulimshar Office NPC_POLITICS,{
+do
+{
+ mesc ".:: "+l("Tulimshar Townhall")+" ::.", 2;
+ mesc l("Current Town Administrator: ")+$TULIM_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;
+ $TULIM_MONEY+=.applytax;
+ #POL_APPLYWEEK=gettimeparam(GETTIME_WEEKDAY);
+ array_push($TULIM_CANDIDATE$, strcharinfo(0));
+ array_push($TULIM_VOTES, 0);
+ mesc l("Application successful!"), 3;
+ next;
+ break;
+ case 3:
+ POL_Candidate("TULIM");
+ break;
+ default:
+ close;
+ }
+} while (true);
+end;
+
+OnInit:
+ .applytax=60;
+ .distance=4;
+ end;
+}
+
diff --git a/npc/009-2/_import.txt b/npc/009-2/_import.txt
index 87b9801a2..2d0238fa2 100644
--- a/npc/009-2/_import.txt
+++ b/npc/009-2/_import.txt
@@ -2,5 +2,6 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/009-2/_warps.txt",
"npc/009-2/librarian.txt",
+"npc/009-2/politics.txt",
"npc/009-2/ryan.txt",
"npc/009-2/scholar.txt",
diff --git a/npc/009-2/politics.txt b/npc/009-2/politics.txt
new file mode 100644
index 000000000..4dc910226
--- /dev/null
+++ b/npc/009-2/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
+
+009-2,66,63,0 script Halinarzo Office NPC_POLITICS,{
+do
+{
+ mesc ".:: "+l("Halinarzo Townhall")+" ::.", 2;
+ mesc l("Current Town Administrator: ")+$HALIN_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;
+ $HALIN_MONEY+=.applytax;
+ #POL_APPLYWEEK=gettimeparam(GETTIME_WEEKDAY);
+ array_push($HALIN_CANDIDATE$, strcharinfo(0));
+ array_push($HALIN_VOTES, 0);
+ mesc l("Application successful!"), 3;
+ next;
+ break;
+ case 3:
+ POL_Candidate("HALIN");
+ break;
+ default:
+ close;
+ }
+} while (true);
+end;
+
+OnInit:
+ .applytax=50;
+ .distance=4;
+ end;
+}
+
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;
+}
+
diff --git a/npc/020-7-1/_import.txt b/npc/020-7-1/_import.txt
index 71132d44e..b41683ea4 100644
--- a/npc/020-7-1/_import.txt
+++ b/npc/020-7-1/_import.txt
@@ -13,6 +13,7 @@
"npc/020-7-1/nea.txt",
"npc/020-7-1/oskari.txt",
"npc/020-7-1/peetu.txt",
+"npc/020-7-1/politics.txt",
"npc/020-7-1/pyry.txt",
"npc/020-7-1/sage.txt",
"npc/020-7-1/santeri.txt",
diff --git a/npc/020-7-1/politics.txt b/npc/020-7-1/politics.txt
new file mode 100644
index 000000000..1f29c9c3d
--- /dev/null
+++ b/npc/020-7-1/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
+
+012-7,37,61,0 script Nivalis Office NPC_POLITICS,{
+do
+{
+ mesc ".:: "+l("Nivalis Townhall")+" ::.", 2;
+ mesc l("Current Town Administrator: ")+$NIVAL_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;
+ $NIVAL_MONEY+=.applytax;
+ #POL_APPLYWEEK=gettimeparam(GETTIME_WEEKDAY);
+ array_push($NIVAL_CANDIDATE$, strcharinfo(0));
+ array_push($NIVAL_VOTES, 0);
+ mesc l("Application successful!"), 3;
+ next;
+ break;
+ case 3:
+ POL_Candidate("NIVAL");
+ break;
+ default:
+ close;
+ }
+} while (true);
+end;
+
+OnInit:
+ .applytax=50;
+ .distance=4;
+ end;
+}
+
diff --git a/npc/024-11/_import.txt b/npc/024-11/_import.txt
index 4959c1a85..8a4943b9c 100644
--- a/npc/024-11/_import.txt
+++ b/npc/024-11/_import.txt
@@ -1,3 +1,4 @@
// Map 024-11: Frostia Indoors
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/024-11/_warps.txt",
+"npc/024-11/politics.txt",
diff --git a/npc/024-11/politics.txt b/npc/024-11/politics.txt
new file mode 100644
index 000000000..fe65aa49a
--- /dev/null
+++ b/npc/024-11/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
+
+024-11,24,30,0 script Frostia Office NPC_POLITICS,{
+do
+{
+ mesc ".:: "+l("Frostia Townhall")+" ::.", 2;
+ mesc l("Current Town Administrator: ")+$FROSTIA_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;
+ $FROSTIA_MONEY+=.applytax;
+ #POL_APPLYWEEK=gettimeparam(GETTIME_WEEKDAY);
+ array_push($FROSTIA_CANDIDATE$, strcharinfo(0));
+ array_push($FROSTIA_VOTES, 0);
+ mesc l("Application successful!"), 3;
+ next;
+ break;
+ case 3:
+ POL_Candidate("FROSTIA");
+ break;
+ default:
+ close;
+ }
+} while (true);
+end;
+
+OnInit:
+ .applytax=50;
+ .distance=4;
+ end;
+}
+