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

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

Wow. Nice vile ward. Sold a similar one for 9usd after tax
 
fuimus, where it says your subversion URL : <cope that> and paste into browser. It will then ask you to log in. Then you'll have access to files.
 
in v2 rules u have to repair line for keeping all legendarys in legendary.dis

//[QUALITY] == "Legendary" || [QUALITY] == Special

if you uncomment it, it still trashing legendarys
This is right...
//[QUALITY] == "Legendary" || [QUALITY] == "Special"
or
//[QUALITY] == "Legendary"
because special is already is special.dis
 
and still have this error in latest versions...

[10:36:22.041 Q] [Trinity][CacheManagement]System.AccessViolationException: Could not read bytes from 00000008 [299]!
at Zeta.MemoryManagement.ExternalProcessReader.ReadBytes(IntPtr address, Int32 count, Boolean isRelative)
at Zeta.MemoryManagement.ExternalProcessReader.Read[T](IntPtr address, Boolean isRelative)
at Zeta.Internals.Actors.ACD.[](ACD , Int32 )
at Zeta.Internals.Actors.ACD.GetAttribute[T](Int32 attribute)
at Zeta.Internals.Actors.ACD.GetAttribute[T](ActorAttributeType attributeType)
at Zeta.Internals.Actors.DiaUnit.get_IsHidden()
at GilesTrinity.GilesTrinity.RefreshGilesUnit(Boolean AddToCache) in c:\DB\Plugins\GilesTrinity\RefreshDiaObject.cs:line 728
at GilesTrinity.GilesTrinity.RefreshStepMainObjectType(Boolean& AddToCache) in c:\DB\Plugins\GilesTrinity\RefreshDiaObject.cs:line 451
at GilesTrinity.GilesTrinity.CacheDiaObject(DiaObject freshObject) in c:\DB\Plugins\GilesTrinity\RefreshDiaObject.cs:line 91
at GilesTrinity.GilesTrinity.RefreshCacheMainLoop() in c:\DB\Plugins\GilesTrinity\RefreshDiaObjects.cs:line 295
 
24 hours later. Those rules work pretty well. I also found it keeps "Heart of Slaughter" and it trashes a "Vile Ward" that had only 175 Dex, but also 50 phys. Res. (guess thats worth at least 5 Mio)
Maybe if there would be a possibility to add a feature that keeps all those "precious" Legs like: Vile, Zunimas Pox, Skorn, IK-Chest, IK-Boots, etc. regardless their stats.
 
Finally Pickup Validation ... i included in ItemRules ... u decide now which items to ignore and which to pickup ...

Code:
// +---------------------------------------------------------------------------+
// | _______         ___                             __   __              
// ||_     _|.-----.'  _|.-----.----.--------.---.-.|  |_|__|.-----.-----.
// | _|   |_ |     |   _||  _  |   _|        |  _  ||   _|  ||  _  |     |
// ||_______||__|__|__|  |_____|__| |__|__|__|___._||____|__||_____|__|__|
// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++                                                                                                                                                                                   
// +---------------------------------------------------------------------------+
// | - actual beta development can be downloaded separate on the
// |   donators repository.
// | - actual beta rules can be downloaded separate on the donators repository
// | - contributors are welcome to help building rules
// | - rules sets provide a best effort for valuable items (not beeing perfect)
// | - donators: https://riouxsvn.com/svn/dbplugins
// | - public:   https://subversion.assembla.com/svn/CustomTrinity/trunk
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.005(beta):
// | - better pickup identification with PICKUP & IGNORE
// | - better logging and fixed some bugs
// | - added pickup rules
// | - workaround for name bug
// | - fixed some rules
// | - added soft rules
// | - added language legendary.dis for fr, it, ru
// | - moved UnifiedTrinity CE 1.7.1.3 to 1.7.1.4
// +---------------------------------------------------------------------------+

Pick up rules are writen like stash rules except u use Actions like [PICKUP] and [IGNORE]

for example u want lvl 58 rare gloves but rest rare armors only at 61+

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

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

[QUALITY] == "Rare"  && [LEVEL] > 60  && [BASETYPE] == "Armor"
[QUALITY] == "Rare"  && [LEVEL] > 57  && [BASETYPE] == "Armor" && [TYPE] == "Gloves"
//ignore rule
[QUALITY] == "Rare"  && [LEVEL] <= 60 && [BASETYPE] == "Armor"  -> [IGNORE]

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

have fun with beta !!! public release soon

https://riouxsvn.com/svn/dbplugins/02 - beta/ItemRules2005UniTrinity1-7-1-3stable.zip
 
Last edited:
oh cool.
Is there a way that I edit the rules to keep some specific legs. regardless their stats. So lets say, I?d like to keep all Vile Wards.
If yes, what file/line to edit?
 
oh cool.
Is there a way that I edit the rules to keep some specific legs. regardless their stats. So lets say, I?d like to keep all Vile Wards.
If yes, what file/line to edit?


in the file legendary.dis write the rule like this

// +---------------------------------------------------------------------------+
// +--- Shoulders
// +---------------------------------------------------------------------------+

// +---------------------------------------------------------------------------+
// +--- Pauldrons

// - Vile Ward ----------------------------------------------------------------+
// "Legendary" Shoulders
// 594?671 Armor
// +71-80 Resistance to All Elements
// +241-265 Armor
// Regenerates 235-342 Life per Second
// One of 3 Magic Properties (varies)
// +170-200 Intelligence
// +170-200 Dexterity
// +170-200 Strength
// +2 Random Magic Properties
// Item Level: 63
//[QUALITY] == "Legendary" && [NAME] == "Vile Ward" # [MAXSTATVIT] > 195 && [LIFE%] > 0

[QUALITY] == "Legendary" && [NAME] == "Vile Ward"
 
in the file legendary.dis write the rule like this

gosh, stupid me..could have found out for myself. Thanks a lot, modified those medium rules to keep mempo, viles and some other legs. whatever stats they have :)
 
how can i debug this thing? do i have to restart DB after i make changes or there is some switch i have to turn on to make it forkw as i make change
 
how can i debug this thing? do i have to restart DB after i make changes or there is some switch i have to turn on to make it forkw as i make change


there is a button under Tab "Items" .. called "Reload script Rules" ... this will reload .. the files ...
 
is it possible to make the bot pick up the following sno with these rules?

Type: Item Name: offHand_norm_base_flippy_01-412 ActorSNO: 200485

That is for The Horadric Hamburger. Currently the bot wont pick it up. I can get the rules to stash it by adding it to legendary.dis but Im trying to figure out how to actually pick it up.
 
Hey Darkfriend that link gives me a file 404 error. Is it the same file that is in your alpha folder saved under the same name? If not could you please reup it? Thanks
 
Back
Top