Mods / TradersTweaks

Category: #Tweak
Author: KenigVovan
Side: Both
Created: Dec 1st 2022 at 4:53 PM
Last modified: Dec 4th 2022 at 7:39 PM
Downloads: 193
Follow Unfollow 1

Change items which can be used as currecy with default traders.

COINS_VALUES in config lists items codes and it's values:
default is
{
"tradeomat:coin-gold": 256,
"tradeomat:coin-silver": 64,
"tradeomat:coin-copper": 1,
"game:gear-rusty": 0
}

RETURN_ITEM: is item code which will be used as payment item with value 1, which trader will return after buy/sell operations
default: "tradeomat:coin-copper"

Version For Game version Downloads Release date Changelog Download
v0.1.3 99 Dec 4th 2022 at 7:39 PM Show vendorcoins_v0.1.3.zip
v0.1.2 45 Dec 2nd 2022 at 5:25 PM Show vendorcoins_v0.1.2.zip
v0.1.1 41 Dec 1st 2022 at 10:28 PM Show vendorcoins_v0.1.1.zip

8 Comments (oldest first | newest first)

💬 KenigVovan, Dec 4th 2022 at 7:40 PM

Vronizos

"attributes" for coins was null if "disableCoinCasting" was true, now it should work

💬 Vronizos, Dec 4th 2022 at 2:52 PM

Next litle issue, if i set disableCoinCasting on true value in Tradeomat config, all vendors and players have 0 coins (I have for example 256 coins in my inventory, but mod doesnt detect it). If i set disableCoinCasting on false, all work fine.

💬 KenigVovan, Dec 1st 2022 at 10:44 PM

0.1.1 now has 15 seconds delay when items values updated after player joins the server which should resolve problem for now.
Changed values in config on the server seems to be used now.
I'm aware that gui has now "...gears..."

Using config you can select item by it's domain:code value for it, it should be coins, they are just for example.

💬 Runehawk, Dec 1st 2022 at 10:02 PM

Changing item values in the config does not affect actual gameplay, which acts as though it is using the default, even if that has also been changed. This is a great mod, though, exactly what I was looking for. I suppose you used actual metal value when setting up the ratios for coins?

💬 Theisgood, Dec 1st 2022 at 9:49 PM

So with this mod installed I can no longer use gears to purchase items but instead coins?

Can I set each coin to a different value and return the gears back to 1$ and have the coins be more valuable?

 

💬 GaiaWitch, Dec 1st 2022 at 9:15 PM

Confirming that the values do not stick once changed in the config. It acts as though it's using default values.

💬 Vronizos, Dec 1st 2022 at 7:19 PM

And one more think... If i set game:gear-rusty to 0 value in COIN_VALUES, all traders have no money in his wallet and i cannot sell the my items

💬 Vronizos, Dec 1st 2022 at 7:07 PM

I think RETURN_ITEM is not working properly
This is my config, and trader always return copper coins. For example i buy something for 1 gold coin and trader give me 255 copper coins 

{
"COINS_VALUES": {
"Comment": null,
"Default": {
"tradeomat:coin-gold": 256,
"tradeomat:coin-silver": 64,
"tradeomat:coin-copper": 1,
"game:gear-rusty": 0
},
"Val": {
"tradeomat:coin-gold": 1,
"tradeomat:coin-silver": 0,
"tradeomat:coin-copper": 0,
"game:gear-rusty": 0
}
},
"RETURN_ITEM": {
"Comment": null,
"Default": "tradeomat:coin-copper",
"Val": "tradeomat:coin-gold"
}
}

(edit comment delete)