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

[GUIDE] Selling rather than Salvaging! [Trinity - ItemRules2]

noyou

New Member
Joined
Mar 26, 2014
Messages
84
Reaction score
1
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)
UjXFaFq.png


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]
legendary.dis
Code:
[QUALITY] == "Legendary"  -> [KEEP]
rare.dis
Code:
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Jewelry" -> [TRASH]
magic.dis
Code:
[QUALITY] == "Magic" -> [TRASH]
pickup.dis
Code:
[QUALITY] == "Legendary" -> [PICKUP]
[QUALITY] == "Rare" -> [PICKUP]
[QUALITY] == "Magic" -> [PICKUP]
[QUALITY] == "Special" -> [PICKUP]
THIS IS WHAT DETERMINES IF YOU SELL OR SALVAGE YOUR ITEMS! MOST IMPORTANT STEP

salvageSell.dis
Code:
[QUALITY] == "Legendary" # True -> [KEEP]
[QUALITY] == "Rare" # True -> [SELL]
[QUALITY] == "Magic" # True -> [SELL]
[QUALITY] == "Special" # True -> [SALVAGE]
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).
7D6YZpE.png


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:
Ap7Q7VU.png


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!
Fr7VNQt.png

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
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!
 
Last edited:
So what exactly should i change in order to sell blue items only ?
 
For some reason there is no "Item Rules" next to "Scoring / TowRuns" =/
Got the newest Trinity - do I've to change some settings?

DB Release
Trinity 1.8.12

Edit: Stupid me ^^ Didn't change to "File Based Script Rules"
 
Last edited:
I'm trying to create the more advanced example that you gave and I don't quite understand.

This is what I came up with after reading the other guide
Code:
[QUALITY] == "Rare" && [ONEHAND] # [DPS] > 1800 -> [KEEP]

I'm not sure if this is correct or not
And also, which file would this line go into, I'm assuming rare.dis

Hey there, so to create a rule like this you would want to do

Code:
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" && [ONEHAND] == true # [DPS] > 1800 -> [KEEP]
and yes it would go into your rare.dis file yes :) this will over ride the rule that sells all rares as it is read first (pickup rules -> item specific rules ex common.dis/rare.dis/magic.dis/legendary.dis -> salvageSell.dis) so since it has been marked as being kept, it will not sell the item. Itemrules2 reads top to bottom and uses only the first case applicable for an item, so be sure to put your additional rules at the top of your file, above your
Code:
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" -> [TRASH]
[QUALITY] == "Rare" && [BASETYPE] == "Jewelry" -> [TRASH]
 
Thank you for this! Been looking around in trinity for ever and lost my mind that I could´t do it in there! Thank you for the information noyou!
 
does this work for keys? will it pick them up since they are legendary? or do we need a legendary special code for keys?

Will for all legendary classified items, which includes keys, leg. crafting plans, leg. crafting materials, unid legendaries and id'd legendaries! so tldr: yes :)
 
what about picking up particular white items? is it possible bot pick up and stash only specify white items?
 
It is not picking up set items... how do I config so that it would pick up set items as well?
 
Thank you for great guide. :D
 
Last edited:
My bot refuses to sell the items, it just keeps salvaging, it used to work when I just made custom rules, all of a sudden without changing anything, the bot just started salvaging, I couldn't fix it so I switched to this one. Still salvaging! driving me bananas lol. I've tried clean installs, starting from scratch etc.
 
How do I configure it to salvage all rares and/or blues? My 3rd option shows trash all rares rather than "Salvage all rares"...
 
My bot refuses to sell the items, it just keeps salvaging, it used to work when I just made custom rules, all of a sudden without changing anything, the bot just started salvaging, I couldn't fix it so I switched to this one. Still salvaging! driving me bananas lol. I've tried clean installs, starting from scratch etc.
Yeah. Mine keeps stashing half the low quality rares and the selling the other half. What determines which rares are getting stashed?
 
Yeah I have my settings exactly like yours and it salvages all the yellows and blue (i'd rather have it sell them)
 
what should i set for blues items to be salvaged ( all of em ) and all yellows sold ? i think blues are called uncommon ? but i cant find the line
 
what should i set for blues items to be salvaged ( all of em ) and all yellows sold ? i think blues are called uncommon ? but i cant find the line

On the picture above just set magic to be salvaged at all levels and leave rares (yellows) to none and in your .dis files change your magic.dis to [TRASH] instead of sell or whatever yours is, sorry if I'm wrong I'm replying on my phone
 
Back
Top