From 15109ff591fb688b945d1062243ceffb0ae6c717 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Sep 2019 17:12:29 -0300 Subject: Fix bugs involving the tax money going into MORE TAXES instead of town vault --- npc/functions/politics.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc/functions/politics.txt') diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index aa8ab81d5..773607b31 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -39,7 +39,8 @@ function script PurchaseTaxes { .@tax=.@tax*.@vat/10000; if (.@tax) { debugmes "%s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; - setd("$"+.@loc$+"_TAX", .@vat+.@tax); + .@gp=getd("$"+.@loc$+"MONEY"); + setd("$"+.@loc$+"_MONEY", .@gp+.@tax); } return; } @@ -59,9 +60,10 @@ function script SaleTaxes { .@tax=.@tax*.@vat/10000; if (.@tax) { debugmes "Sale: %s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; - setd("$"+.@loc$+"_TAX", .@vat+.@tax); - Zeny-=.@vat; - dispbottom col(l("%s is happy because you've paid %d GP in taxes!", getd("$"+.@loc$+"_MAYOR$"), .@vat), 1); + .@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); } return; } -- cgit v1.2.3-60-g2f50