From 98a3a6391e5d712ff56c89b3dc185c8d69b3ee3e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Sep 2019 01:32:53 -0300 Subject: 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! --- npc/024-11/politics.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 npc/024-11/politics.txt (limited to '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; +} + -- cgit v1.2.3-60-g2f50