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

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

Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |
// +---------------------------------------------------------------------------+
// | 2.0235(beta)
// | - should now accept any characters ... chinese russian ... and so on.
// | - moved onto latest Trinity 1.7.1.12 devOnly thx to rrix
// +---------------------------------------------------------------------------+
 
i had this bug when i implemented the pickup ... so i had to do a workaround ... its strange that it persist in ur case ... maybee the new caching that will be coming will fix that ...

it would be interesting if anyone else has this problem beside you ...

any other plugins u using?

My list of plugins is:

Buddystats 0.98
RadsAtom 1.5.1
UnStuckMe 1.8.4
YAR
Trinity
 
Why don't follow rule?

This item must be TRASH
Log:
Code:
LOG;KEEP;[KEY]:2019426457;[BASETYPE]:Weapon;[TYPE]:Axe;[QUALITY]:Legendary;[NAME]:Раскалывательнебес;[LEVEL]:63,00;[ONEHAND]:True;[TWOHAND]:False;[UNIDENT]:False;[DEX]:170,00;[LOH]:530,00;[REGEN]:502,00;[DPS]:930,62;[WEAPAS]:1,43;[WEAPMAXDMG]:839,00;[WEAPMINDMG]:462,56;[MAXSTAT]:170,00;[MAXSTATVIT]:170,00;[DEXVIT]:170,00;[DEFSTATS]:1,00;[@EHP]:35000,00;[@DEFSTAT]:2,00;[@MONSTAT]:1,00;[@DEMSTAT]:1,00;
Rule:
Code:
[QUALITY]=="Legendary"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true"#[DPS]>1000&&[SOCKETS]=1&&([CRITDMG%]>70||[LOH]>600||[LS%]>3||[MAXSTATVIT]>300)
 
Last edited:
Because the items is below 1000dps and below 600loh?...
 
Why don't follow rule?

This item must be TRASH
Log:
Code:
LOG;KEEP;[KEY]:2019426457;[BASETYPE]:Weapon;[TYPE]:Axe;[QUALITY]:Legendary;[NAME]:Раскалывательнебес;[LEVEL]:63,00;[ONEHAND]:True;[TWOHAND]:False;[UNIDENT]:False;[DEX]:170,00;[LOH]:530,00;[REGEN]:502,00;[DPS]:930,62;[WEAPAS]:1,43;[WEAPMAXDMG]:839,00;[WEAPMINDMG]:462,56;[MAXSTAT]:170,00;[MAXSTATVIT]:170,00;[DEXVIT]:170,00;[DEFSTATS]:1,00;[@EHP]:35000,00;[@DEFSTAT]:2,00;[@MONSTAT]:1,00;[@DEMSTAT]:1,00;
Rule:
Code:
[QUALITY]=="Legendary"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true"#[DPS]>1000&&[SOCKETS]=1&&([CRITDMG%]>70||[LOH]>600||[LS%]>3||[MAXSTATVIT]>300)

first the rule seems to have a unused quotation at ONEHAND ... and it has only = insteat of == at sockets

second normaly if u use one of the newer versions u should see which rule was used at the end .. like that ...

Code:
201301011950381318.xxxxxxxxxx;LOG;TRASH;[KEY]:xxxxxxxxx;[BASETYPE]:Armor;[TYPE]:Boots;[QUALITY]:Rare;[NAME]:StompMutiny;[LEVEL]:61;[ONEHAND]:False;[TWOHAND]:False;[UNIDENT]:False;[INTNAME]:Boots_hell_base_04-164;[STR]:50;[INT]:63;[ALLRES]:44;[ARMOR]:263.83;[ARMORBONUS]:221;[ARMORTOT]:484;[PICKRAD]:7;[MAXSTAT]:63;[MAXSTATVIT]:63;[STRVIT]:50;[INTVIT]:63;[TOTRES]:44;[DEFSTATS]:3;[@EHP]:43533.91;[@DEFSTAT]:2;[@WIZSTAT]:1;[@WITSTAT]:1;[@BARSTAT]:1;[B][QUALITY]=="Rare"&&[TYPE]=="Boots"->[TRASH][/B]

Code:
[QUALITY]=="Legendary"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true[COLOR="#FF0000"][B]"[/B][/COLOR]#[DPS]>1000&&[SOCKETS][B][COLOR="#FF0000"]=[/COLOR][/B]1&&([CRITDMG%]>70||[LOH]>600||[LS%]>3||[MAXSTATVIT]>300)

try it like that ...

Code:
[QUALITY]=="Legendary"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true#[DPS]>1000&&[SOCKETS] ==1&&([CRITDMG%]>70||[LOH]>600||[LS%]>3||[MAXSTATVIT]>300)

or

[QUALITY]=="Legendary"&&[BASETYPE]=="Weapon"&&[ONEHAND]#[DPS]>1000&&[SOCKETS]==1&&([CRITDMG%]>70||[LOH]>600||[LS%]>3||[MAXSTATVIT]>300)
 
If I don't want bot to pickup any gems, tomes, plans and followeritems, will this be sufficient in "pickup.dis"?:
Code:
[TYPE] == "CraftingPlan" -> [IGNORE]
[TYPE] == "FollowerSpecial" -> [IGNORE]
[BASETYPE] == "Gem" -> [IGNORE]
 
Ok I feel bad asking this because I had this all figured out before I got banned a couple weeks ago. Any help would be appreciated. I read through this thread and the original item rules thread but couldn't find what I was searching for.

1. So I downloaded the 2 .zip files, trinity 1.7.1.9 and trinity045. I replace my existing Trinity with 1.7.1.9 but I forgot what to do with the files located in the 045 package (item rules, interpreter.cs, gilestrinity.xaml, gilestrinity.cs). Do these just replace the files in the Trinity folder?

2. In Trinity when choosing the item rules type, I'm suppose to be using File Based Script Rules correct? I remember loading a different .xml file through the DB settings but where is the file? Or do I just use the default file that is already loaded?

Again sorry the questions, I feel bad but I don't know where to get help :(
 
Using Giles 1.7.1.10
legendary.dis changed to stash ALL legendaries:

[QUALITY] == "Legendary" || [QUALITY] == Special # True -> [KEEP]
[QUALITY] == "Legendary" && [BASETYPE] == "Weapon" # True -> [KEEP]
[QUALITY] == "Legendary" && [BASETYPE] == "Armor" # True -> [KEEP]
[QUALITY] == "Legendary" && [BASETYPE] == "Jewelry" # True -> [KEEP]

I looked at the window for a while and saw the char starting to sell to the vendor and see an Andy Visage.....

[21:14:54.960 N] [Trinity]Andariel's Visage [Helm_norm_base_flippy-14440] [Unknown] = (TRASH)



Trash?... omg

Any idea what can be the problem?
 
If I don't want bot to pickup any gems, tomes, plans and followeritems, will this be sufficient in "pickup.dis"?:
Code:
[TYPE] == "CraftingPlan" -> [IGNORE]
[TYPE] == "FollowerSpecial" -> [IGNORE]
[BASETYPE] == "Gem" -> [IGNORE]

After some testing - it still picks up Tomes of Secrets. How do I make it not pickup those?
 
Also got a question. If I enable this: will this manage potion pickups, or is that still trinity side? Because I kinda like the functionality of "Cap at 100 potions" in there.
 
As long as u don't write a RULE in pickup.dis for HealthPotion or Gems or other stuff then ... TrinitySetting takes care ...


but u can also write rules for that ...

Code:
[BASETYPE] == "Misc" && [TYPE] == "CraftingPage"  --> [IGNORE]

or

Code:
[BASETYPE] == "Gem" --> [IGNORE]

...

Code:
// |      +-------------------------+
// |      |         EVENT           |
// |      |       Item Drop         |
// |      | FileBasedScriptingRules |
// |      +-----------+-------------+
// |                  |
// |                  V
// |           +--------------+
// |           |  pickup.dis  +--> <matching rule>
// |           +------+-------+          |
// |                  |                  +-> PICKUP
// |                  V                  +-> IGNORE
// |          <no matching rule>
// |                  |
// |                  |
// |                  |
// |                  V
// |         +--------+---------+
// |         | trinity setting  |
// |         | decide if item   |
// |         |     pickup       |
// |         +------------------+
 
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |
// +---------------------------------------------------------------------------+
// | 2.030(beta)
// | - added possibility to add an other rulepath outside of demonbuddy
// | - logging is also pushed to TrinityLog folder
// | - moved onto latest Trinity 1.7.1.13 devOnly thx to rrix
// +---------------------------------------------------------------------------+


Code:
// +---------------------------------------------------------------------------+
// |  ______         __             ______ __                                  
// | |   __ \.--.--.|  |.-----.    |      |  |--.---.-.-----.-----.-----.-----.
// | |      <|  |  ||  ||  -__|    |   ---|     |  _  |     |  _  |  -__|__ --|
// | |___|__||_____||__||_____|    |______|__|__|___._|__|__|___  |_____|_____|
// |                                                        |_____|           
// +---------------------------------------------------------------------------+
// +-01.01.2013 ---------------------------------------------------------------+
// | - happy new year 2013
// | - added bugged misc basetype items to pickup
 
I saw in config file , there is RULEPATH

Code:
 [RULEPATH] == D:\Bot\DBItemRules\

DO i have to put your rule exactly in the same place ?
 
Hey guys, is there any way i can just add only pickup rule to the original trinity scoring system?
 
Umm, ziriuz, Why not edit out the whole .dis files?
Without rules, they will default to Trinity scoring, but keeping the pickup.

It's not an elegant solution but it should work if you really want that.
 
Back
Top