diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
commit | a7c45a192268da2601cef47a4cdba987ae2327ca (patch) | |
tree | c5fb5b97db109fe7106496dd96498c475881046b /npc/024-11 | |
download | serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2 serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip |
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/024-11')
-rw-r--r-- | npc/024-11/_import.txt | 4 | ||||
-rw-r--r-- | npc/024-11/_warps.txt | 3 | ||||
-rw-r--r-- | npc/024-11/politics.txt | 63 |
3 files changed, 70 insertions, 0 deletions
diff --git a/npc/024-11/_import.txt b/npc/024-11/_import.txt new file mode 100644 index 0000000..8a4943b --- /dev/null +++ b/npc/024-11/_import.txt @@ -0,0 +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/_warps.txt b/npc/024-11/_warps.txt new file mode 100644 index 0000000..7a50b04 --- /dev/null +++ b/npc/024-11/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 024-11: Frostia Indoors warps +024-11,24,35,0 warp #024-11_24_35 0,0,024-1,105,35 diff --git a/npc/024-11/politics.txt b/npc/024-11/politics.txt new file mode 100644 index 0000000..efb7fcb --- /dev/null +++ b/npc/024-11/politics.txt @@ -0,0 +1,63 @@ +// 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; + 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; + close; + POL_TownInfo("FROSTIA"); + mesc l("Application fee: @@ GP", .applytax); + next; + select + l("Information"), + rif(strcharinfo(0) == $FROSTIA_MAYOR$, l("Manage Town")), + 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: + POL_Manage("FROSTIA"); + break; + case 3: + // 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 4: + POL_Candidate("FROSTIA"); + break; + default: + close; + } +} while (true); +end; + +OnInit: + .applytax=50; + .distance=4; + end; +} + |