How to find out whether this or that Set is dressed and which buff operates for 2.4 or 6 items?
How to find out whether this or that Set is dressed and which buff operates for 2.4 or 6 items?
i guess youd have to map them manually. but im just 90% sure^^
You have to know the set sno in order to "detect" if it is equipped.
I don't know how bufs work but you can detect if some buf is active like this:Code:static class MyUtilities { public static bool IsEquipped(this ItemLocation location) { return location >= ItemLocation.Head && location <= ItemLocation.Neck; } ... // Somewhere in your code... var items = Hud.Game.Items.Where(item => item.Location.IsEquipped()); foreach (var item in items) { if (item.SetSno == 1113279415) Hud.Debug(string.Format("Bones of Rathma")); if (item.SetSno == 1113279417) Hud.Debug(string.Format("Grace of Inarius")); if (item.SetSno == 1113279419) Hud.Debug(string.Format("Jesseth Arms")); }
Code:var p = Hud.Sno.SnoPowers; uint powerSno = p.Necromancer_Passive_BloodIsPower.Sno; int iconIndex = 0; bool hasPower = Hud.Game.Me.Powers.BuffIsActive(powerSno, iconIndex);
JarJarD3, where did you get these values (1113279415,1113279417,1113279419) ???And on sets DH there is???
Lucky for you I happen to play DH so here's the set sno's:
// Demon Hunter Sets
I created a plugin for me that watches all items I get.Code:{ 1376223095, Tuple.Create("Danetta's Hatred", new List<uint> { 3141402378,3141366441, }) }, // #2 { 2328093147, Tuple.Create("Enbodiment of the Marauder", new List<uint> { 3493277878,2058465375,826081525,2301868309,2313271477,258999270, }) }, { 1376366843, Tuple.Create("Natalya's Vengeance", new List<uint> { 221809693,334449276,3107208639,3141438315,1941287734,4088810343,4110193821, }) }, // #7 { 3709730243, Tuple.Create("The Shadow's Mantle", new List<uint> { 2059543485,827159635, }) }, { 2328092884, Tuple.Create("Unhallowed Essence", new List<uint> { 258855259,2058321364,825937514, }) },
Started this a few days ago so it is not complete at all.
First number is the set sno you are looking for.
Sno's in the list are item sno's belonging to this set. As you see this is not complete - and it might be that I ever need these!
BTW, I'n not sure if the list is definitive.
For some items there are more than one sno - due to some historical reasons as items get newer versions...
Same might apply to set items as well?
But anyway latest drops should have the latest sno's.
Found
TheShadowMantle
6 - Hud.Game.Me.Powers.BuffIsActive(444522)
4 - Hud.Game.Me.Powers.BuffIsActive(318876)
2 - Hud.Game.Me.Powers.BuffIsActive(318386)
THX JackCeparou !!!!!!
A list of all the sets can be viewed here:
JackCeparouCompass/SetBonusPowers.tsv at master * JackCeparou/JackCeparouCompass * GitHub