
Reduces the stock of all traders. Also allows for a chance for items to drop down loyalty tiers
This mod will make traders have a much more limited stock of items available for purchase. I use this for more hardcore economy runs.
{
“timeBetweenUpdates”: 115, //How often to re-shuffle their inventory. Should be run more often than traders reset.
“tradersToLimit”: //remove or add traders you want to have adjusted. Probably works for modded traders, but havent tried.
[
“5a7c2eca46aef81a7ca2145d”, //Mechanic
“5ac3b934156ae10c4430e83c”, //Ragman
“5c0647fdd443bc2504c2d371”, //Jaeger
“54cb50c76803fa8b248b4571”, //Prapor
“54cb57776803fa99248b456e”, //Therapist
“5935c25fb3acc3127c3d8cd9”, //Peacekeeper
“58330581ace78e27b8b10cee”//Skier
],
“categories”: //Check Traders Currencies and Handbook IDs for category IDs or https://db.sp-tarkov.com/
{
“5485a8684bdc2da71d8b4567”: //Ammo
{
“base”: 150, //The base count of an item. In this case 300.
“random”: 50//The variance of the base count. With this being 200, and Base being 300. The total spread is 100-500, or 300+/-200
},
“543be6564bdc2df4348b4568”: //Throw weapon (Grenades)
{
“base”: 7,
“random”: 4
},
“543be5dd4bdc2deb348b4569”: //Money
{
“base”: 3000,
“random”: 1500
},
“5447e0e74bdc2d3c308b4567”: //Special items (markers, cameras, etc)
{
“base”: 100,
“random”: 0
},
“5448bc234bdc2d3c308b4569”: //Magazines (for weapons)
{
“base”: 4,
“random”: 3
}
},
//If an item isnt under a specified category above. It will use the settings below.
“defaultBase”: 5,
“defaultRandom”: 2,
//Remove max buy count?`
“removeMaxBuyRestrictions”: true,
“loyaltyMixup”: false, //Alllow items to rarely drop down an item category.
“loyaltyMixupChance2”: 0.03, //Roll 1 to drop down 1 category
“loyaltyMixupChance3”: 0.03, //Roll 2 to drop down 1 category
“loyaltyMixupChance4”: 0.03//Roll 3 to drop down 1 category.
//each roll is made individually and compound.
//This means the odds of dropping down tiers are: (if the math is wrong, sue me. IDGAF)
//1 tier: 8.7%
//2 tiers: 0.27%
//3 tiers: 0.0027%
}
This mod was inspired by some of the options of realism mod, but no code have been copied. (or even looked at)
556 Downloads
Update to 3.11 (still works on 3.10)
125 Downloads
- Added nickname to server message
- Fixed flea not being updated with new prices and limits
407 Downloads
- Updated to 3.10.0
- fixed slow degeneration of prices and loyalty levels.
458 Downloads
- Updated to 3.9.0
- renamed folders and names to follow package.json standards
652 Downloads
- Added chanceForNoStock to config. Which adds a chance for an item to not be in stock at all, regardless of rolls.
- Made the mod track trader updates properly
317 Downloads
Updated for 3.8.0
New and more descriptive config file.
Details
-
GUID
Not Available
-
License
-
Latest Version VirusTotal Result
If I change the items to be more expensive using your mod does that make them sell for more to the traders too?
I keep getting the following error adding Ref and Fence:
Scheduled event: ‘LimitedTradersUpdateTraders’ failed to run successfully.
Cannot read properties of undefined (reading ‘barter_scheme’)
TypeError: Cannot read properties of undefined (reading ‘barter_scheme’)
at LimitedTraders.adjustPrice (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:211:95)
at LimitedTraders.modifyTrader (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:166:18)
at LimitedTraders.updateTraders (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:56:26)
at OnUpdateMod.onUpdateOverride (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:91:50)
at OnUpdateMod.onUpdate (C:\snapshot\project\obj\services\mod\onUpdate\OnUpdateMod.js)
at App.update (C:\snapshot\project\obj\utils\App.js)
at Timeout._onTimeout (C:\snapshot\project\obj\utils\App.js)
Scheduled event: ‘LimitedTradersUpdateTraders’ failed to run successfully.
Cannot read properties of undefined (reading ‘barter_scheme’)
TypeError: Cannot read properties of undefined (reading ‘barter_scheme’)
at LimitedTraders.adjustPrice (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:211:95)
at LimitedTraders.modifyTrader (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:166:18)
at LimitedTraders.updateTraders (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:56:26)
at OnUpdateMod.onUpdateOverride (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:91:50)
at OnUpdateMod.onUpdate (C:\snapshot\project\obj\services\mod\onUpdate\OnUpdateMod.js)
at App.update (C:\snapshot\project\obj\utils\App.js)
at Timeout._onTimeout (C:\snapshot\project\obj\utils\App.js)
Scheduled event: ‘LimitedTradersUpdateTraders’ failed to run successfully.
Cannot read properties of undefined (reading ‘barter_scheme’)
TypeError: Cannot read properties of undefined (reading ‘barter_scheme’)
at LimitedTraders.adjustPrice (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:211:95)
at LimitedTraders.modifyTrader (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:166:18)
at LimitedTraders.updateTraders (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:56:26)
at OnUpdateMod.onUpdateOverride (C:\SPT Tarkov\user\mods\leaves-limited_traders\src\mod.ts:91:50)
at OnUpdateMod.onUpdate (C:\snapshot\project\obj\services\mod\onUpdate\OnUpdateMod.js)
at App.update (C:\snapshot\project\obj\utils\App.js)
at Timeout._onTimeout (C:\snapshot\project\obj\utils\App.js)
Thanks for the mod and all its updates.
I noticed the trading-page Trader ammo prices aren’t congruent with the Trader’s Flea Market listing. For instance, 5.45 PS from Prapor is 306 Roubles, the Flea Market listing from him is 153 Roubles.
I’ve tested and successfully replicated this on a fresh SPT install to make sure there were no conflicts. Any thoughts on how to troubleshoot this?
EDIT: issue seems like it only persists for the first restock; subsequent restocks are fine
There is no “timeBetweenUpdates” line in the config can’t we modify that ? one restock was for like 3 hours and a half xd
Also do trader resotcks save ? as in what if I restart the game and prapor had 77 mins to restock when I launch the game again is it going to be: he just restocked so like 3 hours or whatever, random, 77mins-time to launch the game again or 77 mins ?
Absolute legend for updating and fixing this so quick for 3.10
Hi I think I’ve found a bug or perhaps an incompatibility. I was noticing that the price of ammo was exponentially increasing over time and noticed that “priceAdjustment” was set to 1.35 for ammo in the config. Could this be incorrectly applying to the already increased ammo price each reset?
I need some help I want to see if I can up the Insurance price on a custom trader and what location in base.json do I need to edit to do this.
Writing this because you know traders well.
Thanks in advanced.
Hey leaves I’ve loved using this mod and barter economy, relooked and fuckery
Question though
Would it be possible to apply more limitation or barters only on items at specific trader levels - so that limits are less severe over time
Example:
Loyalty level limitation multiplier
Base=0.5
Level 1 multiplier=1
Level 2 = 0.75
Level 3 = 0.5
Level 4= 0.25
On barter economy I would presume this multiplier would take the number of available items in the assort and use that multiplier to determine number % of offers = barters vs % offer = cash
This system could allow someone to progress through the system
It’s just an idea but if feasible it would be a game changing feature for me and my friends using both mods 🙂
I love clever little mods like this that increase difficulty in immersive ways. Great work, can’t wait to add it to my next play through on 3.9. Not sure how I missed this one for 3.8!
I’m a bit confused about how the shuffle and trader reset work together. First of all, is the update timer setting in seconds or minutes?
What exactly happens during one trader reset cycle? Does each update reduce the stock randomly and the reset then fills everything up or what?