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

// - Echoing Fury -------------------------------------------------------------+
// Legendary Mace
// 687.5?€“1323.6 Damage Per Second
// (370-638)?€“(605-1187) Damage
// 1.41-1.45 Attacks per Second
// +112-296 Minimum Damage
// +149-391 Maximum Damage
// +36-40% Damage
// +0.21-0.25 Attacks per Second
// 10.0-20.0% Chance to Fear on Hit
// One of 3 Magic Properties (varies)
// +150-169 Intelligence
// +150-169 Dexterity
// +150-169 Strength
// +2 Random Magic Properties
// Item Level: 62
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 800 && [SOCKETS] > 0 && ([CRITDMG%] > 0 || [LOH] > 0)
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 900 && ([SOCKETS] > 0 || [CRITDMG%] > 0 || [LOH] > 0)
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 1000

this means it will thrash if the mace have 3life steal and socket?
 
// - Echoing Fury -------------------------------------------------------------+
// Legendary Mace
// 687.5–1323.6 Damage Per Second
// (370-638)–(605-1187) Damage
// 1.41-1.45 Attacks per Second
// +112-296 Minimum Damage
// +149-391 Maximum Damage
// +36-40% Damage
// +0.21-0.25 Attacks per Second
// 10.0-20.0% Chance to Fear on Hit
// One of 3 Magic Properties (varies)
// +150-169 Intelligence
// +150-169 Dexterity
// +150-169 Strength
// +2 Random Magic Properties
// Item Level: 62
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 800 && [SOCKETS] > 0 && ([CRITDMG%] > 0 || [LOH] > 0)
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 900 && ([SOCKETS] > 0 || [CRITDMG%] > 0 || [LOH] > 0)
[QUALITY] == Legendary && [NAME] == Echoing Fury # [DPS] > 1000

this means it will thrash if the mace have 3life steal and socket?

Each line is an "OR" of it's own.

So, by lines above...
-(Two Scenarios) 800 dps + socket + crit damage % OR 800 dps + socket + Life on hit
-(Three Scenarios) 900 dps + socket OR 900 dps + crit damage % OR 900 dps + life on hit
-It has over 1k dps
 
Same problem. Do I need remove or comment some line to trash items not specifyed by the rules???


// cleanup rule trashing all other stuff
[QUALITY] == Rare && [BASETYPE] == Weapon # True # [TRASH]
[QUALITY] == Rare && [BASETYPE] == Armor # True # [TRASH]
[QUALITY] == Rare && [BASETYPE] == Jewelry # True # [TRASH]
 
29/11/2012 01:31:12: #WARNING(BAD LINE): [QUALITY]==Rare&&[TYPE]==Ring#[DMGFACTOR]>16&&([MAXSTATVIT]>0||[ALLRES]>0)#[IGNORE]

ofc changed the line in interpreter and thats the "bad" log
 
Can i use this plugin straight off the shelf without editing?

The legendary filter seems reasonable. I just dont wan to use it and leave the house only to come back and see that the bot is looping the items. not knowing what to do with it
 
29/11/2012 01:31:12: #WARNING(BAD LINE): [QUALITY]==Rare&&[TYPE]==Ring#[DMGFACTOR]>16&&([MAXSTATVIT]>0||[ALLRES]>0)#[IGNORE]

ofc changed the line in interpreter and thats the "bad" log
jep i see ... you have to add this too ...

nullTest = nullTest.Replace("[1]", "");
nullTest = nullTest.Replace("[TEST]", "");
nullTest = nullTest.Replace("[TRUE]", "");
nullTest = nullTest.Replace("[KEEP]", "");
nullTest = nullTest.Replace("[TRASH]", "");
nullTest = nullTest.Replace("[IGNORE]", "");
 
Code:
// +---------------------------------------------------------------------------+
// |   __|  |  |    \     \ |   __|  __|  |      _ \   __| 
// |  (     __ |   _ \   .  |  (_ |  _|   |     (   | (_ | 
// | \___| _| _| _/  _\ _|\_| \___| ___| ____| \___/ \___|        
// +---------------------------------------------------------------------------+
// | 2.00(alpha):
// | - complete new scripting engine
// | - allowing much more flexibility
// | - converted all rules to 2.0 standard
// | - more information comming                                               
// +---------------------------------------------------------------------------+

Code:
// +---------------------------------------------------------------------------+
// | _______        __   __                    
// ||   _   |.----.|  |_|__|.-----.-----.-----.
// ||       ||  __||   _|  ||  _  |     |__ --|
// ||___|___||____||____|__||_____|__|__|_____|
// |                                           
// +---------------------------------------------------------------------------+
// |  -> [KEEP]   keep item  
// |  -> [TRASH]  trash item
// |  -> [SCORE]  use score to evaluate item
// +---------------------------------------------------------------------------+
// | _______                          __                    
// ||       |.-----.-----.----.---.-.|  |_.-----.----.-----.
// ||   -   ||  _  |  -__|   _|  _  ||   _|  _  |   _|__ --|
// ||_______||   __|_____|__| |___._||____|_____|__| |_____|
// |         |__|                                           
// +---------------------------------------------------------------------------+
// |  LOGICAL OPERATOR:
// |  -----------------
// |  AND         "&&"       true && false   -> false
// |  OR          "||"       true || false   -> true
// |  EQUAL       "=="         10 == 11      -> false
// |  NOTEQUAL    "!="         10 != 11      -> true
// |  LESSEREQUAL "<="         10 <= 10      -> true
// |  BIGGEREQUAL ">="         10 >= 10      -> true
// |  LESSTHEN    "<"          10 <  10      -> false
// |  BIGGERTHEN  ">"          10 >  10      -> false
// |  BRACKETS    "()"    (5+5)*2 == 5+(5*2) -> false
// |  PLUS/MINUS  "+-"          1 +  2       -> 3
// |  MULT/DIV    "*/"          1 *  2       -> 2
// +---------------------------------------------------------------------------+

Code:
Folders			Description
-------			-----------

- alpha			some ugly testing, better don't touch this ....
- beta			try give some feedback trough... eMail, Skype, PM or what ever
- preFinal		this should be the version to use for advantage to non donators
- release		public release

to use newest release i will provide a ItemRule Version number in each file, but i will release
on a stable UnifiedGiles and on the most actual probably unstable...

so files will be ....
- ItemRules2-01UniTrinity1-7-00stable.zip
- ItemRules2-01UniTrinity1-7-12unstable.zip

actual item rules ... will be included from the separate folder

- rules
  |- soft		only best selling stuff is beeing pickt up probably 1+ Million
  |- medium		only best selling stuff is beeing pickt up probably 5+ Million
  |- hard		only best selling stuff is beeing pickt up probably 10+ Million
 
Darkfriend, thanks for your work!

You might want to check this section in legendary.dis


// - Hierophant's Seal --------------------------------------------------------+
// Legendary Ring
// 191?215 Armor
// Attack Speed Increased by 6-7%
// +5-12% Damage to Demons
// +6-7% Life
// +191-215 Armor
// Regenerates 116-160 Life per Second
// +1 Random Magic Properties
// Item Level: 61
[QUALITY] == Legendary && [NAME] == Band of Hollow Whispers # [DMGFACTOR] > 7 || [MAXSTATVIT] > 50 || [ALLRES] > 40
 
Perhaps I'm blind, but is this feature currently present in the public download?

- rules
|- soft only best selling stuff is beeing pickt up probably 1+ Million
|- medium only best selling stuff is beeing pickt up probably 5+ Million
|- hard only best selling stuff is beeing pickt up probably 10+ Million
 
Perhaps I'm blind, but is this feature currently present in the public download?
Currently, the folders are empty.

---

darkfriend77, under 'Choose Item Loot Type' which option should I select? I'm guessing it's "Trinity Scoring With Script Rules"
 
Code:
// +---------------------------------------------------------------------------+
// |   __|  |  |    \     \ |   __|  __|  |      _ \   __| 
// |  (     __ |   _ \   .  |  (_ |  _|   |     (   | (_ | 
// | \___| _| _| _/  _\ _|\_| \___| ___| ____| \___/ \___|        
// +---------------------------------------------------------------------------+                                         
[/QUOTE]

Waiting on an e-mail =)
 
Does the Plugin ignores the scoring system as it is stashing a ring that is 12k in score but have decent stats in it such as 2 main stats, cc, cd, min dmg & max dmg.
 
Does the Plugin ignores the scoring system as it is stashing a ring that is 12k in score but have decent stats in it such as 2 main stats, cc, cd, min dmg & max dmg.


check the log file under GilesTrinity/Log or GilesTrinity/ItemRules/Log ... if the ring is in the log_127361783 file ... u see which rule was true for this item ...
 
Back
Top