Jump to content

Edit History

Please note that revisions older than 365 days are pruned and will no longer show here
Boudriov

Boudriov

# Trader Patches
IDC Core features Harmony patches that enable each trader to use a separate currency. To make use of this feature, a trader must be given a specific currency different than the global currency to use. There are multiple ways to specify the currency for a trader.

The first method is to modify `traders.xml` manually and add the `currency_item` attribute to the traders corresponding `trader_info` entry.
 

`<trader_info id="6" reset_interval="3" open_time="6:05" close_time="21:50" currency_item="<item name>">`

The second and ideal way is to use xpath to add the attribute to the trader's `trader_info` entry.
 

`<setattribute xpath="traders/trader_info[@id='<trader id>']" name="currency_item"><item name></setattribute>`

 

I took that from "IDC Core"  Docs -> Harmony -> Traders folder. So I think you will need IDC Core folder and your folder with the code you need for your suits.

Boudriov

Boudriov

# Trader Patches
IDC Core features Harmony patches that enable each trader to use a separate currency. To make use of this feature, a trader must be given a specific currency different than the global currency to use. There are multiple ways to specify the currency for a trader.

The first method is to modify `traders.xml` manually and add the `currency_item` attribute to the traders corresponding `trader_info` entry.
`<trader_info id="6" reset_interval="3" open_time="6:05" close_time="21:50" currency_item="<item name>">`

The second and ideal way is to use xpath to add the attribute to the trader's `trader_info` entry.
`<setattribute xpath="traders/trader_info[@id='<trader id>']" name="currency_item"><item name></setattribute>`

 

I took that from "IDC Core"  Docs -> Harmony -> Traders folder. So I think you will need IDC Core folder and your folder with the code you need for your suits.

×
×
  • Create New...