Plexius Posted December 27, 2023 Share Posted December 27, 2023 So as the title says im working on making a new trader and using another item for a currency but im not having any luck adding something like this <traders buy_markup="3" sell_markdown="0.2" quality_mod="0.4,8" currency_item="casinoCash" quest_tier_mod="0,0.05,0.1,0.15,0.2,0.25,0.3" > tried just appending traders not much experience besides creating new loot groups and adding stuff to existing traders and loot tables. So my question is how can i make a new set of traders that require a new currency. I made a casinoCash to use that is worth alot more than the coins think of your dollar to the penny. I wanted to create a seperate trader that is stationed at the lobby always that uses this other currency mainly Ideally afterwards id like to create a vending machine for both rentals and playerowned that uses it as a currency Im going to continue to mess with it until something changes Link to comment Share on other sites More sharing options...
Boudriov Posted January 4 Share Posted January 4 (edited) # 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. Edited January 4 by Boudriov (see edit history) Link to comment Share on other sites More sharing options...
Plexius Posted January 4 Author Share Posted January 4 i barely touched this after making this post after looking at it though... duh i didnt even try to give them a seperate currency in their own code.. for some reason i was thinking id have to make a whole new trader section lmao Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now