diff options
-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; } |