summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-1/itka.txt7
-rw-r--r--npc/003-5/jeweler.txt11
2 files changed, 14 insertions, 4 deletions
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");
diff --git a/npc/003-5/jeweler.txt b/npc/003-5/jeweler.txt
index 21639ffe9..35c002bed 100644
--- a/npc/003-5/jeweler.txt
+++ b/npc/003-5/jeweler.txt
@@ -193,9 +193,14 @@ OnInit:
.sex = G_FEMALE;
.distance = 5;
- tradertype(NST_ZENY);
- sellitem WeddingRing, 5000;
- sellitem GoldenBlackPearlRing, 500000; // I'm joking of course. Don't tell me you'll pay half MILLION for... this?
+ tradertype(NST_MARKET);
+ sellitem WeddingRing, 5000, 50;
+ sellitem GoldenBlackPearlRing, 500000, 1; // I'm joking of course. Don't tell me you'll pay half MILLION for... this?
+ end;
+
+OnClock2214:
+ restoreshopitem WeddingRing, 5000, 50;
+ restoreshopitem GoldenBlackPearlRing, 500000, 1;
end;
// Pay your taxes!