Ok so recently I have been seeing a number of posts on these forums that are requesting sell features in the bot, rather than salvaging unwanted items. It is actually quite simple to set this up! However you must use LootRules2 with Trinity. This can be scary at first but its really not bad at all.
Using LootRules2:
First, ensure that you have trinity enabled (comes standard with DB now)
Second, open your Demonbuddy directory and navigate to:
Here, copy and paste the following into the corresponding files, deleting everything else first. Trust me, you wont break anything despite the fact you are deleting many lines of code in some of the files. You can do this by opening the .dis files with a text editor such as notepad or, preferably, notepad++.
common.dis
legendary.dis
rare.dis
magic.dis
pickup.dis
THIS IS WHAT DETERMINES IF YOU SELL OR SALVAGE YOUR ITEMS! MOST IMPORTANT STEP
salvageSell.dis
note: for this, having the bot sell "Special" will cause your gems to be sold I believe (havent tested), and the only items it will benefit you by having it set for selling is whites. Not really worth it in my opinion, although this can be adjusted through changing of the common.dis if you so wish.
Third, open your config for trinity and navigate to the Items tab (1), and click on the pickup sub-tab labeled "pickup" (2).
You will want to change your item rules type to "File Based Script Rules" As I have done. The WARNING is there because you can configure your loot rules to salvage all legendaries, but by labeling them with [KEEP] all of our legendaries will be stashed during townruns! no need to fret.
You will also want to configure your Trinity Loot Pickup Configuration here which will act as a failsafe if the rules we have made should fail (they shouldnt).
Fourthly, you will want to set up your scoring/townruns tab. You may consider putting your settings so that if your loot rules fail, DB will not salvage your legendaries. A good example for your settings would be this:
Lastly, and almost most importantly as our rules will not operate if these are not set correctly, go to the ItemRules tab under Items and ensure that your "Use Rule Set:" is set to Soft. This just means that the bot will look for your custom rule set, as you told it to on the pickup tab by enabling "File Based Script Rules", in the Soft folder, which is where we set them!
You can also make a separate rule set in the "Hard" folder found in the same directory as your "Soft" folder, and switch between the two as needed (hardcore/ softcore)! This is usually only done when using more advanced looting profiles, which I will not get into but are actually not hard to set up either.
More resources on how to set stricter profiles/ create other rules (ex keep all 1h weapons above 1800 DPS) can be found in ItemRules2.txt located in the directory:
More in depth of how all of these rules work/ interact can be found in THIS guide by darkfriend77.
Any questions/ feedback please leave a comment! This was my first guide on here and if at least one person finds it helpful I know it was worth my time
best of luck!
Using LootRules2:
First, ensure that you have trinity enabled (comes standard with DB now)
Second, open your Demonbuddy directory and navigate to:
Code:
\Plugins\Trinity\ItemRules\Rules\soft
Here, copy and paste the following into the corresponding files, deleting everything else first. Trust me, you wont break anything despite the fact you are deleting many lines of code in some of the files. You can do this by opening the .dis files with a text editor such as notepad or, preferably, notepad++.
common.dis
Code:
[QUALITY] == "Special" -> [KEEP]
Code:
[QUALITY] == "Legendary" -> [KEEP]
Code:
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Jewelry" -> [TRASH]
Code:
[QUALITY] == "Magic" -> [TRASH]
Code:
[QUALITY] == "Legendary" -> [PICKUP]
[QUALITY] == "Rare" -> [PICKUP]
[QUALITY] == "Magic" -> [PICKUP]
[QUALITY] == "Special" -> [PICKUP]
salvageSell.dis
Code:
[QUALITY] == "Legendary" # True -> [KEEP]
[QUALITY] == "Rare" # True -> [SELL]
[QUALITY] == "Magic" # True -> [SELL]
[QUALITY] == "Special" # True -> [SALVAGE]
Third, open your config for trinity and navigate to the Items tab (1), and click on the pickup sub-tab labeled "pickup" (2).
You will want to change your item rules type to "File Based Script Rules" As I have done. The WARNING is there because you can configure your loot rules to salvage all legendaries, but by labeling them with [KEEP] all of our legendaries will be stashed during townruns! no need to fret.
You will also want to configure your Trinity Loot Pickup Configuration here which will act as a failsafe if the rules we have made should fail (they shouldnt).
Fourthly, you will want to set up your scoring/townruns tab. You may consider putting your settings so that if your loot rules fail, DB will not salvage your legendaries. A good example for your settings would be this:
Lastly, and almost most importantly as our rules will not operate if these are not set correctly, go to the ItemRules tab under Items and ensure that your "Use Rule Set:" is set to Soft. This just means that the bot will look for your custom rule set, as you told it to on the pickup tab by enabling "File Based Script Rules", in the Soft folder, which is where we set them!
You can also make a separate rule set in the "Hard" folder found in the same directory as your "Soft" folder, and switch between the two as needed (hardcore/ softcore)! This is usually only done when using more advanced looting profiles, which I will not get into but are actually not hard to set up either.
More resources on how to set stricter profiles/ create other rules (ex keep all 1h weapons above 1800 DPS) can be found in ItemRules2.txt located in the directory:
Code:
\Plugins\Trinity\ItemRules
Any questions/ feedback please leave a comment! This was my first guide on here and if at least one person finds it helpful I know it was worth my time
Last edited:






