Let’s talk a bit about the different scenarios we can meet while working on a priceconfig based on the products for the Tradeqty.
Quantities & how they work within TraderPlus.
Weapons: 0 or 1
Ammunitions: 1 or -1
- Ammo purchases will cap at your server max stack count. ex. Server stack max is 60, you cannot buy more than 60 rounds in one transaction.
Magazines: 0
- These can only be purchased empty. It is recommend to buy your magazines first and then ammo. As the trader will automatically fill your magazines for you.
Consumables: 1 or -1 or a coefficient (0.0 to 0.99)
- ex. Food, Drinks, Bandages, Medicines, etc.
- Read more about consumables after this section.
Water Containers: 1 or -1, or a coefficient (0.0 to 0.99)
- Keep In mind that value between 0 and maxqty will sell a portion of the item until quantity reaches 0.
Gas Canister: -1
- This will ensure the gas canister is full when purchased. This also means you cannot sell an empty canister. An example is shown below.
"CanisterGasoline,0.992,6,-1,3000,1650,0.5",
This line would allow you to buy full canisters and sell only full canisters back to the trader.
"CanisterGasoline,0.992,6,0,-1,800,0.5",
This line would allow you to sell empty canisters back to the trader for 800.
- Unfortunately this could cause issues, so you cannot have both of these options available in your trader.
Consumables
Below is a table of max volumes for Vanilla DayZ items. When creating your price config, you’ll need to keep in mind that some items must be sold with 1.0 (100% volume) or with a coefficient representing a percentage of the max volume.
ex. .50 equals 50% of a canteen.
Untitled