summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-11-06 21:17:18 -0300
committerJesusaves <cpntb1@ymail.com>2020-11-06 21:17:18 -0300
commit768007b88a4599223f8c60be46aee5c0a15ee269 (patch)
tree9e642cef7a5376d7195c5af7bf617f3a58fed6f3
parentb63c1f53773de0ef1c520f8eedd574c22b83a221 (diff)
downloadserverdata-768007b88a4599223f8c60be46aee5c0a15ee269.tar.gz
serverdata-768007b88a4599223f8c60be46aee5c0a15ee269.tar.bz2
serverdata-768007b88a4599223f8c60be46aee5c0a15ee269.tar.xz
serverdata-768007b88a4599223f8c60be46aee5c0a15ee269.zip
Fix GP exploit shops
(Temporary, ideally should fix the C code later)
-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!