I'd like to add an item group to this:
<!-- Vending Machines found in the world. -->
<trader_info id="4" reset_interval="1" override_buy_markup="1.0" allow_sell="false" min_inventory="6" max_inventory="13" min_items_swapped="6" max_items_swapped="13">
<trader_items count="10">
<item group="foodAll" />
</trader_items>
</trader_info>
I'd like to add the ammo item group after the foodall item group but for the life of me every attempt to do this via an xpath command has failed. A direct edit to the traders xml works though. Can anyone assist ? While i wont publish what I'm working on as a modlet as it will be a collection of other peoples work i have amended i will post the code for the collection of trader changes in case people might want to see them.
<!-- Vending Machines found in the world. -->
<trader_info id="4" reset_interval="1" override_buy_markup="1.0" allow_sell="false" min_inventory="6" max_inventory="13" min_items_swapped="6" max_items_swapped="13">
<trader_items count="10">
<item group="foodAll" />
</trader_items>
</trader_info>
I'd like to add the ammo item group after the foodall item group but for the life of me every attempt to do this via an xpath command has failed. A direct edit to the traders xml works though. Can anyone assist ? While i wont publish what I'm working on as a modlet as it will be a collection of other peoples work i have amended i will post the code for the collection of trader changes in case people might want to see them.