illusions Posted December 31, 2018 Share Posted December 31, 2018 I am trying create a simple Modlet to adjust the duration value' off coffee - shouldnt be hard i didnt think - but its my first go at a modlet too this is my current code, but something didnt work any pointers ? <buffs> <set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set> </buffs> Link to comment Share on other sites More sharing options...
xyth Posted December 31, 2018 Share Posted December 31, 2018 I am trying create a simple Modlet to adjust the duration value' off coffee - shouldnt be hard i didnt think - but its my first go at a modlet too this is my current code, but something didnt work any pointers ? <buffs> <set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set> </buffs> <set xpath="/buffs/buff[@name=buffCoffee]/property[@name=duration value]/@value">600</set> Link to comment Share on other sites More sharing options...
Atrophied Posted January 1, 2019 Share Posted January 1, 2019 I am trying create a simple Modlet to adjust the duration value' off coffee - shouldnt be hard i didnt think - but its my first go at a modlet too this is my current code, but something didnt work any pointers ? <buffs> <set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set> </buffs> According to the XML code <!-- Snippit of code --> <buff name="buffCoffee" name_key="buffCoffeeName" description_key="buffCoffeeDesc" icon="ui_game_symbol_coffee" tags="drug"> <stack_type value="duration"/> <duration value="180"/> <effect_group> ... I do believe the correct format is <configs> <set xpath="/buffs/buff/[@name='buffCoffee']/duration/@value">600</set> </configs> You need the full path, in this case it is /buffs/buff "name" then /duration since its a complete node within the group and its property you wish to change is named value, and in my experience, each of your xpath modlet files have to be surrounded by <configs> </configs> Link to comment Share on other sites More sharing options...
Khelldon Posted January 1, 2019 Share Posted January 1, 2019 According to the XML code ....each of your xpath modlet files have to be surrounded by <configs> </configs> It can be anything, but must be inside a node. I use my name <khelldon></khelldon> but anything you want to use works. Link to comment Share on other sites More sharing options...
illusions Posted January 2, 2019 Author Share Posted January 2, 2019 Thanks to all for your help here ... However, ive tried both code suggestions and im still only getting the buff for 5 mins which confuses me, because the default code is 180 and Ive tried mine at 600 and even tried it at 1200 what am i missing? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.