-
Notifications
You must be signed in to change notification settings - Fork 41
[Server Hosting] Setting up Custom Market Currencies
If you plan in using a different currency then the Nuggest and Bars we provide by default with the Expansion Core mod then you need to do some slight adjustments on the Exchange Market settings as also on the Trader settings files to get them working as indended:
To define the worth values for you currency you need to define them for each currency item that you plan to use in the Market Exchange category located in your servers profile directory (YOURS_SERVER_PROFILE_DIRECTORY/ExpansionMod/Market/Exchange.JSON):
{
"m_Version": 4,
"DisplayName": "#STR_EXPANSION_MARKET_CATEGORY_EXCHANGE",
"Items": [
{
"ClassName": "expansiongoldbar",
"MaxPriceThreshold": 10000,
"MinPriceThreshold": 10000,
"MaxStockThreshold": 1,
"MinStockThreshold": 1,
"PurchaseType": 0,
"SpawnAttachments": [],
"Variants": []
},
{
"ClassName": "expansiongoldnugget",
"MaxPriceThreshold": 100,
"MinPriceThreshold": 100,
"MaxStockThreshold": 1,
"MinStockThreshold": 1,
"PurchaseType": 0,
"SpawnAttachments": [],
"Variants": []
},
{
"ClassName": "expansionsilverbar",
"MaxPriceThreshold": 10,
"MinPriceThreshold": 10,
"MaxStockThreshold": 1,
"MinStockThreshold": 1,
"PurchaseType": 0,
"SpawnAttachments": [],
"Variants": []
},
{
"ClassName": "expansionsilvernugget",
"MaxPriceThreshold": 1,
"MinPriceThreshold": 1,
"MaxStockThreshold": 1,
"MinStockThreshold": 1,
"PurchaseType": 0,
"SpawnAttachments": [],
"Variants": []
}
]
}
- ClassName
The class name of the currency item you want to add. Does not need to be typed in lowercase like in the example above but will be converted to lowercase once this file has been loaded by the server.
- MaxPriceThreshold and MinPriceThreshold
Defines the worth of the item. MaxPriceThreshold and MinPriceThreshold always need to have the same values like in the example above but you can use and define as many currency as you want here. There is no limit.
- MaxStockThreshold and MinStockThreshold
Need to be 1 or the item will not be recogniced as a static market item that can be used as a currency!
- PurchaseType
Need to be 0 for currency items!
Leave the other parameters empty like in the example above as we dont need them for currency.
To define on what kind of trader type the currency can be used we need to add the disired curreny items to the Currencies array of each trader where we want to allow players to use it. The Market Trader settings files are located in your servers profile directory (YOURS_SERVER_PROFILE_DIRECTORY/ExpansionMod/Traders/). For further information about the trader settings please take a look at the Wiki page for these settings:
https://github.com/salutesh/DayZ-Expansion-Scripts/wiki/%5BServer-Hosting%5D-Trader-Settings
Copyright© 2020-2023 DayZ Expansion Mod Team. We do not authorize any entity to publish this DayZ Standalone modification without licensing from the DayZ Expansion Mod Team.