mgp82 added a new file:
QuoteDisplay MoreThis mod aims to facilitate buying from traders without compromising the game progression.
Based on this mod, but with a completely reworked logic in order to accurately define item price, in order to prevent trade abuse (With the original mod, you could buy items for cheaper than they sold and get infinite money)
A server side mod that transforms barter trades into regular money transations IF:
- The output item in a trade is not already sold by the trader in a different trade (Hidden, locked and quest reward trades count towards this. Eg.: SV-98 on Prapor)
- The output item has a defined value in the database:
- The value of the item itself (vanilla or custom)
- The joined value of all the input items that compose the trade
- If a weapon: The value of the weapon + the value of any parts/attachments that comes with the trade (Eg.: M870 Breacher (Mechanic) => M870 + Sight + Grip + Rails + ...)
If these conditions are met, the price is calculated with a configurable multiplier (See Readme)
You can also set custom prices, in roubles, for any item in the mod configuration (See Readme)
The server modifications have a slight delay to load after any custom traders/items (Should be fully compatible. Customize in config. Please report if you find an issue)
(V1.1.0)
There is a check, at certain intervals, to make sure trades don't revert back to vanilla (This is an issue when trades restock; May have a few seconds of delay to update the trades)
(v1.2.0)
Ammo boxes sold by traders now use the price of a single bullet (if the trader sells that bullet loose, use that value) times the amount in the box to calculate its final price (The game has a price for the boxes, but does not replect its actual value)
Server logs now show colored messages
Non-fatal errors that may happen now show in red in the server console
Known Issues:
Upon trader restock, the trades revert back to vanilla> Squashed this bug (v1.1.0)
Notes:
Feel free to modify and upload your own versions of this mod, but I would appreciate if you give credit. Enjoy!