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

Item Rules QuickStart Guide

Hi Apoc,

Can you add "Bonus to Gold/Globe radius" ("Increases gold and health pickup by X yards") as a stat?

thanks!
 
Must admit I've had a few issues getting mutliple stats to work in one rule as mentioned by leU. I spent about 30 mins creating a loot rule with stuff like:

<ItemRule itemBaseType="Armor" description="Rare armor with Strength">
<StatRules>
<Rule stat="Strength" minValue="60" stat="Vitality" minValue="60" stat="ResistAll" minValue="60" quality="Rare4" />
</StatRules>
</ItemRule>

Soon as I started up the bot it stopped picking up anything at all. So I removed all lines with multiple stats in like the above and it started working again. I then just added one rule for piece of armour with 100 dex / 20 GF and it basically stopped working again so not to sure what is going on...

99dsimonp could try testing one out to see if it works for you?
 
I have a question. What if I want to sell all magic and yellow items and only keep legendarys ?

Should I set it up this way:
Category ruleType="Sell">
<ItemRule description="Sell Everything">
<StatRules>
<Rule quality="Magic1" />
<Rule quality="Rare1" />
<Rule quality="Rare2" />
<Rule quality="Rare3" />
</StatRules>
</ItemRule>
</Category>
Because legendarys count as "Rare4" ?
 
@spexXx

No mate, you just need to set it correctly under the keep and sell priorities. Assuming your using a modified default script you'll see 3 different catagories that go in this order Pickup>Keep>Sell. So the rule will First check to see if you want to pick it up, then see if you want to keep it and then finally sell everything thats left.

So you'll want somthing like this:

Code:
<?xml version="1.0" encoding="utf-8" ?>

<ItemRules name="Default Item Rules" useRoundedValues="true">
  <!-- The order in which item rules are evaluated. Typically, this is fine for almost all rule sets. 
  However, you may want to switch things around sometimes if you want to force-sell things that may match keep rules. -->
  <Priority priority1="Keep" priority2="Salvage" priority3="Sell" />

  <Categories>
    <Category ruleType="PickUp">

      <!-- Pick up all magic+ items -->
      <ItemRule>
        <StatRules>
          <Rule quality="Magic1" />
        </StatRules>
      </ItemRule>

      <!-- Gold -->
      <ItemRule itemName="Gold" stack="100" />

      <!-- Gems -->
      <ItemRule itemName="*Flawless Square Ruby*" stack="1" />
      <ItemRule itemName="*Flawless Square Emerald*" stack="1" />
      <ItemRule itemName="*Flawless Square Topaz*" stack="1" />
      <ItemRule itemName="*Flawless Square Amethyst*" stack="1" />

      <!-- Pick up all pages and tomes, blacksmithing/jewelcrafting -->
      <ItemRule itemName="Page of*" stack="1" />
      <ItemRule itemName="Tome of*" stack="1" />

      <!-- Health potions -->
      <ItemRule itemName="*Mythic Health Potion*" stack="1" />

    </Category>

    <Category ruleType="Keep">

      <!-- Keep legendaries, regardless of stats. -->
      <ItemRule ruleType="Keep" description="Gold Stuff">
        <StatRules>
          <Rule quality="Legendary" />
        </StatRules>
      </ItemRule>

    </Category>

    <Category ruleType="Sell">

      <ItemRule description="Sell everything left over">
        <StatRules>
          <Rule quality="Magic1" />
        </StatRules>
      </ItemRule>

    </Category>
    
  </Categories>

So under the keep catagory it'll see you want just legendaries and stash them, it'll then move onto sell any blues/yellows left over.
 
Last edited:
Must admit I've had a few issues getting mutliple stats to work in one rule as mentioned by leU. I spent about 30 mins creating a loot rule with stuff like:

<ItemRule itemBaseType="Armor" description="Rare armor with Strength">
<StatRules>
<Rule stat="Strength" minValue="60" stat="Vitality" minValue="60" stat="ResistAll" minValue="60" quality="Rare4" />
</StatRules>
</ItemRule>

Soon as I started up the bot it stopped picking up anything at all. So I removed all lines with multiple stats in like the above and it started working again. I then just added one rule for piece of armour with 100 dex / 20 GF and it basically stopped working again so not to sure what is going on...

99dsimonp could try testing one out to see if it works for you?

Yea, combining STATS to filter shitz seems to be broken, whether i combine STATS on a rule in my filter file, that file wont get loaded by DB at all, since i think it identifies as a bogus file and so does not load it at all.

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="60" stat="Vitality" minValue="60" stat="ResistAll" minValue="60" />
</StatRules>
</ItemRule>

Can we please get a confirmation from the staff if this is a bug or if we arent doing it right?

Do we need to add a logical operator btw the stats? (Going to test)

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="60" && stat="Vitality" minValue="60" && stat="ResistAll" minValue="60" />
</StatRules>
</ItemRule>

edit,

tried this and is not working.

Code:
<?xml version="1.0" encoding="utf-8" ?>

<ItemRules name="Default Item Rules" useRoundedValues="true">

  <Priority priority1="Keep" priority2="Salvage" priority3="Sell" />

	<Categories>
		<Category ruleType="PickUp">
      
		<ItemRule>
			<StatRules>
				<Rule quality="Magic1" />
			</StatRules>
		</ItemRule>

		<ItemRule itemName="Gold" stack="250" />
      
		<ItemRule itemName="Page of*" stack="1" />
		<ItemRule itemName="Tome of*" stack="1" />
      
		<ItemRule itemName="*Ruby*" stack="1" />
		<ItemRule itemName="*Emerald*" stack="1" />
		<ItemRule itemName="*Topaz*" stack="1" />
		<ItemRule itemName="*Amethyst*" stack="1" />

		<ItemRule itemName="*Health Potion*" stack="1" />
	</Category>

	<Category ruleType="Keep">
		<ItemRule ruleType="Keep" description="Legendary">
			<StatRules>
				<Rule quality="Legendary" />
			</StatRules>
		</ItemRule>
		
		<ItemRule itemBaseType="Armor" description="Armor - good combos">
			<StatRules>
				<Rule stat="Strength" minValue="30" && stat="Vitality" minValue="30" && stat="ResistAll" minValue="30" />
				<Rule stat="GoldFind" minValue="15" && stat="MagicFind" minValue="15" />
			</StatRules>
		</ItemRule>
	</Category>
      
	<Category ruleType="Salvage">
		<ItemRule ruleType="Salvage" description="For crafting components">
			<StatRules>
				<Rule quality="Rare4" />
			</StatRules>
		</ItemRule>
	</Category>

    <Category ruleType="Sell">
		<ItemRule description="Sell Everything">
			<StatRules>
				<Rule quality="Magic1" />
			</StatRules>
		</ItemRule>
    </Category>
	
	</Categories>  
</ItemRules>

edit2,

did not work :(

if i use the above rules, i dont get this on starting the bot and the bot does not loot at all:

Code:
[15:29:55.249 N] [Items] Loaded Item Rules: Default Item Rules

i just get this line when i run the bot with the default rules, which i would believe my profile for some reason is bogus, that is why is not being loaded.

edit3,

went back to this and its looting again, wondering if the bot really respecs the weapon rules thou (since they are hard to track!)

Code:
<?xml version="1.0" encoding="utf-8" ?>

<ItemRules name="Default Item Rules" useRoundedValues="true">

	<Priority priority1="Keep" priority2="Salvage" priority3="Sell" />

	<Categories>
		<Category ruleType="PickUp">
      
			<ItemRule>
				<StatRules>
					<Rule quality="Magic1" />
				</StatRules>
			</ItemRule>

			<ItemRule itemName="Gold" stack="250" />
      
			<ItemRule itemName="Page of*" stack="1" />
			<ItemRule itemName="Tome of*" stack="1" />
      
			<ItemRule itemName="*Ruby*" stack="1" />
			<ItemRule itemName="*Emerald*" stack="1" />
			<ItemRule itemName="*Topaz*" stack="1" />
			<ItemRule itemName="*Amethyst*" stack="1" />

			<ItemRule itemName="*Health Potion*" stack="1" />
		</Category>

		<Category ruleType="Keep">
      
			<ItemRule itemBaseType="Weapon" twoHanded="true" description="High DPS 2h Weapons">
				<StatRules>
					<Rule stat="DPS" minValue="1200" quality="Magic1" />
					<Rule stat="DPS" minValue="1100" quality="Rare4" />
				</StatRules>
			</ItemRule>

			<ItemRule itemBaseType="Weapon" twoHanded="false" description="High DPS 1h Weapons">
				<StatRules>
					<Rule stat="DPS" minValue="1000" quality="Magic1" />
					<Rule stat="DPS" minValue="900" quality="Rare4" />
				</StatRules>
			</ItemRule>

			<ItemRule itemBaseType="Armor" description="Rare armor">
				<StatRules>
					<Rule stat="Intelligence" minValue="200" quality="Rare4" />
					<Rule stat="Vitality" minValue="200" quality="Rare4" />
					<Rule stat="Dexterity" minValue="200" quality="Rare4" />
					<Rule stat="Strength" minValue="200" quality="Rare4" />
				</StatRules>
			</ItemRule>
      
			<ItemRule itemBaseType="Jewelry" description="Rare jewelry">
				<StatRules>
					<Rule stat="Intelligence" minValue="150" quality="Rare4" />
					<Rule stat="Vitality" minValue="150" quality="Rare4" />
					<Rule stat="Dexterity" minValue="150" quality="Rare4" />
					<Rule stat="Strength" minValue="150" quality="Rare4" />
				</StatRules>
			</ItemRule>

			<ItemRule ruleType="Keep" description="Legendary">
				<StatRules>
					<Rule quality="Legendary" />
				</StatRules>
			</ItemRule>
      
		</Category>
	
		<Category ruleType="Salvage">
			<ItemRule description="Salvage for crafting components">
				<StatRules>
					<Rule quality="Rare4" />
				</StatRules>
			</ItemRule>
		</Category>	

		<Category ruleType="Sell">
			<ItemRule description="Sell Everything">
				<StatRules>
					<Rule quality="Magic1" />
				</StatRules>
			</ItemRule>
		</Category>
    
	</Categories>

</ItemRules>
 
Last edited:
I am posting this again:

I have a very weird problem but it is reproducable.

Everytime i edit the standard rule file or replace it, the bot just doesn't work anymore. He stands in front of a chest or anything doing nothing. If i replace the file again with the original untouched file, the bot runs absolutely perfect. (azmodan runs)
 
I am posting this again:

I have a very weird problem but it is reproducable.

Everytime i edit the standard rule file or replace it, the bot just doesn't work anymore. He stands in front of a chest or anything doing nothing. If i replace the file again with the original untouched file, the bot runs absolutely perfect. (azmodan runs)

Can you post a copy of what you modified in the rule file last time it didn't work and how do you usually modify it (notepad or?)
 
Yea, combining STATS to filter shitz seems to be broken, whether i combine STATS on a rule in my filter file, that file wont get loaded by DB at all, since i think it identifies as a bogus file and so does not load it at all.

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="60" stat="Vitality" minValue="60" stat="ResistAll" minValue="60" />
</StatRules>
</ItemRule>

You'l want to do the following:

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="60" />
   <Rule stat="Vitality" minValue="60" />
   <Rule stat="ResistAll" minValue="60"  />
</StatRules>
</ItemRule>
 
Can you post a copy of what you modified in the rule file last time it didn't work and how do you usually modify it (notepad or?)

yes i'm using notepad. Just directly save it again so it has the correct file type.

Changed standard value to "Legendary"
<Category ruleType="Keep">

<!-- Keep legendaries, regardless of stats. -->
<ItemRule ruleType="Keep" description="Gold Stuff">
<StatRules>
<Rule quality="Legendary" />
</StatRules>
</ItemRule>
</Category>

Changed standard value to "Rare"

<Category ruleType="Sell">

<ItemRule description="Sell everything left over">
<StatRules>
<Rule quality="Rare" />
</StatRules>
</ItemRule>

that's all i did inside the standard rule file. Nothing else has been changed.
 
i just want the bot piclkup rar rings and amulets, how can i do that? thx
 
Thank you Apoc for showing up.

So, within the "StatRules" each "Rule" is connected to each other as an "AND", are you sure about this?

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="60" />
   <Rule stat="Vitality" minValue="60" />
   <Rule stat="ResistAll" minValue="60"  />
</StatRules>
</ItemRule>

So that, the code above would mean, DB would only loot armors that has STR>60 AND VIT>60 AND RESISTALL>60

If it is so, isn't this StatRules a bit bogus?

Code:
			<ItemRule itemBaseType="Weapon" twoHanded="true" description="High DPS 2h Weapons">
				<StatRules>
					<Rule stat="DPS" minValue="1200" quality="Magic1" />
					<Rule stat="DPS" minValue="1100" quality="Rare4" />
				</StatRules>
			</ItemRule>

So that, a MAGIC "twoHanded" with 1300 DPS won't get looted, bcse it isnt of "Rare4" quality?
or that, a RARE "twoHanded" with 1150 DPS won't get looted, bcse it hasnt the minimum of "1200" DPS?

The stat values overlap each other, meaning that ONLY RARES with minimum of 1200 DPS would get looted?
 
Last edited:
@DaSoul

Ahh ok mate looks good, is that a direct copy/paste of your changes? if so theres a small mistake with your sell catagory under item quality - you have it as Rare but it should be Rare4. If you have just one spelling mistake in the wrong place or a space missing under any of your rules it will stop the whole thing working. I've pasted a couple lines from mine that you should be able to add. Let me know if it helps.

Though if you set it to Rare4 it will keep all the blue crap, really you want it set to Magic1 so that it basically sells any magic and rare items left over.

Code:
    <Category ruleType="Keep">

      <!-- Keep Legendaries regardless of stats -->
      <ItemRule ruleType="Keep" description="Gold Stuff">
        <StatRules>
          <Rule quality="Legendary" />
        </StatRules>
      </ItemRule>
      
    </Category>

    <Category ruleType="Sell">

      <ItemRule description="Crap I don't want">
        <StatRules>
          <Rule quality="Magic1" />
        </StatRules>
      </ItemRule>
    </Category>
    
  </Categories>

Or you can just grab what you need from my rule file:

View attachment DefaultItemRules.xml
 
Last edited:
@Apoc

I did try it the way you mentioned with the following set up:

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="15" />
   <Rule stat="Vitality" minValue="15" />
   <Rule stat="GoldFind" minValue="5" />
</StatRules>
</ItemRule>

However I had the values much lower to increase the chances of it keeping an item that matches the above - it ended up collecting a whole bunch of stuff that had 1 or 2 of the above mods on and not just items with all 3 mods.
 
@Apoc

I did try it the way you mentioned with the following set up:

Code:
<ItemRule itemBaseType="Armor" description="Rare armor - BARB Combo">
<StatRules>
   <Rule stat="Strength" minValue="15" />
   <Rule stat="Vitality" minValue="15" />
   <Rule stat="GoldFind" minValue="5" />
</StatRules>
</ItemRule>

However I had the values much lower to increase the chances of it keeping an item that matches the above - it ended up collecting a whole bunch of stuff that had 1 or 2 of the above mods on and not just items with all 3 mods.

Yes, i just tried the same, and is not working the way we want. A way to only loot items that has a specific stats combination.
 
@DaSoul

Ahh ok mate looks good, is that a direct copy/paste of your changes? if so theres a small mistake with your sell catagory under item quality - you have it as Rare but it should be Rare4. If you have just one spelling mistake in the wrong place or a space missing under any of your rules it will stop the whole thing working. I've pasted a couple lines from mine that you should be able to add. Let me know if it helps.

Though if you set it to Rare4 it will keep all the blue crap, really you want it set to Magic1 so that it basically sells any magic and rare items left over.

Code:
    <Category ruleType="Keep">

      <!-- Keep Legendaries regardless of stats -->
      <ItemRule ruleType="Keep" description="Gold Stuff">
        <StatRules>
          <Rule quality="Legendary" />
        </StatRules>
      </ItemRule>
      
    </Category>

    <Category ruleType="Sell">

      <ItemRule description="Crap I don't want">
        <StatRules>
          <Rule quality="Magic1" />
        </StatRules>
      </ItemRule>
    </Category>
    
  </Categories>

Or you can just grab what you need from my rule file:

View attachment 43546

I even tested it with Rare4, or downloaded the rule xml from the first page here. But i will test your file. Thanks you!
 
I even tested it with Rare4, or downloaded the rule xml from the first page here. But i will test your file. Thanks you!

Yup my one has a salvage rule that needs to be change if you do decide to use it, it was set a bit below as I forgot Item level is different in game -

Code:
    <Category ruleType="Salvage">

      <!-- Salvage level 60 gear for matts -->
      <ItemRule description="Salvage level 60 gear">
        <StatRules>
          <Rule stat="Level" minValue="61" quality="Magic1" />
        </StatRules>
      </ItemRule>

    </Category>

    <Category ruleType="Sell">

      <ItemRule description="Sell Everything">
        <StatRules>
          <Rule stat="Level" maxValue="60" quality="Magic1" />
        </StatRules>
      </ItemRule>
    </Category>

Change it to match these values if it works for you. So it will actually only salvage level 60 items and sell anything lower.
 
Back
Top