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

[Plugin Addon] "Item Rules" with a file based scripting language

So just to verify.. Say I don't want it to keep any magic items, would I change the code like this?

Code:
// keep all magic items
// this is a saftey line ... as long it isn't removed it will keep all items
// specifyed by the rule ... the action of commenting it out
// will apply all following rules ... this set of rules is no where of complete
//[QUALITY] == Magic # [1] == 1 # [KEEP]

this rule if not commented out would keep every magic item ...
 
this rule if not commented out would keep every magic item ...

Ok well currently the profile is setup like this :

// keep all magic items
// this is a saftey line ... as long it isn't removed it will keep all items
// specifyed by the rule ... the action of commenting it out
// will apply all following rules ... this set of rules is no where of complete
[QUALITY] == Magic # [1] == 1 # [KEEP]

and it's picking up every single item and stashing it... I don't understand why. :/

So let's take the "Rare" section for example... If I comment out this line from :

Code:
[QUALITY] == Rare # [1] == 1 # [KEEP]

to this :

Code:
//[QUALITY] == Rare # [1] == 1 # [KEEP]

Than it will go on to the next area of quality = and decide if it keeps it or moves on from there?

Like everything below that line here :

Code:
// will apply all following rules ... this set of rules is no where of complete
[QUALITY] == Rare # [1] == 1 # [KEEP]

// +--------------------------------------------------------------------------------------+ 
// | WEAPONS
// +--------------------------------------------------------------------------------------+ 

// +--- Weapons One handed
[QUALITY] == Rare && [BASETYPE] == Weapon && [ONEHAND] == true # [DPS] > 700 && [CRITDMG%] >= 50 && [SOCKETS] > 0 && ([LOH] >= 700 || [LS%] > 0) # [KEEP]
[QUALITY] == Rare && [BASETYPE] == Weapon && [ONEHAND] == true # [DPS] > 800 && [CRITDMG%] >= 50 && [SOCKETS] > 0 # [KEEP]
[QUALITY] == Rare && [BASETYPE] == Weapon && [ONEHAND] == true # [DPS] > 700 && [MAXSTATVIT] > 200 && ([CRITDMG%] > 50 || [LOH] > 300) && [SOCKETS] > 0
[QUALITY] == Rare && [BASETYPE] == Weapon && [ONEHAND] == true # [DPS] > 900 && ([SOCKETS] > 0 || [CRITDMG%] > 50 ||  [LOH] > 300)
[QUALITY] == Rare && [BASETYPE] == Weapon && [ONEHAND] == true # [DPS] > 1000

// +--- Weapons Two handed
[QUALITY] == Rare && [BASETYPE] == Weapon && [TWOHAND] == true # [DPS] >= 1200 && [CRITDMG%] >= 100 && [SOCKETS] > 0 # [KEEP]
[QUALITY] == Rare && [BASETYPE] == Weapon && [TWOHAND] == true # [DPS] >= 1100 && [CRITDMG%] >= 100 && [SOCKETS] > 0 && ([LOH] >= 700 || [LS%] > 0) # [KEEP]
[QUALITY] == Rare && [BASETYPE] == Weapon && [TWOHAND] == true # [DPS] > 1000 && [MAXSTATVIT] > 200 && ([CRITDMG%] > 50 || [LOH] > 600) && [SOCKETS] > 0
[QUALITY] == Rare && [BASETYPE] == Weapon # [1] == 1 # [TRASH]

// +--------------------------------------------------------------------------------------+ 
// | ARMOR
// +--------------------------------------------------------------------------------------+ 

// +--- Gloves
[QUALITY] == Rare && [TYPE] == Gloves # [MAXSTAT] >= 100 && ([CRITDMG%] > 0 || [AS%] > 0 || [CRIT%] > 0) && [ALLRES] >= 60 && [VIT] >= 60 # [KEEP]
[QUALITY] == Rare && [TYPE] == Gloves # [MAXSTAT] >= 100 && [CRITDMG%] > 0 && [CRIT%] > 0 && [ALLRES] >= 40 # [KEEP]
[QUALITY] == Rare && [TYPE] == Gloves # [MAXSTAT] >= 100 && [AS%] > 0 && [CRIT%] > 0 && [ALLRES] >= 40 # [KEEP]
[QUALITY] == Rare && [TYPE] == Gloves # [CRITDMG%] > 0 && [CRIT%] > 0 && [AS%] > 0 # [KEEP]
[QUALITY] == Rare && [TYPE] == Gloves # [MAXSTAT] >= 100 && [CRITDMG%] > 0 && [AS%] > 0 && [ALLRES] >= 40 # [KEEP]

// +--- Boots
[QUALITY] == Rare && [TYPE] == Boots # [DEX] >= 240 && [MS%] >= 10 && [VIT] >= 60 && [ALLRES] >= 60 # [KEEP]
[QUALITY] == Rare && [TYPE] == Boots # ([STR] >= 150 || [INT] >= 150) && [MS%] >= 10 && [VIT] >= 60 && [ALLRES] >= 60 # [KEEP]

// +--- Chests
[QUALITY] == Rare && [TYPE] == Chest # [MAXSTAT] >= 70 && [SOCKETS] >= 2 && [VIT] >= 60 && [ALLRES] >= 60 # [KEEP]
[QUALITY] == Rare && [TYPE] == Chest # [MAXSTAT] >= 100 && [VIT] >= 150 && [ALLRES] >= 60 # [KEEP]
[QUALITY] == Rare && [TYPE] == Chest # [MAXSTAT] >= 100 && [VIT] >= 60 && [ALLRES] >= 60 && [LIFE%] >= 9 # [KEEP]

// +--- Shoulders
[QUALITY] == Rare && [TYPE] == Shoulder # ([DEX] >= 150 || [STR] >= 200 || [INT] >= 150) && ([VIT] >= 60 || [LIFE%] >= 9) && [ALLRES] >= 60 # [KEEP]


+++++++++ down more
 
Last edited:
I tried this, but I came back to a stash filled with random rares, inventory too. It basically kept everything. Does this come with a preconfigured setup, or must I configure which items to keep first? I'd be nice with a pre-configuration of sorts, keeping standard good items.
 
Im unsure .. but has one of u read the first page???

// +--------------------------------------------------------------------------------------+
// | __| | | \ \ | __| __| | _ \ __|
// | ( __ | _ \ . | (_ | _| | ( | (_ |
// | \___| _| _| _/ _\ _|\_| \___| ___| ____| \___/ \___|
// +--------------------------------------------------------------------------------------+
// | 09a:
// | - merged with unified
// | - put the source on svn
// | - added [NAME] for check names ... [NAME] == Andariel's Visage (untested)
// | - added [TOTRES] to check summ of all resists single and allres together
// | - added config.dis and [FILE] to add diffrent item rule files
// | - changed "[QUALITY]" to check for rare and magic instet of rare456 and magic456
// | - added legendary weapons fixed major issue with rare.dis
// | - added additional syntax control watch out for bad lines in ur log
// | - fixed many rules ...
// | - at the top of each rule file ([quality].dis) there is one rule to keep everything
// | to start rules kicking remove or comment that line out!!!

// +--------------------------------------------------------------------------------------+

if in the following files... if the first rule isn't commented out with "//" ... then ur bot will keep each item of the specified quality ...

legendary.dis
//[QUALITY] == Legendary || [QUALITY] == Special # [1] == 1 # [KEEP]

rare.dis
//[QUALITY] == Rare # [1] == 1 # [KEEP]

magic.dis
//[QUALITY] == Magic # [1] == 1 # [KEEP]

i really can't make it more clear ... if u don't understand this after that post ...

plz keep playing with the barbie sitting right next of ur dad's computer
 
Last edited:
you really should remove that line by default. i had trouble with it too when it was first updated to that
 
Okay, I get that. That makes sense, just didn't at first. No offense, but the English ain't exactly proper, that's why I misunderstood it. Your work here is damn proper though!
 
Code:
// +--------------------------------------------------------------------------------------+
// |   __|  |  |    \     \ |   __|  __|  |      _ \   __| 
// |  (     __ |   _ \   .  |  (_ |  _|   |     (   | (_ | 
// | \___| _| _| _/  _\ _|\_| \___| ___| ____| \___/ \___|                                                        
// +--------------------------------------------------------------------------------------+
// | 1.0a:
// | - added [DMGFACTOR] = attackspeed + critchance + (critdmg / 10)
// | - added [STRVIT], [DEXVIT], [INTVIT] ... for more flexibility 
// |   ex. item has 6% crit, 50% critdamage, 7% as ... DMGFACTOR would be .. = 18
// | - added all legendary rules in the higher 60's level range .. (feedback appreciated)
// +--------------------------------------------------------------------------------------+

DOWNLOAD


i removed ... the keep everything again ... to prevent explaining ... more then improving my programm ...
 
Last edited:
I appreciate the work you've done, I honestly just failed to understand the way you were explaining it, sorry.
 
Thanks in advance, but I have a couple questions. I would like to still pick up magic items lvl 60+ and sell them all, and I would like to pick up rares lvl 60+ to sell and/or keep based on the rules you have defined, and also I would like to pick up and keep all legendary items to sort through by hand. What changes will I have to make to the download to accomplish this?
 
Thanks in advance, but I have a couple questions. I would like to still pick up magic items lvl 60+ and sell them all, and I would like to pick up rares lvl 60+ to sell and/or keep based on the rules you have defined, and also I would like to pick up and keep all legendary items to sort through by hand. What changes will I have to make to the download to accomplish this?

to keep all Legendarys change in legendary.dis
this line
Code:
//[QUALITY] == Legendary || [QUALITY] == Special # [1] == 1 # [KEEP]
to
Code:
[QUALITY] == Legendary || [QUALITY] == Special # [1] == 1 # [KEEP]

the pickup ... isn't affected by itemrules by now ... its still configured in Giles GUI ...
 
Thanks in advance, but I have a couple questions. I would like to still pick up magic items lvl 60+ and sell them all, and I would like to pick up rares lvl 60+ to sell and/or keep based on the rules you have defined, and also I would like to pick up and keep all legendary items to sort through by hand. What changes will I have to make to the download to accomplish this?
In the magic.dis you need only 1 line
[QUALITY] == Magic # [1] == 1 # [TRASH]
In Legendary.dis only one line also:
[QUALITY] == Legendary # [1] == 1 # [KEEP]
In rare.dis you need to make sure there is no line like those in the start and you have a bunch of specific rules to sort through stuff (should probably just leave default current file)
 
If I am already using Unified's GilesPlugins, what do I need to do to get this working along side it? I am not very good at working with code as I am not experienced in it, but it seems like I will have to go into the files and manually add/subtract my loot rules to it.
 
If I am already using Unified's GilesPlugins, what do I need to do to get this working along side it? I am not very good at working with code as I am not experienced in it, but it seems like I will have to go into the files and manually add/subtract my loot rules to it.

TrinityCustom_10a is build up on the latest .. UnifiedVersion version ... so u can .. just override the plugin

check http://www.thebuddyforum.com/demonb...ied-gilesplugins-unnoficial-updates-file.html at the bottom u see the link to our work
 
are you fckng kidding me?

Armor - SpiritStone 'Inna's Radiance'. Score = 28594 {legendary item}
Dexterity=144. Vitality=79. Life Regen=102. Sockets=1. Crit Chance %=6. +Highest Single Resist=50


Offhand - Mojo 'Manajuma's Gory Fetch'. Score = 19019 {legendary item}
Intelligence=178. Life %=12. +Min Damage=112. +Max Damage=213. Mana Regen=13


this is in JUNK_LOG


WTF!? this with last update...

for what you do that shit? all been fine before that update.. :mad::mad::mad::mad::mad::mad::mad:
 
Last edited:
okay, so I have the addon installed properly and replaced the original trinity with the custom, now where am I supposed to add the loot rules @? I am going to make the assumption at this point that this is similar to a custom loot setup, because when I go into gilestrinity config there isn't an easy configuration setup for these loot settings.
 
are you fckng kidding me?

Armor - SpiritStone 'Inna's Radiance'. Score = 28594 {legendary item}
Dexterity=144. Vitality=79. Life Regen=102. Sockets=1. Crit Chance %=6. +Highest Single Resist=50


Offhand - Mojo 'Manajuma's Gory Fetch'. Score = 19019 {legendary item}
Intelligence=178. Life %=12. +Min Damage=112. +Max Damage=213. Mana Regen=13


this is in JUNK_LOG


WTF!? this with last update...

for what you do that shit? all been fine before that update.. :mad::mad::mad::mad::mad::mad::mad:

Just read few replies before. Here's explanation how to store all the legendaries.

to keep all Legendarys change in legendary.dis
this line
Code:
//[QUALITY] == Legendary || [QUALITY] == Special # [1] == 1 # [KEEP]
to
Code:
[QUALITY] == Legendary || [QUALITY] == Special # [1] == 1 # [KEEP]

the pickup ... isn't affected by itemrules by now ... its still configured in Giles GUI ...

@Poplkas: you shouldn't be mad at someone making plugins for us, he dedicate his time for community. It's only your god damn fault you can set your settings and read the infos.

okay, so I have the addon installed properly and replaced the original trinity with the custom, now where am I supposed to add the loot rules @? I am going to make the assumption at this point that this is similar to a custom loot setup, because when I go into gilestrinity config there isn't an easy configuration setup for these loot settings.

Most of the explanation is on the first page. You can edit config.dis in Specification folder and set where are loot rules for legendaries, rare and magic items, then you just edit (use notepad or even notepad++ it's better) those pointed files with your rules.
 
before that shitty update sorting of legendaries working fine, now it's deleting all legendaries because loot rules for legens - shit, and now only 1 solution uncomment loot rules for keeping all legend items, yes, but again - before that shitty update sorting of legendaries working fine
 
Back
Top