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

[Plugin] "Item Rules 2" File based scripting language!

Hey guys,
i translated my legendary.dis file to russian names. It used to work well before, but now i am not sure. I opened the DB logs and there are quite a few entries, that say:

[19:04:18.036 N] [Trinity]Translation: Wrong(): -1851710843;Сумеречная маска мемпо (Mempo)

and there are other items as well. Why is that happening? And is it actually keeping these items (provided they pass the rule check)? I can always use item codes, but i am curious.
 
I spent like 3 hours yesterday to get working pickup.dis rules, and I never succeeded in that.
So now I turn to this thread as I am no longer sure of how to do it;

Code:
[QUALITY] == "Rare" && [TWOHAND] == true -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Shield" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Quiver" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Mojo" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Shoulder" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "WizardHat" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Helm" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Belt" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Orb" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "MightyBelt" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Cloak" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "SpiritStone" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "VoodooMask" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Chest" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Legs" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Armor" && [Type] == "Bracer" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" && [Type] == "CeremonialDagger" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" && [Type] == "Wand" -> [IGNORE]
[QUALITY] == "Rare" && [BASETYPE] == "Weapon" && [Type] == "HandCrossbow" -> [IGNORE]
[QUALITY] == "Rare" && [LEVEL] >= 57 && [BASETYPE] == "Weapon" && [Type] == "Axe"
[QUALITY] == "Rare" && [LEVEL] >= 57 && [BASETYPE] == "Weapon" && [Type] == "Sword"
[QUALITY] == "Rare" && [LEVEL] >= 57 && [BASETYPE] == "Weapon" && [Type] == "Mace"
[QUALITY] == "Rare" && [LEVEL] >= 57 && [BASETYPE] == "Weapon" && [Type] == "Dagger"
[QUALITY] == "Rare" && [LEVEL] >= 60 && [BASETYPE] == "Weapon" && [Type] == "Spear"
[QUALITY] == "Rare" && [LEVEL] >= 60 && [BASETYPE] == "Weapon" && [Type] == "FistWeapon"
[QUALITY] == "Rare" && [LEVEL] >= 60 && [BASETYPE] == "Weapon" && [Type] == "MightyWeapon"
[QUALITY] == "Rare" && [LEVEL] >= 60 && [BASETYPE] == "Armor" && [Type] == "Gloves"
[QUALITY] == "Rare" && [LEVEL] >= 60 && [BASETYPE] == "Armor" && [Type] == "Boots"
[QUALITY] == "Rare" && [LEVEL] > 50 && [BASETYPE] == "Jewelry"
[QUALITY] == "Rare" -> Ignore
I put in these rules, and the bot skips everything but Jewelry.
I've tried mixing it around in all possible ways, and the closest I've come is either Only pickup rings, or Only ignore 2H-Weapons.

Some help would be appreciated on this matter.
TYPE, not Type
Hey guys,
i translated my legendary.dis file to russian names. It used to work well before, but now i am not sure. I opened the DB logs and there are quite a few entries, that say:

[19:04:18.036 N] [Trinity]Translation: Wrong(): -1851710843;Сумеречная маска мемпо (Mempo)

and there are other items as well. Why is that happening? And is it actually keeping these items (provided they pass the rule check)? I can always use item codes, but i am curious.
just ignore it, everything works well (well, at least with ITEMID). you can also check your junklog.
 
I give 10$ Donation to the one who will help me to install, im french thats why i do not understand explications.
you can use teamviewer to access my computer
thanks
 
It is possible to make mixed trash/keep rules?

for example I would add that trash rule on rings on start:

[QUALITY] == "Rare" && [TYPE] == "Ring" # [AS%] * [CRIT%] * [CRITDMG%] == 0 -> [TRASH]
[QUALITY] == "Rare" && [TYPE] == "Ring" # [MAXSTATVIT] > 49 && [DMGFACTOR] > 17
...
[QUALITY] == "Rare" && [TYPE] == "Ring" -> [TRASH]
 
only legendary names won't work out of the box, you'll have to use either russian names or [ITEMID]
 
TBH, i am not so sure about russian names any more. I renamed all the items and i get some weird translation error. I don't know whether it is working or not.
 
well, I'm getting the same error with ITEMID approach, but everything works ok.

you can buy random cheap leg, tweak its rule so that it would fit, and check if bot sells/salvages it - it takes like 5-10 min to do.
 
is darkfiend still working on this? oh well I put in a donation anyway.... I hope he continues to work on this :D
 
I know there's a methodology to test that, but TBH, i've been busy lately with other stuff. So, you say you've tested it and it works fine. In other words, if the bot finds a crit mempo and it goes to the translation fix file, it will be actually stashed and not sold.
 
I know there's a methodology to test that, but TBH, i've been busy lately with other stuff. So, you say you've tested it and it works fine. In other words, if the bot finds a crit mempo and it goes to the translation fix file, it will be actually stashed and not sold.
yes, I'm fairly sure bot will stash it. at least when picking up tomes of secrets didn't work for some weird reason, I forced picking them up with [NAME] == "Книга тайн"
They will, but you need to change an option in Trinity--items. Its named as "use items ID instead of name"
this option seems to be ignored, as I use ITEMID in my rules (which works fine) and the option is unchecked
 
ah you told about legendaries
my bot just stash all legendaries its not hard to supervise it by myself
 
is anyone having a decent custom loot rules to share i have to clean my bot everyday cause of so many crap items it picks up
 
you should donate the $10, its really worth it. You get great loot rules,access to some cool tools, and no headache!
 
Hey, can someony help me to add green, red gems and tomes of secret to my pickup rules, can't figure it out. I read that trinity should handle this, but here are my trinity settings and it doesn't pickup gems/tomes: http://i.imgur.com/ZglLANX.png

My pickup rules:
Code:
// +---------------------------------------------------------------------------+
// |  ______ _______ ______ __  __      _______ ______ 
// | |   __ \_     _|      |  |/  |    |   |   |   __ \
// | |    __/_|   |_|   ---|     <     |   |   |    __/
// | |___|  |_______|______|__|\__|    |_______|___|   
// | ++++++++++++++++++++++++++++++++++++++++++++++++++
// +---------------------------------------------------------------------------+                                                 

// +---------------------------------------------------------------------------+
// |  _______ ______ _______ ______ _______ _______ _____   
// | |     __|   __ \    ___|      |_     _|   _   |     |_ 
// | |__     |    __/    ___|   ---|_|   |_|       |       |
// | |_______|___|  |_______|______|_______|___|___|_______|
// +---------------------------------------------------------------------------+                                               

// craftingPlans on the ground have all quality normal cant decide here
//[TYPE] == "CraftingPlan" (now controlled through Trinity)

// craftingReagents like Demonic Essences (now handled through Trinity)
//[TYPE] == "CraftingReagent"

// +---------------------------------------------------------------------------+
// |  _____   _______ _______ _______ _______ _____  _______ ______ ___ ___ 
// | |     |_|    ___|     __|    ___|    |  |     \|   _   |   __ \   |   |
// | |       |    ___|    |  |    ___|       |  --  |       |      <\     / 
// | |_______|_______|_______|_______|__|____|_____/|___|___|___|__| |___|                                                                     
// +---------------------------------------------------------------------------+
[QUALITY] == "Legendary"  && [LEVEL] > 60
//ignore rule               
[QUALITY] == "Legendary" && [LEVEL] <= 60 -> [IGNORE]

// +--------------------------------------------------------------------------------------+
// |  ______ _______ ______ _______ 
// | |   __ \   _   |   __ \    ___|
// | |      <       |      <    ___|
// | |___|__|___|___|___|__|_______|                     
// +--------------------------------------------------------------------------------------+
[QUALITY] == "Rare"  && [LEVEL] > 61  && [BASETYPE] == "Weapon"
//ignore rule
[QUALITY] == "Rare"  && [LEVEL] <= 61 && [BASETYPE] == "Weapon" -> [IGNORE]

[QUALITY] == "Rare"  && [LEVEL] > 61  && [BASETYPE] == "Armor" && [TYPE] != "Bracer" && [TYPE] != "Shoulder"
[QUALITY] == "Rare"  && [LEVEL] > 61  && [BASETYPE] == "Armor" && [TYPE] == "Gloves"
//ignore rule
[QUALITY] == "Rare"  && [LEVEL] <= 63 && [BASETYPE] == "Armor" && ([TYPE] == "Bracer" || [TYPE] == "Shoulder") -> [IGNORE]
[QUALITY] == "Rare"  && [LEVEL] <= 61 && [BASETYPE] == "Armor"  -> [IGNORE]

[QUALITY] == "Rare"  && [LEVEL] >= 61 && [BASETYPE] == "Jewelry"
//ignore rule
[QUALITY] == "Rare"  && [LEVEL] <= 60 && [BASETYPE] == "Jewelry"-> [IGNORE]

// bugged rare misc items like followerspecial and polearm
[QUALITY] == "Rare"  && [LEVEL] > 61 && [BASETYPE] == "Misc"
//ignore rule
[QUALITY] == "Rare"  && [LEVEL] <= 61 && [BASETYPE] == "Misc" -> [IGNORE]

// +---------------------------------------------------------------------------+
// |  _______ _______ _______ _______ ______ 
// | |   |   |   _   |     __|_     _|      |
// | |       |       |    |  |_|   |_|   ---|
// | |__|_|__|___|___|_______|_______|______|                                                                                                   
// +---------------------------------------------------------------------------+
//ignore rule
[QUALITY] == "Magic" -> [IGNORE]
 
Back
Top