summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-12 08:52:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-12 08:52:52 -0300
commit224e6b764b0b4422e866d2a6f5e150b9daf05975 (patch)
tree3fc01565035ca435bc62fe7991b0ad20b807954f /npc/003-1
parent2090a49f46df16e9b99a2986c09329986db79da5 (diff)
downloadserverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.gz
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.bz2
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.tar.xz
serverdata-224e6b764b0b4422e866d2a6f5e150b9daf05975.zip
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.
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/inar.txt2
-rw-r--r--npc/003-1/shop.txt12
2 files changed, 13 insertions, 1 deletions
diff --git a/npc/003-1/inar.txt b/npc/003-1/inar.txt
index 54bcd1687..8311c8ad5 100644
--- a/npc/003-1/inar.txt
+++ b/npc/003-1/inar.txt
@@ -12,7 +12,7 @@
l("Leave"), L_Close;
closedialog;
- shop "Shop#bazar1";
+ shop2 "Shop#bazar1";
close;
L_Close:
diff --git a/npc/003-1/shop.txt b/npc/003-1/shop.txt
index 56f386f37..cf51a70fa 100644
--- a/npc/003-1/shop.txt
+++ b/npc/003-1/shop.txt
@@ -44,5 +44,17 @@ OnClock0000:
restoreshopitem CroconutBox, rand(2800,3050), 6;
restoreshopitem EmptyBottle, 3;
restoreshopitem EmptyBox, 4;
+ end;
+
+// Pay your taxes!
+OnBuyItem:
+ debugmes("Purchase confirmed");
+ PurchaseTaxes();
+ end;
+
+OnSellItem:
+ debugmes("Sale confirmed");
+ SaleTaxes();
+ end;
}