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

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

I tried this for russian using KOI8-R but didn't manage to make it work, any help would be nice because as of now v2 simply doesn't work with russian clients.

In the scanner.cs

Try to use
regex = new Regex(@"\""[0-9A-Za-z\w' :\-]*\""", RegexOptions.Compiled);

This pattern to see whether it can pickup Russian characters. I don't have russian client, but my Regex Tester seems OK with this pattern

Also, be aware when you modify your legenary.dis file, be sure that you save or convert it to UTF-8 Format, otherwise it will cause errors

Regex: [0-9A-Za-z\w' :\-]
Source: Бдительность -Vigilance
Matches: Бдительность -Vigilance
 
Last edited:
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.020(public):
// | - removed testing rules
// | - added function possibility for float attributes
// | - function dual transform a number into binary 0 or 1
// |   ex. item has 123 vitalityand no strength [VIT].dual -> 1 [STR].dual -> 0
// | - function max gets back the percentage of the max that is pos on that item
// |   this function is under work.
// | - .max function still in work
// | - added macro possibility
// | - some fixes at the log system
// | - added a open-source AH Parser (use on ur own risk!) documentation incl.
// | - moved from Trinity 1.7.1.6 to 1.7.1.7 thx to rrix for his hard work
// | - moved on last developer version.
// | - added documentation for macro, function and installation
// | - moved from Trinity 1.7.1.7 to 1.7.1.8 thx to rrix for his hard work
// +---------------------------------------------------------------------------+

Trinity 1.7.1.8 & ItemRules 2.0.2.0

DOWNLOAD


public release contains actual beta
including rules sets from private dev.
- all rules included

HAVE FUN!!!

comming soon :-) for donators ...^^first



Uploaded with ImageShack.us

plz report bugs and errors

PUBLIC RELEASE : RELEASED! :p


CONTACT:
skype: darkfriend77
email: [email protected]
PM demonbuddypage: darkfriend77
 

Attachments

  • anotherlogviewer.webp
    anotherlogviewer.webp
    29 KB · Views: 72
Does the plugin have precedence over the trinity loot rules? I've set the scores of items to be picked, so does using this plugin totally ignore those settings? (good if it does)
 
With latest version of Item Rules and trinity 1.7.1.8 my bot stuck for a 5-10 seconds after each elite kill. Someone got this problem?
 
1.7.1.8 ?? now i am confused cause it seems 1.7.1.7 is the last released....^^
 
With latest version of Item Rules and trinity 1.7.1.8 my bot stuck for a 5-10 seconds after each elite kill. Someone got this problem?

Yes I am trying that version right now and for me its even more like 10-15 seconds which really sucks when youre watching your archon time run out while doing nothing.
 
Yeah standing there regardless if being attacked or dots, quite annoying/silly. Tried to look through the files to find where it would be deciding to stand idle but couldn't.
I have a feeling it's something between atom and trinity, though.
 
Yeah standing there regardless if being attacked or dots, quite annoying/silly. Tried to look through the files to find where it would be deciding to stand idle but couldn't.
I have a feeling it's something between atom and trinity, though.

Only Plugin I use is Trinity and I have that problem, so I am quite sure it is Trinity related :)
 
Can someone post a rule for not pick up twohands with ilvl < 63?
I tried this:
Code:
[QUALITY] == "Rare"  && [BASETYPE] == "Weapon" && [TWOHAND] == "True" && [LEVEL] < 63 -> [IGNORE]
but it doesnt working...
 
Can someone post a rule for not pick up twohands with ilvl < 63?
I tried this:
Code:
[QUALITY] == "Rare"  && [BASETYPE] == "Weapon" && [TWOHAND] == "True" && [LEVEL] < 63 -> [IGNORE]
but it doesnt working...

First you have to declare all ignore rules, then all pickup rules

Take a look at My tweaked pickup.dis: here
 
I have a question, probably it was answered already I checked the last 10 pages and did not find it. Does this only work for unidentified items or does it also handle identified items in my bags? I filled my bags with a bunch of crap legendaries from my stash, switched to hard loot rules in the config file and wanted to have anything that doesnt match it salvaged. But everything went right back into my stash again, items that clearly do not match the main or the saftey rule.

I also have all the initial saftey rules disabled:

//[QUALITY] == "Legendary" -> [KEEP]

// keep all Weapon for now
//[QUALITY] == "Legendary" && [BASETYPE] == "Weapon" -> [KEEP]

// keep all Armor for now
//[QUALITY] == "Legendary" && [BASETYPE] == "Armor" -> [KEEP]

// keep all jewelerys for now
//[QUALITY] == "Legendary" && [BASETYPE] == "Jewelry" -> [KEEP]
 
In the scanner.cs

Try to use


This pattern to see whether it can pickup Russian characters. I don't have russian client, but my Regex Tester seems OK with this pattern

Also, be aware when you modify your legenary.dis file, be sure that you save or convert it to UTF-8 Format, otherwise it will cause errors

Regex: [0-9A-Za-z\w' :\-]
Source: Бдительность -Vigilance
Matches: Бдительность -Vigilance

You rock, thx, I'll try that ASAP
 
Back
Top