From 224e6b764b0b4422e866d2a6f5e150b9daf05975 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 12 Sep 2019 08:52:52 -0300 Subject: Inar now charge taxes. New function: shop2(). In future, Shop#bazar1 will move to type HIDDEN and will have a placeholder instead to use shop2() functions. --- npc/005-4/shop.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'npc/005-4') diff --git a/npc/005-4/shop.txt b/npc/005-4/shop.txt index d73bc152a..01ec2d57d 100644 --- a/npc/005-4/shop.txt +++ b/npc/005-4/shop.txt @@ -30,5 +30,18 @@ OnClock0004: restoreshopitem TolchiAmmoBox, -1, 4; restoreshopitem LousyMoccasins, -1, 4; restoreshopitem TrainingBow, -1, 3; + end; + + +// Pay your taxes! +OnBuyItem: + debugmes("Purchase confirmed"); + PurchaseTaxes(); + end; + +OnSellItem: + debugmes("Sale confirmed"); + SaleTaxes(); + end; } -- cgit v1.2.3-60-g2f50