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

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

so on recipes, its picking them all up only stashing 6 attributes ones, but it isnt selling the 4 and 5 attribute ones, they just get left in my bag taking up space. for some reason it seems like the rules in special.dif are not being applied.
 
Could someone clarify how [KEEP] actually works?

[KEEP] doesn't show up in the .dis files after the beginning so how it's defined that it keeps all the items before trashing rules in the end?
 
I dont think [KEEP] is used anymore it is defined by the following now for example I think

[QUALITY] == "Legendary" && [NAME] == "Zunimassa's Pox"

someone please correct me if I am wrong
 
edit the legendary and rare yourself. cater to ur own needs! much better
 
edit the legendary and rare yourself. cater to ur own needs! much better


[KEEP and [PICKUP] are the actions ... by default ... so u don't have to set them ...

-> [KEEP] .... is same as no Action

Code:
[QUALITY] == "Rare" # [AS%] * [CRIT%] * [CRITDMG%] > 0
same as
[QUALITY] == "Rare" # [AS%] * [CRIT%] * [CRITDMG%] > 0


-> [PICKUP] .... is same as no action in pickup.dis

Code:
[QUALITY] == "Rare"  && [LEVEL] > 60  && [BASETYPE] == "Armor"
same as ...
[QUALITY] == "Rare"  && [LEVEL] > 60  && [BASETYPE] == "Armor" -> [PICKUP]
 
Last edited:
is there anyway to add like a customrules.dis which could contain your own edited rules so you can slip that file in after every new release or soemthing?
 
dark, if I put [Ignore] next to 4 and 5 attrib recipes, will it stop picking them up?
 
[KEEP and [PICKUP] are the actions ... by default ... so u don't have to set them ...

-> [KEEP] .... is same as no Action

Code:
[QUALITY] == "Rare" # [AS%] * [CRIT%] * [CRITDMG%] > 0
same as
[QUALITY] == "Rare" # [AS%] * [CRIT%] * [CRITDMG%] > 0


-> [PICKUP] .... is same as no action in pickup.dis

Code:
[QUALITY] == "Rare"  && [LEVEL] > 60  && [BASETYPE] == "Armor"
same as ...
[QUALITY] == "Rare"  && [LEVEL] > 60  && [BASETYPE] == "Armor" -> [PICKUP]

So does the soft, medium, hard settings even exist? No one has still yet to give any input on this. Honestly, right now I would just like to set it to medium and let it go, if it is possible, as the code suggests in the first post.
 
dark, if I put [Ignore] next to 4 and 5 attrib recipes, will it stop picking them up?

no because ... it doesnt recognize them as long as they are on the ground :-( .... u can just pick or ignore them ...at the moment my rules with rare4-6 are obsolet ... ...but u can strash them in special.dis .. this should work
 
So does the soft, medium, hard settings even exist? No one has still yet to give any input on this. Honestly, right now I would just like to set it to medium and let it go, if it is possible, as the code suggests in the first post.


this is in the alpha folder ... on my repository ... still in development

PS all alpha user.. plz use it this way ...

Code:
// +- Rule strength -----------------------------------------------------------+
[RULE]	== hard                                     // [custom,hard,medium,soft]
 
Last edited:
Stupid question, but if I want to just use this as an addition to Giles Trinity loot rules, can I do so?

IE: I want to use all scoring, ilvl evaluation, etc as in Trinity, but ADD a rule like....If Ivory Tower Then Salvage
 
I am confused. There seems to be rules that will never trigger.

For instance
[QUALITY] == "Legendary" && [NAME] == "Sever" # [DPS] > 1000 && ([SOCKETS]*[CRITDMG%]*[LS%] > 0) socket X critdmg% X LS% will always = 0 because there is no sever that can have 3 random rolls like that would need to not equal 0. This is still how we do math right? Maybe I am misunderstanding something
 
I am confused. There seems to be rules that will never trigger.

For instance
[QUALITY] == "Legendary" && [NAME] == "Sever" # [DPS] > 1000 && ([SOCKETS]*[CRITDMG%]*[LS%] > 0) socket X critdmg% X LS% will always = 0 because there is no sever that can have 3 random rolls like that would need to not equal 0. This is still how we do math right? Maybe I am misunderstanding something

just got a hint and fixed this silly rules... sry
 
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.007(beta):
// | - smarter log files
// | - can set [RULE] type now in config.dis (soft,medium,hard,custom)
// | - all rule files now included in release
// | - small fix in comment only use words soft,medium,hard
// | - updated with the new rules
// +---------------------------------------------------------------------------+

Code:
// +---------------------------------------------------------------------------+
// |  ______         __             ______ __                                  
// | |   __ \.--.--.|  |.-----.    |      |  |--.---.-.-----.-----.-----.-----.
// | |      <|  |  ||  ||  -__|    |   ---|     |  _  |     |  _  |  -__|__ --|
// | |___|__||_____||__||_____|    |______|__|__|___._|__|__|___  |_____|_____|
// |                                                        |_____|           
// +---------------------------------------------------------------------------+
// +-05.12.2012 ---------------------------------------------------------------+
// | - added some changes to legendarys hard rules
// | - changed some more in legendary section small changes
// | - fixed some bad rules with * (sry for this one) thx to dave cox for info
// +-03.12.2012 ---------------------------------------------------------------+
// | - added soft rules
// | - added folder for language specific files
// | - reworked some of the legendery armor rules
// +-02.12.2012 ---------------------------------------------------------------+
// | - added tesslerc rules to medium .. gona do later a merge.
// | - added pickup.dis
// | - removed unused commands like keep as it is default
// +-01.12.2012 ---------------------------------------------------------------+
// | - added better rules for legendary 2-h weapons
// | - rewrote some rules to be easier readable
// | - added better rules for legendary 1-h weapons
// +---------------------------------------------------------------------------+

new structure in repo:

Code:
01 - alpha
02 - beta
10 - release
50 - rules
99 - archived
trunk
changeLog.txt
DONATOR INFO.TXT
ItemRules2.txt
README.TXT
rulesChanges.txt


changeLog.txt - build changelog
ItemRules2.txt - Item Rules documentation
rulesChanges.txt - rules changes
 
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.007(beta):
// | - smarter log files
// | - can set [RULE] type now in config.dis (soft,medium,hard,custom)
// | - all rule files now included in release
// | - small fix in comment only use words soft,medium,hard
// | - updated with the new rules
// +---------------------------------------------------------------------------+

Code:
// +---------------------------------------------------------------------------+
// |  ______         __             ______ __                                  
// | |   __ \.--.--.|  |.-----.    |      |  |--.---.-.-----.-----.-----.-----.
// | |      <|  |  ||  ||  -__|    |   ---|     |  _  |     |  _  |  -__|__ --|
// | |___|__||_____||__||_____|    |______|__|__|___._|__|__|___  |_____|_____|
// |                                                        |_____|           
// +---------------------------------------------------------------------------+
// +-05.12.2012 ---------------------------------------------------------------+
// | - added some changes to legendarys hard rules
// | - changed some more in legendary section small changes
// | - fixed some bad rules with * (sry for this one) thx to dave cox for info
// +-03.12.2012 ---------------------------------------------------------------+
// | - added soft rules
// | - added folder for language specific files
// | - reworked some of the legendery armor rules
// +-02.12.2012 ---------------------------------------------------------------+
// | - added tesslerc rules to medium .. gona do later a merge.
// | - added pickup.dis
// | - removed unused commands like keep as it is default
// +-01.12.2012 ---------------------------------------------------------------+
// | - added better rules for legendary 2-h weapons
// | - rewrote some rules to be easier readable
// | - added better rules for legendary 1-h weapons
// +---------------------------------------------------------------------------+

new structure in repo:

Code:
01 - alpha
02 - beta
10 - release
50 - rules
99 - archived
trunk
changeLog.txt
DONATOR INFO.TXT
ItemRules2.txt
README.TXT
rulesChanges.txt


changeLog.txt - build changelog
ItemRules2.txt - Item Rules documentation
rulesChanges.txt - rules changes
Waiting for a public release.
 
Waiting for a public release.

- im working on HTML logs so ... better viewing ...
- and some more features
- and waiting on the implementation into 1.7.1.5 to go with the new release (some workarounds had to be done for pickup rules that aren't easy to merge...thx rrix for his work on that one)

- still thinking about a auctionhouse parser for rule validation ..but thats just a vision .. not a goal ^^
 
I made some new rules up. I think they are all created properly however a few of the off hands like the triumvirate might not be formed properly. Hope to see more people post their custom rules so that we can get this thing working to the best of its abilities.


Code:
[QUALITY] == "Legendary" && [NAME] == "Echoing Fury" # [DPS] > 800 && [SOCKETS] > 0 && ([CRITDMG%] > 0 || [LS%] > 0 || [LOH] > 500)      // does rule =  > 800+ DPS and a socket and crit % or LS or LOH above 500
[QUALITY] == "Legendary" && [NAME] == "Inna's Radiance" # [DEXVIT] > 285 || [LIFE%] > 0 || [TOTRES] > 0 || [PICKUP] > 0
[QUALITY] == "Legendary" && [NAME] == "Storm Crow" # [INT] > 280 || [CRIT%] > 0
[QUALITY] == "Legendary" && [NAME] == "Immortal King's Triumph" #  [STRVIT] > 120 || [ALLRES] > 0 || [PICKUP] > 0 || [ARMORBONUS] > 180
[QUALITY] == "Legendary" && [NAME] == "Mempo of Twilight" # [STR] > 170 || [DEX] > 170 || [CRIT%] > 0 || [PICKUP] > 0 [MF%] > 15
[QUALITY] == "Legendary" && [NAME] == "The Butcher's Sickle" # [DPS] > 800 && [SOCKETS] > 0 && ([LOH] > 0 || [MAXSTATVIT] > 100 || [WEAPAS] > 1.35)
[QUALITY] == "Legendary" && [NAME] == "Won Khim Lau" # [DPS] > 700 && [SOCKETS] > 0 && ([LS%] > 0 || [CRITDMG%] > 0)
[QUALITY] == "Legendary" && [NAME] == "Shenlong's Fist of Legend" # [DPS] > 800 && [SOCKETS] > 0 || [LOH] > 500 ||[LS%] > 0 || [DEXVIT] > 270
[QUALITY] == "Legendary" && [NAME] == "Bul-Kathos's Solemn Vow" # [DPS] > 900 && [SOCKETS] > 0 || [CRITDMG%] > 70
[QUALITY] == "Legendary" && [NAME] == "Bul-Kathos's Warrior Blood" # [DPS] > 900 || [SOCKETS] > 0 || [LS%] > 0 || [LOH] > 500
[QUALITY] == "Legendary" && [NAME] == "Skorn" # [DPS] > 1200 && [LS%] > 0 || ([STR] > 299 && [LOH] > 500)
[QUALITY] == "Legendary" && [NAME] == "Manticore" # [DPS] > 1000 && [SOCKETS] > 1 && [DEX] > 0
[QUALITY] == "Legendary" && [NAME] == "Manticore" # [DPS] > 1060 && [DEX] > 150 && [LS%] > 0
[QUALITY] == "Legendary" && [NAME] == "Manticore" # [DPS] > 1100 && [DEX] > 169 
[QUALITY] == "Legendary" && [NAME] == "Calamity" # [DPS] > 1000 && [LOH] > 500
[QUALITY] == "Legendary" && [NAME] == "Calamity" # [DPS] > 1050 && [DEX] > 130 || [DEXVIT] > 185
[QUALITY] == "Legendary" && [NAME] == "Danetta's Revenge" # [DPS] > 1000 && [LS%] > 0
[QUALITY] == "Legendary" && [NAME] == "Danetta's Spite" # [DPS] > 1000
[QUALITY] == "Legendary" && [NAME] == "Chantodo's Will" # [DPS] > 975 && [LS%] > 0 || [LOH] > 500
[QUALITY] == "Legendary" && [NAME] == "Chantodo's Will" # [DPS] > 1000 && [WEAPAS] > 1.76
[QUALITY] == "Legendary" && [NAME] == "Thing of the Deep" # [DMGFACTOR] > 12 || ([DMGFACTOR] > 11 && [INTVIT] > 200)
[QUALITY] == "Legendary" && [NAME] == "Uhkapian Serpent" # [DMGFACTOR] > 13.5 || ([DMGFACTOR] > 12.5 && [INTVIT] > 220)
[QUALITY] == "Legendary" && [NAME] == "Manajuma's Gory Fetch" # [CRIT%] > 0 || [DMGFACTOR] > 14.5 || ([DMGFACTOR] > 13 && [MAXSTATVIT] > 220)
[QUALITY] == "Legendary" && [NAME] == "Triumvirate" # [AVGDMG] > 190 && [ARCONCRIT] || ([AVGDMG] > 200 && [INT] > 169 || [INTVIT] > 210)
 
yeah. the pickup rules are still not working. still picking up 2handed.
 
Back
Top