Jump to content

Can someone help with Xpath please


War3zuk

Recommended Posts

I need to add this to the loot table.... but cant get it to work & read the info on it but still failed lol....

 

<!-- military munitions ammo box -->

<lootcontainer id="40" count="1" size="8,4" sound_open="UseActions/open_chest" sound_close="UseActions/close_chest" open_time="15" loot_quality_template="baseTemplate">

<item group="weaponsMilitaryGuns+ammo" prob="0.35"/>

<item group="militaryAmmo" prob="1"/>

<item group="militaryArmor" prob="0.1"/>

to go here so they can be found ????

</lootcontainer>

 

xpath="/lootcontainers/lootcontainer[@id=40] (<item name="Generic Ammo Supply">)

 

Can someone sort this for me & just explain in a few words why & what lol, Thanks

 

EDIT Ive managed to get all the other code working without errors, BUT if you cant find the Generic Box within the loot then it would never been seen in the world....

Link to comment
Share on other sites

I need to add this to the loot table.... but cant get it to work & read the info on it but still failed lol....

 

<!-- military munitions ammo box -->

<lootcontainer id="40" count="1" size="8,4" sound_open="UseActions/open_chest" sound_close="UseActions/close_chest" open_time="15" loot_quality_template="baseTemplate">

<item group="weaponsMilitaryGuns+ammo" prob="0.35"/>

<item group="militaryAmmo" prob="1"/>

<item group="militaryArmor" prob="0.1"/>

to go here so they can be found ????

</lootcontainer>

 

xpath="/lootcontainers/lootcontainer[@id=40] (<item name="Generic Ammo Supply">)

 

Can someone sort this for me & just explain in a few words why & what lol, Thanks

 

EDIT Ive managed to get all the other code working without errors, BUT if you cant find the Generic Box within the loot then it would never been seen in the world....

 

Probably something like this:

 

<append xpath="/lootcontainers/lootcontainer[@id='40']" >
     <item group="GenericAmmoSupply" />
</append>

Link to comment
Share on other sites

Thanks, Appreciate the time to answer... You know how the old code give a % of if it spawned does that still happen in game now for these or do I need to add the code ?

 

Something like this ?

 

<append xpath="/lootcontainers/lootcontainer[@id=40]" >

<item group="GenericAmmoSupply" prob="0.10"/>

</append>

 

Tried your code & got this error ?

Untitled.png

 

<configs>

<append xpath="/lootcontainers/lootcontainer[@id=40]" >

<item name="Generic Ammo Supply" count="1,2" prob="0.10"/>

</append>

 

<append xpath="/lootcontainers/lootcontainer[@id=42]" >

<item name="Generic Ammo Supply" count="1,2" prob="0.10"/>

</append>

 

<append xpath="/lootcontainers/lootcontainer[@id=50]" >

<item name="Generic Ammo Supply" count="1,2" prob="0.10"/>

</append>

</configs>

 

I figured it was the Group / Item giving the error so used Item as its not a group....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...