From 768007b88a4599223f8c60be46aee5c0a15ee269 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 Nov 2020 21:17:18 -0300 Subject: Fix GP exploit shops (Temporary, ideally should fix the C code later) --- npc/003-1/itka.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/003-1/itka.txt') diff --git a/npc/003-1/itka.txt b/npc/003-1/itka.txt index 2a87bae45..e6ac006f9 100644 --- a/npc/003-1/itka.txt +++ b/npc/003-1/itka.txt @@ -27,12 +27,17 @@ OnInit: setunitdata(.@npcId, UDT_HAIRCOLOR, 19); // NOTE: To limit selling items must change trader type to NST_MARKET - sellitem CherryCake, 200; // Unlimited cakes for 200 GP each + tradertype(NST_MARKET); + sellitem CherryCake, 200, 50; // 50 cakes for 200 GP each .sex = G_FEMALE; .distance = 5; end; +OnMinute16: + restoreshopitem CherryCake, 200, 50; + end; + // Pay your taxes! OnBuyItem: debugmes("Purchase confirmed"); -- cgit v1.2.3-60-g2f50