Jump to content

Trader cost messed up?


Plexius

Recommended Posts

As i just started messing with adding new item groups to traders and such it adds in great but now everything in the trader costs negative money so i can buy for free and sell it back for money? ive added stuff to traders before so im confused why all of a sudden its messed up.

Link to comment
Share on other sites

nope which is why im confused 

 

    <append xpath="/traders/traderstage_templates">
        <traderstage_template name="EliteTier1" min="110" max="999999" /> <!-- Elite Items -->
        <traderstage_template name="EliteTier2" min="130" max="999999" /> <!-- Elite Items -->
        <traderstage_template name="EliteTier3" min="150" max="999999" /> <!-- Elite Items -->
    </append>
        <!--Create trader group for Elite Items including rare guns-->
    <insertBefore xpath="/traders/trader_item_groups/trader_item_group[@name='ammoAll']">
        <trader_item_group name="Eliteitems">
                <item name="gunBronzeShotgun" quality="1,4"/>
                <item name="gunBronzeDesertVulture" quality="1,4"/>
                <item name="gunBronzeSMG" quality="1,4"/>
                <item name="gunBronzeM60" quality="1,4"/>
                <item name="gunBronzeRPG" quality="1,4"/>
                <item name="gunTungstenM60" quality="1,4"/>
                <item name="gunMithrilSMG" quality="1,4"/>
                <item name="gunAdamantiumDesertVulture" quality="1,4"/>
                <item name="gunMithrilShotgun" quality="1,4"/>
                <item name="gunOrichalcumRPG" quality="1,4"/>
                <item name="gunNecroniumM60" quality="1,4"/>
                <item name="gunOrichalcumSMG" quality="1,4"/>
                <item name="gunUraniumDesertVulture" quality="1,4"/>
                <item name="gunUraniumShotgun" quality="1,4"/>
                <item name="gunNecroniumRPG" quality="1,4"/>
                <item name="Diamond Bit" prob="0.2"/>
                <item name="Carbon Bit" prob="0.15"/>
                <item name="Titanium Bit" prob="0.1"/>
                <item name="Obsidian Bit" prob="0.01"/>
                <item name="Diamond Harvester" prob="0.2"/>
                <item name="Carbon Harvester" prob="0.15"/>
                <item name="Titanium Harvester" prob="0.1"/>
                <item name="Obsidian Harvester" prob="0.01"/>
                <item name="modResistanceList" prob="0.1"/>
                <item name="modArmorPlatingMithril" prob="0.15"/>
                <item name="modArmorPlatingAdamantium" prob="0.06"/>
            </trader_item_group>
    </insertBefore>
        <!--Asking traders to sell Elite Items-->
    <append xpath="//trader_info[@id='1' or @id='2' or @id='6' or @id='7' or @id='8']/trader_items">
        <item group="Eliteitems" count="1,2"/>
    </append>

That is the pretty much the whole thing theres another group of code for ammo aswell but nothing that changes prices 

Screenshot_1.png

Link to comment
Share on other sites

3 minutes ago, Plexius said:

nope which is why im confused 

 

    <append xpath="/traders/traderstage_templates">
        <traderstage_template name="EliteTier1" min="110" max="999999" /> <!-- Elite Items -->
        <traderstage_template name="EliteTier2" min="130" max="999999" /> <!-- Elite Items -->
        <traderstage_template name="EliteTier3" min="150" max="999999" /> <!-- Elite Items -->
    </append>
        <!--Create trader group for Elite Items including rare guns-->
    <insertBefore xpath="/traders/trader_item_groups/trader_item_group[@name='ammoAll']">
        <trader_item_group name="Eliteitems">
                <item name="gunBronzeShotgun" quality="1,4"/>
                <item name="gunBronzeDesertVulture" quality="1,4"/>
                <item name="gunBronzeSMG" quality="1,4"/>
                <item name="gunBronzeM60" quality="1,4"/>
                <item name="gunBronzeRPG" quality="1,4"/>
                <item name="gunTungstenM60" quality="1,4"/>
                <item name="gunMithrilSMG" quality="1,4"/>
                <item name="gunAdamantiumDesertVulture" quality="1,4"/>
                <item name="gunMithrilShotgun" quality="1,4"/>
                <item name="gunOrichalcumRPG" quality="1,4"/>
                <item name="gunNecroniumM60" quality="1,4"/>
                <item name="gunOrichalcumSMG" quality="1,4"/>
                <item name="gunUraniumDesertVulture" quality="1,4"/>
                <item name="gunUraniumShotgun" quality="1,4"/>
                <item name="gunNecroniumRPG" quality="1,4"/>
                <item name="Diamond Bit" prob="0.2"/>
                <item name="Carbon Bit" prob="0.15"/>
                <item name="Titanium Bit" prob="0.1"/>
                <item name="Obsidian Bit" prob="0.01"/>
                <item name="Diamond Harvester" prob="0.2"/>
                <item name="Carbon Harvester" prob="0.15"/>
                <item name="Titanium Harvester" prob="0.1"/>
                <item name="Obsidian Harvester" prob="0.01"/>
                <item name="modResistanceList" prob="0.1"/>
                <item name="modArmorPlatingMithril" prob="0.15"/>
                <item name="modArmorPlatingAdamantium" prob="0.06"/>
            </trader_item_group>
    </insertBefore>
        <!--Asking traders to sell Elite Items-->
    <append xpath="//trader_info[@id='1' or @id='2' or @id='6' or @id='7' or @id='8']/trader_items">
        <item group="Eliteitems" count="1,2"/>
    </append>

That is the pretty much the whole thing theres another group of code for ammo aswell but nothing that changes prices 

 

Those are all custom items, did you assign them a value in the items.xml file?

 

    <property name="EconomicValue" value="175"/>

 

 

Link to comment
Share on other sites

Do any of the mods that you are loading up affect Better Barter or the barter system itself?

 

For example, this is the vanilla code for Better Barter:

 

            <passive_effect name="BarteringBuying" operation="base_add" level="1,2,3,4,5" value=".05,.1,.15,.2,.25"/>
            <passive_effect name="BarteringSelling" operation="base_add" level="1,2,3,4,5" value=".05,.1,.15,.2,.25"/>

 

If those numbers are adjusted too much, you can see a situation where all the purchase costs become negative.

Link to comment
Share on other sites

Ahhhh.... sorry for late reply been working alot. That would explain it as i've redone every single perk since im working on a serverside overhaul mod

idk how i managed to do this, was probably rushing when i first added this. i fixed the top one the bottom was the original for both

 

<passive_effect name="BarteringBuying" operation="base_add" level="1,2,3,4,5,6,7,8,9,10" value=".05,.1,.15,.2,.25,.3,.35,.4,.45,.5"/>
            <passive_effect name="BarteringSelling" operation="base_add" level="1,2,3,4,5,6,7,8,9,10" value=".05,.1,.15,.2,.25,.3,.35,4,4.5,5"/>
On 12/10/2023 at 1:56 PM, ThunderSn1per said:

Any yellow text in the log file when loading this modlet? Can you add the items.xml so we can potentially see anything going on in there?

but no there was no errors so thats why i made the post

Yep works good now

Screenshot_2.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...