diff options
-rw-r--r-- | npc/009-3/dangrostra.txt | 12 | ||||
-rw-r--r-- | npc/012-1/shoppakep.txt | 2 |
2 files changed, 13 insertions, 1 deletions
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) |