From 219becb7ba390f23c301b8f813f4f025ff83c307 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jul 2020 22:10:22 -0300 Subject: If player is exiled, they'll actually pay the taxes. Non-exiled players will have NPCs paying the taxes for them as usual. --- npc/functions/politics.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'npc') 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; } -- cgit v1.2.3-60-g2f50