diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-11-06 21:17:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-11-06 21:17:18 -0300 |
commit | 768007b88a4599223f8c60be46aee5c0a15ee269 (patch) | |
tree | 9e642cef7a5376d7195c5af7bf617f3a58fed6f3 /npc/003-1/itka.txt | |
parent | b63c1f53773de0ef1c520f8eedd574c22b83a221 (diff) | |
download | serverdata-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)
Diffstat (limited to 'npc/003-1/itka.txt')
-rw-r--r-- | npc/003-1/itka.txt | 7 |
1 files changed, 6 insertions, 1 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"); |