From 32c105f5ca765f1bcfec70da88f5a239400fca7a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Sep 2019 17:33:12 -0300 Subject: Wait wait - Halinarzo is also a townhold. --- npc/009-3/dangrostra.txt | 12 ++++++++++++ npc/012-1/shoppakep.txt | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/009-3/dangrostra.txt b/npc/009-3/dangrostra.txt index ec7093322..e7974a217 100644 --- a/npc/009-3/dangrostra.txt +++ b/npc/009-3/dangrostra.txt @@ -15,6 +15,7 @@ l("Leave"), L_Close; closedialog; + npcshopattach(.name$); shop .name$; close; @@ -71,4 +72,15 @@ OnClock2000: restoreshopitem Coffee, 3; end; +// Pay your taxes! +OnBuyItem: + debugmes("Purchase confirmed"); + PurchaseTaxes(); + end; + +OnSellItem: + debugmes("Sale confirmed"); + SaleTaxes(); + end; + } diff --git a/npc/012-1/shoppakep.txt b/npc/012-1/shoppakep.txt index 60dc0f700..64daf7f8b 100644 --- a/npc/012-1/shoppakep.txt +++ b/npc/012-1/shoppakep.txt @@ -14,7 +14,7 @@ close; function ShoppaKepItem { - .@i=rand(0,100); + .@i=rand2(0,100); if (.@i > 75) return Aquada; else if (.@i < 35) -- cgit v1.2.3-60-g2f50