Skip to content

[Server Hosting] Setting up Custom Market Currencies

Steve edited this page Jul 24, 2021 · 13 revisions

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:

Exchange/Currency Settings

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.

Trader Settings

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

Clone this wiki locally