diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-02 17:12:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-02 17:12:29 -0300 |
commit | 15109ff591fb688b945d1062243ceffb0ae6c717 (patch) | |
tree | d33d5577368a354429b031dab459574ac813f559 /npc/functions/politics.txt | |
parent | 063e64d933ffe0c7222ec7e7aec482d4f3aa8fbd (diff) | |
download | serverdata-15109ff591fb688b945d1062243ceffb0ae6c717.tar.gz serverdata-15109ff591fb688b945d1062243ceffb0ae6c717.tar.bz2 serverdata-15109ff591fb688b945d1062243ceffb0ae6c717.tar.xz serverdata-15109ff591fb688b945d1062243ceffb0ae6c717.zip |
Fix bugs involving the tax money going into MORE TAXES instead of town vault
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r-- | npc/functions/politics.txt | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |