summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-07 21:11:02 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-07 21:11:02 -0300
commit39390c8538825e15a00714fe4948ccc4170c313c (patch)
treeeaa868d90ca2d043a23d5f41a05b03022c6fdbd7 /npc/functions/politics.txt
parente939e9882c0a45b1cebf471e39c9d63298840ac2 (diff)
downloadserverdata-39390c8538825e15a00714fe4948ccc4170c313c.tar.gz
serverdata-39390c8538825e15a00714fe4948ccc4170c313c.tar.bz2
serverdata-39390c8538825e15a00714fe4948ccc4170c313c.tar.xz
serverdata-39390c8538825e15a00714fe4948ccc4170c313c.zip
Report town stats to town admin (money, tax, exports, reputation)
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 5679efa82..70fc08941 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -219,4 +219,20 @@ function script POL_Candidate {
}
+// Town info
+// POL_TownInfo( TOWNCODE )
+function script POL_TownInfo {
+ .@MAYOR$=getd("$"+getarg(0)+"_MAYOR$");
+ .@GP=getd("$"+getarg(0)+"_MONEY");
+ .@TX=getd("$"+getarg(0)+"_TAX");
+ .@EX=getd("$"+getarg(0)+"_EXPORT");
+ .@RP=getd("$"+getarg(0)+"_REPUTATION");
+ if (strcharinfo(0) == .@MAYOR$) {
+ mesc l("Town Money: @@", .@GP), 2;
+ mesc l("Town Reputation: @@ | @@.@@%% Tax", .@RP, .@TX/100, .@TX%100), 2;
+ mesc l("Town Weekly Exports: @@", .@EX), 2;
+ }
+ return;
+}
+