From 6490d9175ba17732cd8a078e40903ee423f2747f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Sep 2019 17:18:17 -0300 Subject: Charge taxes at Tulimshar. Because Tulimshar shops are still the 'classic' shop style, some shops are tax-exempt. Right-click sell also allows you to evade taxes. Now, is this a feature or a bug? --- npc/003-5/jeweler.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/003-5') diff --git a/npc/003-5/jeweler.txt b/npc/003-5/jeweler.txt index d0dd74d94..25642c522 100644 --- a/npc/003-5/jeweler.txt +++ b/npc/003-5/jeweler.txt @@ -29,6 +29,7 @@ L_Menu: l("I want to remove all stuff applied to my ring!"), L_Clear, l("Nothing, sorry."), L_Close; + npcshopattach(.name$); openshop; closedialog; close; @@ -194,4 +195,15 @@ OnInit: sellitem GoldenBlackPearlRing, 1000000; // I'm joking of course. Don't tell me you'll pay 1M for... this? end; +// Pay your taxes! +OnBuyItem: + debugmes("Purchase confirmed"); + PurchaseTaxes(); + end; + +OnSellItem: + debugmes("Sale confirmed"); + SaleTaxes(); + end; + } -- cgit v1.2.3-60-g2f50