diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-28 22:10:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-28 22:10:22 -0300 |
commit | 219becb7ba390f23c301b8f813f4f025ff83c307 (patch) | |
tree | 3b714b7f9c70cfd2eed40933b27bf46b415f6795 /npc/functions/politics.txt | |
parent | a758dd1879c2973db97245a39abd33448af770d9 (diff) | |
download | serverdata-219becb7ba390f23c301b8f813f4f025ff83c307.tar.gz serverdata-219becb7ba390f23c301b8f813f4f025ff83c307.tar.bz2 serverdata-219becb7ba390f23c301b8f813f4f025ff83c307.tar.xz serverdata-219becb7ba390f23c301b8f813f4f025ff83c307.zip |
If player is exiled, they'll actually pay the taxes.
Non-exiled players will have NPCs paying the taxes for them as usual.
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r-- | npc/functions/politics.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index ac31a2a9d..df7b0d61d 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -34,6 +34,9 @@ function script PurchaseTaxes { debugmes "%s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; .@gp=getd("$"+.@loc$+"_MONEY"); setd("$"+.@loc$+"_MONEY", .@gp+.@tax); + .@tp=POL_LocToTP(.@loc$); + if (#EXILED & .@tp) + Zeny=max(0, Zeny-.@tax); } return; } @@ -55,8 +58,11 @@ function script SaleTaxes { debugmes "Sale: %s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; .@gp=getd("$"+.@loc$+"_MONEY"); setd("$"+.@loc$+"_MONEY", .@gp+.@tax); - //Zeny-=.@tax; dispbottom col(l("%s is happy because you've paid %d GP in taxes!", getd("$"+.@loc$+"_MAYOR$"), .@tax), 1); + //Zeny-=.@tax; + .@tp=POL_LocToTP(.@loc$); + if (#EXILED & .@tp) + Zeny=max(0, Zeny-.@tax); } return; } |