What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Exe] ItemRules GUI

jmac

New Member
Joined
Jun 17, 2012
Messages
25
Reaction score
0
Hello all, this is the first version of ItemRules GUI for Demonbuddy.

Currently, it allows for fast creation of items with StatRules used inside an ItemRules.xml.

*Maybe in the future, it will read in an xml rule set and allow for editing inside the application.

6ztXN.webp

INSTRUCTIONS...

Ok I want to make an Item Rule for Keep, any armor piece that has int > 100, vit > 50, and mf > 15.

Step 1. Click "New ItemRule" to reset the form / make a new ItemRule
Step 2. Check "By Type" and in the drop down box select Armor
Step 3. Optional... Describe the ItemRule you are making "Rare with int/vit/mf"
Step 4. Add stat rules to that item by clicking "New StatRule"

Step 5. Select "Rare4" and Choose Intelligence from the Stat drop down box and type 100 for minValue.

Repeat steps 4-5 changing Intelligence for Vit/MF and minValue to 50/15.

Step 6. After all StatRules are made, click "Generate XML" and then "Copy to Clipboard"

You should have a block of text like this

Code:
<ItemRule itembaseType="Armor" twoHanded="false" description="Rare with int/vit/mf"
	<StatRules>
		<Rule stat="Intelligence" minValue="100" quality="Rare4" />
		<Rule stat="Vitality" minValue="50" quality="Rare4" />
		<Rule stat="MagicFind" minValue="15" quality="Rare4" />
	</StatRules> 
</ItemRules>

Now if you want to keep this item, find the area inside your .xml rule set that looks like this
Code:
<Category ruleType="Keep">
and paste the new xml code after that line.

Enjoy.

*edit added attachments

*edit 2

--Version 1.1 is out.
* fixed syntax errors
* added remove stat button
* added max value for rule option
* added an icon
 

Attachments

Last edited:
If this works, you're a god. I spent hours trying to code one myself (my coding skills are very lackluster), and just couldn't get it to work right.
 
Links to outside sources are not accepted here.
With that said - I love the app.
<3
 
I was about to do this myself. I'm not home, but from your description there are a few functions I would like to add, so if you don't mind, I'll try to keep going from where you stopped. I'll take a look at the source once I'm home.

If it works, great job!
 
Hi, thanks so much for this. I wanted to point out a couple suggestions. A remove button for statrules would really help. Would save a lot of time when plugging in rules. Instead of making a new rule each time just add say 100 dex ammulets once, and then add and remove things like 3 ias or 15 crit. Ammulets don't have a life on hit option on the dropdown too.

Thanks again though, awesome job!

edit: just noticed life on hit and steal weren't in the lootrules attributes list :(
 
Last edited:
If you put in rare4, will it keep all rares or do you have to do a new stat rule for each teir rare?
 
If you put in rare4, will it keep all rares or do you have to do a new stat rule for each teir rare?
The item quality is the MINIMUM, so if you put Magic1, it will count all the way up to rares and legendaries. Rare4 would be all rares and above.
 
Hi, thanks so much for this. I wanted to point out a couple suggestions. A remove button for statrules would really help. Would save a lot of time when plugging in rules. Instead of making a new rule each time just add say 100 dex ammulets once, and then add and remove things like 3 ias or 15 crit. Ammulets don't have a life on hit option on the dropdown too.

Thanks again though, awesome job!

edit: just noticed life on hit and steal weren't in the lootrules attributes list :(

Thanks for the suggestions, yes removal sounds great. After using it myself throughout the day today, I've also prepared some improvements so stay tuned.
 
Code:
<ItemRule itembaseType="Armor" twoHanded="false" description="Rare with int/vit/mf"
	<StatRules>
		<Rule stat="Intelligence" minValue="100" quality="Rare4" />
		<Rule stat="Vitality" minValue="50" quality="Rare4" />
		<Rule stat="MagicFind" minValue="15" quality="Rare4" />
	</StatRules> 
</ItemRules>

^
Is what you say it does

Code:
<ItemRule itembaseType="Armor" twoHanded="false" description="TEST" [B][COLOR="#FF0000"]/[/COLOR][/B]>
	<StatRules>
		<Rule stat="ArmorBonus" minValue="90" quality="Magic1" />
		<Rule stat="ResistFire" minValue="40" quality="Magic1" />
	</StatRules> 
</ItemRule[B][COLOR="#FF0000"]s[/COLOR][/B]>

^
Is what it popped out for one of my tests, the two things highlighted in red need to be removed for the code to even be accepted by DB, I'm testing it now.


Edit1: Still vendored fucking everything... sigh
 
Last edited:
v1.1 released...

So I grabbed a request from the request section, for an example

Keep/Stash
-All Rare Rings/Amulets regardless of ilvl
-All OTHER rare items ilvl 60 and above

So I fire up IR-GUI and with a few simple clicks I get this to copy/paste under Keep in my rule set.xml

<ItemRule itembaseType="Amulet" twoHanded="false" description="Rare Amu's any iLvl" >
<StatRules>
<Rule stat="Level" minValue="1" maxValue="63" quality="Rare4" />
</StatRules>
</ItemRule>
<ItemRule itembaseType="Ring" twoHanded="false" description="Rare Rings any iLvl" >
<StatRules>
<Rule stat="Level" minValue="1" maxValue="63" quality="Rare4" />
</StatRules>
</ItemRule>
<ItemRule itembaseType="Armor" twoHanded="false" description="Armor ilvl 60+" >
<StatRules>
<Rule stat="Level" minValue="60" maxValue="63" quality="Rare4" />
</StatRules>
</ItemRule>
<ItemRule itembaseType="Weapon" twoHanded="false" description="Weapons ilvl 60+" >
<StatRules>
<Rule stat="Level" minValue="60" maxValue="63" quality="Rare4" />
</StatRules>
</ItemRule>
<ItemRule itembaseType="Weapon" twoHanded="true" description="Weapons ilvl 60+" >
<StatRules>
<Rule stat="Level" minValue="60" maxValue="63" quality="Rare4" />
</StatRules>
</ItemRule>
 
DB salvaged some Legebdary item with this plug in...Dont think that was suppose to happen
 
Back
Top