Jump to content

set xpath trader.xml


Sarakatunga

Recommended Posts

39 minutes ago, Sarakatunga said:

Yes, if I know, I just want to lower the odds in which it appears.

 

This is what Telric is trying to tell you:

 

<setattribute xpath="/traders/trader_item_groups/trader_item_group[@name='modGunT1']/item[@name='modGunScopeSmall']" name="prob">0.05</setattribute>

 

The set command can only change attributes already in that line.  Since prob doesn't exist, nothing happens.

Link to comment
Share on other sites

On 12/15/2021 at 12:15 PM, BFT2020 said:

 

This is what Telric is trying to tell you:

 

<setattribute xpath="/traders/trader_item_groups/trader_item_group[@name='modGunT1']/item[@name='modGunScopeSmall']" name="prob">0.05</setattribute>

 

The set command can only change attributes already in that line.  Since prob doesn't exist, nothing happens.

If I have tried it and it works, thank you very much :)

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...