UbberN00ber Posted October 26, 2019 Share Posted October 26, 2019 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> Link to comment Share on other sites More sharing options...
stallionsden Posted October 27, 2019 Share Posted October 27, 2019 <append xpath="/traders/trader[@group=decorativeBlocks]"> <item name="decoPoolTable"/> <item name="barStool"/> </append> Try that Link to comment Share on other sites More sharing options...
UbberN00ber Posted October 28, 2019 Author Share Posted October 28, 2019 <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 Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 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: <set xpath="/traders/trader_item_groups/trader_item_group[@name='decorativeBlocks']/@count">10</set> To add poolTable to decorativeBlocks: <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. Link to comment Share on other sites More sharing options...
UbberN00ber Posted October 28, 2019 Author Share Posted October 28, 2019 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 Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 Oops, I think I see my error now. I'll edit my first post in a minute. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.