Help Creating Shield Rule

Discussion on a variety of topics. Ask general Vtank questions here.
msib
Posts: 6

Help Creating Shield Rule

Post #1 »

I'm trying to make a rule to pick up no wield shields above armor level 390. The ones I have now from years ago are covenant shields, if that makes any difference.

http://prntscr.com/7wliw6

http://prntscr.com/7wlj6g


I don't know if it is because the no wield shields still have a melee d or missile d req that interferes, but it just won't do it.

I can get it to hit, but it also hits on shields with level reqs of 150 and 180 or I can get it to not hit on either. I cannot get it to hit just the no wields, but not the 150 or 180 req shields.

The only other thing I can think of is these are legacy items from before any level requirements at all. Either way, any insight on why I cannot get this rule to match is appreciated. Or, how to make a rule now that will only pick up shields over 390 with no level requirement, although it may still have the melee d or missile d requirement.

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #2 »

The problem is, the game has "wieldreqattribute", and "wieldreqattribute2"; however the loot editor only supplies "wieldreqattribute".

Cov/Olthoi shields will always use "Wieldreqattribute" for the wield skill (melee, missile, magicd), and "Wieldreqattribute2" for the level requirement.

Non-Cov/Olthoi shields use "WieldReqAttribute" for level requirement as they have no skill req.

Non-Cov/Olthoi shields top out around 180AL, Cov/Olthoi around 400 i think.

Sadly, this problem also applies to Cov/Olthoi armor...

Below are the simplest forms of shield rules that there are, you can add other modifiers to them to get your desired result.

Loot any shield:

Code: Select all

longvaluekey== Equiptype 4
Loot any Covenant/Olthoi shield:

Code: Select all

longvaluekey== Equiptype 4
Longvaluekey== Unenchantable 9999
Loot any no level req, non cov/olthoi shield:

Code: Select all

longvaluekey== Equiptype 4
longvaluekey!= wieldreqattribute 1
Longvaluekey!= Unenchantable 9999
Loot any no level req, cov/olthoi shield: (see post below for custom rule)

Code: Select all

longvaluekey== Equiptype 4
Longvaluekey== Unenchantable 9999
Longvaluekey!= wieldreqattribute2 1 (this doesn't exist in editor)
Loot Cov/Olthoi shields based on wield req:

Code: Select all

longvaluekey== Equiptype 4
longvaluekey== wieldreqattribute 6(meleed), 7(missiled) or 15(magicd)

to exclude a skill instead use: 
longvaluekey== Equiptype 4
longvaluekey!= wieldreqattribute 6(meleed), 7(missiled) or 15(magicd)
Immortalbob of MT

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #3 »

Cov Shield with Level Req Property dump:

Code: Select all

20:38:17 [VTank] --------------Object dump--------------
20:38:17 [VTank] [Meta] Create count: 1
20:38:17 [VTank] [Meta] Create time: 7/24/2015 8:33 PM
20:38:17 [VTank] [Meta] Has identify data: True
20:38:17 [VTank] [Meta] Last ID time: 7/24/2015 8:38 PM
20:38:17 [VTank] [Meta] Worldfilter valid: True
20:38:17 [VTank] [Meta] Client valid: True
20:38:17 [VTank] [Meta] Apparent slot: 2
20:38:17 [VTank] ID: 88C06CAA (-2000655190)
20:38:17 [VTank] ObjectClass: Armor
20:38:17 [VTank] (S) Name: Olthoi Shield
20:38:17 [VTank] (S) FullDescription: Olthoi Shield of Invulnerability
20:38:17 [VTank] (I) CreateFlags1: -1860091240
20:38:17 [VTank] (I) Type: 40682
20:38:17 [VTank] (I) Icon: 26700
20:38:17 [VTank] (I) Category: 2
20:38:17 [VTank] (I) Behavior: 18
20:38:17 [VTank] (I) Value: 50995
20:38:17 [VTank] (I) ItemUsabilityFlags: 1
20:38:17 [VTank] (I) IconOutline: 1
20:38:17 [VTank] (I) EquipType: 4
20:38:17 [VTank] (I) Container: 1342753073
20:38:17 [VTank] (I) EquipableSlots: 2097152 (shield)
20:38:17 [VTank] (I) Burden: 741
20:38:17 [VTank] (I) HookMask: 2
20:38:17 [VTank] (I) Material: 60
20:38:17 [VTank] (I) PhysicsDataFlags: 137345
20:38:18 [VTank] (I) ActivationReqSkillId: 6
20:38:18 [VTank] (I) WieldReqValue: 205
20:38:18 [VTank] (I) WieldReqValue2: 150
20:38:18 [VTank] (I) GemSettingQty: 2
20:38:18 [VTank] (I) GemSettingType: 38
20:38:18 [VTank] (I) SkillLevelReq: 390
20:38:18 [VTank] (I) Unenchantable: 9999
20:38:18 [VTank] (I) Workmanship: 7
20:38:18 [VTank] (I) Spellcraft: 370
20:38:18 [VTank] (I) CurrentMana: 1734
20:38:18 [VTank] (I) ArmorLevel: 291
20:38:18 [VTank] (I) MaximumMana: 1734
20:38:18 [VTank] (I) DescriptionFormat: 5
20:38:18 [VTank] (I) LoreRequirement: 109
20:38:18 [VTank] (I) RankRequirement: 0
20:38:18 [VTank] (I) WieldReqType: 2
20:38:18 [VTank] (I) WieldReqType2: 7
20:38:18 [VTank] (I) WieldReqAttribute: 7
20:38:18 [VTank] (I) WieldReqAttribute2: 1
20:38:18 [VTank] (D) SalvageWorkmanship: 7
20:38:18 [VTank] (D) ManaRateOfChange: -0.0666666666666667
20:38:18 [VTank] (D) SlashProt: 1.5
20:38:18 [VTank] (D) PierceProt: 1.29999995231628
20:38:18 [VTank] (D) BludgeonProt: 1.39999997615814
20:38:18 [VTank] (D) ColdProt: 0.800000011920929
20:38:18 [VTank] (D) FireProt: 0.600000023841858
20:38:18 [VTank] (D) AcidProt: 1
20:38:18 [VTank] (D) LightningProt: 0.600000023841858
20:38:18 [VTank] (L) Container: 1342753073
20:38:18 [VTank] Palette Entry 0: ID 0x000BF4, Ex Color: 000000, 0/0
The offending requirements...
20:38:18 [VTank] (I) WieldReqValue: 205
20:38:18 [VTank] (I) WieldReqValue2: 150
20:38:18 [VTank] (I) WieldReqAttribute: 7
20:38:18 [VTank] (I) WieldReqAttribute2: 1
Immortalbob of MT

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #4 »

Because I am awesome here is the custom rule you can paste into your loot profile:
(copy Code section, press paste button in editor)

Any No Level Wield Req Shield AL390+

Custom rule using WieldReqAttribute2

Code: Select all

Custom Shield Rule

0;1;13;12;12;13
8
1
271
14
4
218103823
9
390
28
8
1
159
Same rule using WieldReqValue2 instead:

Code: Select all

Custom Shield Rule2

0;1;13;13;12;3;13;13
10
150
272
10
180
272
14
4
218103823
9
390
28
10
150
160
10
180
160

These can be applied towards covenant armor as well, if you remove the equiptype
Immortalbob of MT

Joran Heartseeker
Posts: 23

Post #5 »

That is pretty awesome. I don't suppose you'd like to share with the class how you managed it (other than innate awesomeness)?

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #6 »

believe it or not, i googled wieldreqattribute2, and i came across irquk's github for gearfoundry...

https://github.com/AlincoRecoders/GearF ... erEnums.cs

There i found this:

Code: Select all

NewLongKeys:
SummoningSkill = 367,
WeaponMastery = 353,
WieldReqAttribute2 = 271,
WieldReqValue2 = 272,
WieldReqType2 = 270,
Dam = 370,
DamResist = 371,
Crit = 372,
CritResist = 373,
CritDam = 374,
CritDamResist = 375,
DamageAbsorb = 352,	
MaxItemLevel = 319	
So, I created a rule using wieldreqattribute, and nothing else, hit copy, pasted it into notepad, and replaced the value

Code: Select all

New Rule

0;1;12
8
1
159
The 159 is the value for WieldReqAttribute, I replaced that with 271 for wieldreqattribute2 copied, and pasted it back into the editor.
Immortalbob of MT

Joran Heartseeker
Posts: 23

Post #7 »

Your Google-fu is strong!

User avatar
Trigger9008
Posts: 41

Post #8 »

Joran Heartseeker wrote:Your Google-fu is strong!
All the information ImmortalBob posted is readily available on the VTank wiki site: http://www.virindi.net/wiki
And github: https://github.com/AlincoRecoders/GearFoundry

Google... not needed.
~Trigger9008~

msib
Posts: 6

Post #9 »

Thank you, that's awesome!

I knew it was that 2, but I couldn't figure out how to address. Many thanks!