• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

add items to trader

UbberN00ber

New member
i want to add the pool table and bar stools to trader but not sure why this is not working

<configs>
<append xpath="/trader_item_groups/trader_item_group[@name=decorativeBlocks]">

<item name="decoPoolTable"/>

<item name="barStool"/>

</append>

</configs>
 
<append xpath="/traders/trader[@group=decorativeBlocks]">

<item name="decoPoolTable"/>

<item name="barStool"/>

</append>

Try that

 
<append xpath="/traders/trader[@group=decorativeBlocks]"><item name="decoPoolTable"/>

<item name="barStool"/>

</append>

Try that
i did try this and console says "did not apply" so it doesnt work

 
Disclaimer: I only have minimal experience with xpath.

barStool is already in the decorativeBlocks group. But that group has count of "1", which I assume means only one of the 30+ items in the group will be chosen. If I'm right about that, you'd need to increase the count if you want a better chance of a particular item.

To increase count to 10 for example:

Code:
<set xpath="/traders/trader_item_groups/trader_item_group[@name='decorativeBlocks']/@count">10</set>
To add poolTable to decorativeBlocks:

Code:
<append xpath="/traders/trader_item_groups/trader_item_group[@name='decorativeBlocks']">
   <item name="decoPoolTable"/>
</append>
There's also a group named "traderAlways" which has count "all". So if you want these items to always appear you should add both to that group instead.

 
Last edited by a moderator:
it didnt work

i even tried this

<configs>

<append xpath='/trader_item_groups/trader_item_group[@name=decorativeBlocks]'>

<item name="decoPoolTable"/>

<item name="barStool"/>

</append>

</configs>
and this

<configs>

<append xpath="/trader_item_groups/trader_item_group[@name=decorativeBlocks]">

<item name="decoPoolTable"/>

<item name="barStool"/>

</append>

</configs>
cant seem to figure it out

 
Back
Top