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

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

Ok, so trying to understand some of the loot rules. I am using the hard loot rules. Under immortal king gloves it reads
[QUALITY] == "Legendary" && [NAME] == "Immortal King's Irons" # [DMGFACTOR] > 10 || [MAXSTATVIT] > 169 || [ALLRES] > 0

However, these gloves were just kept, and they fit none of those rules?


[17:35:58.181 N] [Trinity]+=+=+=+=+=+=+=+=+ LEGENDARY FOUND +=+=+=+=+=+=+=+=+
[17:35:58.181 N] [Trinity]+ Name: Immortal King's Irons (Gloves)
[17:35:58.181 N] [Trinity]+ Score: 14020
[17:35:58.181 N] [Trinity]+ Attributes: Strength=97. Life Regen=300. Crit Chance %=9. Thorns=1095. Armor=212
Make sure you are using the custom loot rules in the trinity tab (CE)
 
I have the file based enabled, everything else seems to be right. Just those gloves aren't making sense
 
Ok, so trying to understand some of the loot rules. I am using the hard loot rules. Under immortal king gloves it reads
[QUALITY] == "Legendary" && [NAME] == "Immortal King's Irons" # [DMGFACTOR] > 10 || [MAXSTATVIT] > 169 || [ALLRES] > 0

However, these gloves were just kept, and they fit none of those rules?


[17:35:58.181 N] [Trinity]+=+=+=+=+=+=+=+=+ LEGENDARY FOUND +=+=+=+=+=+=+=+=+
[17:35:58.181 N] [Trinity]+ Name: Immortal King's Irons (Gloves)
[17:35:58.181 N] [Trinity]+ Score: 14020
[17:35:58.181 N] [Trinity]+ Attributes: Strength=97. Life Regen=300. Crit Chance %=9. Thorns=1095. Armor=212


[DMGFACTOR] | dmg factor | 12
// | | = as% + crit%*2 + critdmg%/5|
// | | + average/20

DMGFACTOR for this gloves = 9% *2 = 18 so it fits. It should be >20 there. >10 was for old rules, when DMGFACTOR was CHD+CC+IAS/3
 
Hmm, ok that makes some sense then. Because otherwise they all come with crit by default and would all be above that dmg factor then. As for should be 20, this is the item rules that came with the new trinity .10. Was it distributed with outdated rules, or do I need to download updated ones somewhere etc? Thanks for all the help!
 
Im using my own rules so not sure about officials - but I assuming this is just small bug when DMGFACTOR changed and this item wasnt updated to new value. Update it manually and hope it will be in next official update.
 
Just got a trashy ik helm kept too, decided to look at rules to see
[QUALITY] == "Legendary" && [NAME] == "Immortal King's Triumph" # [STRVIT] > 120 || [ALLRES] > 0 || [PICKUP] > 0 || [ARMORBONUS] > 180
They come with more armor then that by default, so again yah. I think a bad version of the rules were put in .10 maybe? Thanks for the help on this though, hopefully gets corrected!
 
any tutorial how to use the logviewer?! i really dont know hot to :(.

any time i am starting the executable and press on any kind of button it closes directly :(

EDIT: it starts after a very long time. loading a 60MB log is "ok" for the time being :).
 
Last edited:
i would love to have the possibility to filter for all amulets and rings to check only this kind of items. pretty much an option which allows you to filter to a specific type of item u picked up :):.

regards
 
Is default rules working with Rus version? I had custom Russian rules before and I am trying to implement them here, but I am failing so far. Doesn't seem like it's working either way.
 
Reloplayer - its because v2.0 do not recognize your letters in regex, in file Scanner.cs:

regex = new Regex(@"\""[0-9A-Za-z' :\-]*\""", RegexOptions.Compiled);
Patterns.Add(TokenType.STRING, regex);
Tokens.Add(TokenType.STRING);


I fixed it for myslef for polish letters:

regex = new Regex(@"\""[0-9A-Za-z'żźćń?łęąśŻŹĆĄŚĘŁ?Ń :\-]*\""", RegexOptions.Compiled);
Patterns.Add(TokenType.STRING, regex);
Tokens.Add(TokenType.STRING);

Add your letters there and it will works.
 
Noob question here Ive read the instructions like 10 times and I dont understand them. so I downloaded the trinity from here and put it in my plugins folder and enabled it. My question is however how do I select whether I want the loots rules to be soft, medium or hard.

Thanks in advance for the help boys
 
Reloplayer - its because v2.0 do not recognize your letters in regex, in file Scanner.cs:

regex = new Regex(@"\""[0-9A-Za-z' :\-]*\""", RegexOptions.Compiled);
Patterns.Add(TokenType.STRING, regex);
Tokens.Add(TokenType.STRING);


I fixed it for myslef for polish letters:

regex = new Regex(@"\""[0-9A-Za-z'żźćń?łęąśŻŹĆĄŚĘŁ?Ń :\-]*\""", RegexOptions.Compiled);
Patterns.Add(TokenType.STRING, regex);
Tokens.Add(TokenType.STRING);

Add your letters there and it will works.

Yeah, I figured that out after 15 minutes of trial and error and reading some posts here, thanks for the good answer nonetheless =)

Probably should just add all those letters to the master version, since it won't harm anyway but will save users from having to edit the code themselves.
 
Yeah, I figured that out after 15 minutes of trial and error and reading some posts here, thanks for the good answer nonetheless =)

Probably should just add all those letters to the master version, since it won't harm anyway but will save users from having to edit the code themselves.

i might gona do that .. ^^maybee just allowing any sign inside of [] ^^
 
Noob question here Ive read the instructions like 10 times and I dont understand them. so I downloaded the trinity from here and put it in my plugins folder and enabled it. My question is however how do I select whether I want the loots rules to be soft, medium or hard.

Thanks in advance for the help boys

Go to GilesTrinity/ItemRules/Rules/config.dis

edit this line:
[RULE] == hard

type there soft/hard/medium / or whatever custom directory name u use
 
Last edited:
i might gona do that .. ^^maybee just allowing any sign inside of [] ^^

Yeah darkfiend - allow any character there it should not harm either and will fix it for any language. I just switched from v1.0 custom to v2.0 custom (witch changes for 2.0) and all works great so far.
 
Am i the only one that still has the item name bug or am i the only one that is noticing it? I currently am keeping all legendary items because of it and its defeating the purpose of having these rules.

ItemRules Log:
Code:
LOG;KEEP;[KEY]:2020212900;[BASETYPE]:Armor;[TYPE]:VoodooMask;[QUALITY]:Legendary;[NAME]:VoodooMask;[LEVEL]:63;[ONEHAND]:False;[TWOHAND]:False;[UNIDENT]:False;[INT]:172;[VIT]:47;[LIFE%]:10;[RESFIRE]:28;[ARMOR]:394;[ARMORTOT]:394;[SOCKETS]:1;[MAXMANA]:124;[MAXSTAT]:172;[MAXSTATVIT]:219;[STRVIT]:47;[DEXVIT]:47;[INTVIT]:219;[MAXONERES]:28;[TOTRES]:28;[DEFSTATS]:2;[@EHP]:40826.86;[@DEFSTAT]:2;[@WIZSTAT]:1;[@WITSTAT]:2;[@MONSTAT]:1;[QUALITY]=="Legendary"&&[BASETYPE]=="Armor"->[KEEP]
LOG;KEEP;[KEY]:2019491996;[BASETYPE]:Armor;[TYPE]:MightyBelt;[QUALITY]:Legendary;[NAME]:MightyBelt;[LEVEL]:61;[ONEHAND]:False;[TWOHAND]:False;[UNIDENT]:False;[VIT]:81;[ALLRES]:54;[ARMOR]:290.67;[ARMORTOT]:290;[PICKRAD]:7;[THORNS]:838;[MAXFURY]:11;[MAXSTATVIT]:81;[STRVIT]:81;[DEXVIT]:81;[INTVIT]:81;[TOTRES]:54;[DEFSTATS]:2;[@EHP]:45660.41;[@DEFSTAT]:2;[@BARSTAT]:1;[QUALITY]=="Legendary"&&[BASETYPE]=="Armor"->[KEEP]
LOG;TRASH;[KEY]:2020999345;[BASETYPE]:Weapon;[TYPE]:Sword;[QUALITY]:Rare;[NAME]:RuneSword;[LEVEL]:63;[ONEHAND]:True;[TWOHAND]:False;[UNIDENT]:False;[STR]:154;[DPS]:525.70;[WEAPAS]:1.40;[WEAPMAXDMG]:538;[WEAPMINDMG]:213;[MAXSTAT]:154;[MAXSTATVIT]:154;[STRVIT]:154;[DEFSTATS]:1;[@EHP]:35000;[@BARSTAT]:1;[QUALITY]=="Rare"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true->[TRASH]

...and many more

This is my trinity log:

Code:
 30/12/2012 08:15:17:
====================
WeaponRange - TwoHandCrossbow 'Crossbow'. Score = 29337 {legendary item}
  Vitality=50. Sockets=1. DPS=871


30/12/2012 09:14:52:
====================
Offhand - Shield 'Shield'. Score = 12958 {legendary item}
  Intelligence=195. Life %=7. Life Regen=119. Sockets=1. Total Block %=10. +All Resist=60


30/12/2012 11:06:22:
====================
WeaponOneHand - CeremonialKnife 'Ceremonial Knife'. Score = 44196 {legendary item}
  Intelligence=141. DPS=805. Max Mana=115. Mana Regen=14

This has been happening in Trinity 1.7.1.9, 1.7.1.10 and i am currently testing out .12.
 
Am i the only one that still has the item name bug or am i the only one that is noticing it? I currently am keeping all legendary items because of it and its defeating the purpose of having these rules.

ItemRules Log:
Code:
LOG;KEEP;[KEY]:2020212900;[BASETYPE]:Armor;[TYPE]:VoodooMask;[QUALITY]:Legendary;[NAME]:VoodooMask;[LEVEL]:63;[ONEHAND]:False;[TWOHAND]:False;[UNIDENT]:False;[INT]:172;[VIT]:47;[LIFE%]:10;[RESFIRE]:28;[ARMOR]:394;[ARMORTOT]:394;[SOCKETS]:1;[MAXMANA]:124;[MAXSTAT]:172;[MAXSTATVIT]:219;[STRVIT]:47;[DEXVIT]:47;[INTVIT]:219;[MAXONERES]:28;[TOTRES]:28;[DEFSTATS]:2;[@EHP]:40826.86;[@DEFSTAT]:2;[@WIZSTAT]:1;[@WITSTAT]:2;[@MONSTAT]:1;[QUALITY]=="Legendary"&&[BASETYPE]=="Armor"->[KEEP]
LOG;KEEP;[KEY]:2019491996;[BASETYPE]:Armor;[TYPE]:MightyBelt;[QUALITY]:Legendary;[NAME]:MightyBelt;[LEVEL]:61;[ONEHAND]:False;[TWOHAND]:False;[UNIDENT]:False;[VIT]:81;[ALLRES]:54;[ARMOR]:290.67;[ARMORTOT]:290;[PICKRAD]:7;[THORNS]:838;[MAXFURY]:11;[MAXSTATVIT]:81;[STRVIT]:81;[DEXVIT]:81;[INTVIT]:81;[TOTRES]:54;[DEFSTATS]:2;[@EHP]:45660.41;[@DEFSTAT]:2;[@BARSTAT]:1;[QUALITY]=="Legendary"&&[BASETYPE]=="Armor"->[KEEP]
LOG;TRASH;[KEY]:2020999345;[BASETYPE]:Weapon;[TYPE]:Sword;[QUALITY]:Rare;[NAME]:RuneSword;[LEVEL]:63;[ONEHAND]:True;[TWOHAND]:False;[UNIDENT]:False;[STR]:154;[DPS]:525.70;[WEAPAS]:1.40;[WEAPMAXDMG]:538;[WEAPMINDMG]:213;[MAXSTAT]:154;[MAXSTATVIT]:154;[STRVIT]:154;[DEFSTATS]:1;[@EHP]:35000;[@BARSTAT]:1;[QUALITY]=="Rare"&&[BASETYPE]=="Weapon"&&[ONEHAND]==true->[TRASH]

...and many more

This is my trinity log:

Code:
 30/12/2012 08:15:17:
====================
WeaponRange - TwoHandCrossbow 'Crossbow'. Score = 29337 {legendary item}
  Vitality=50. Sockets=1. DPS=871


30/12/2012 09:14:52:
====================
Offhand - Shield 'Shield'. Score = 12958 {legendary item}
  Intelligence=195. Life %=7. Life Regen=119. Sockets=1. Total Block %=10. +All Resist=60


30/12/2012 11:06:22:
====================
WeaponOneHand - CeremonialKnife 'Ceremonial Knife'. Score = 44196 {legendary item}
  Intelligence=141. DPS=805. Max Mana=115. Mana Regen=14

This has been happening in Trinity 1.7.1.9, 1.7.1.10 and i am currently testing out .12.

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?
 
i need an tutorial how to checkout the svn. no idea how to get everything after i donated :D. i am kinda lazy to ask :>
 
Back
Top