Beispiel #1
0
 public InventoryHelper(Enigma.D3.ActorCommonData A)
 {
     Position = new System.Windows.Point((A.x118_ItemSlotX), (A.x11C_ItemSlotY) - (_ActiveTab * 10));
     Actor    = A;
     YIndex   = A.x11C_ItemSlotY;
     Level    = Enigma.D3.Helpers.Attributes.JewelRank.GetValue(A);
 }
Beispiel #2
0
        public void Set()
        {
            foreach (var Actor in Enigma.D3.Actor.Container)
            {
                if (Actor.x08C_ActorSnoId != 74706)// != 433966) // Ring Oculus
                {
                    continue;
                }

                Enigma.D3.ActorCommonData e = Actor.GetACDData();

                if (Added.Contains(Actor.Address))
                {
                    foreach (var x in MinimapMarkers)
                    {
                        if (!x.Update(new System.Windows.Point(0, 0)))
                        {
                            Extensions.Execute.UIThread(() => MinimapMarkers.Remove(x));
                            Added.Remove(Actor.Address);
                        }
                    }
                }

                else
                {
                    Extensions.Execute.UIThread(() =>
                    {
                        MinimapMarkers.Add(new IMapShape(Actor));
                    });

                    Added.Add(Actor.Address);
                }
            }
        }
Beispiel #3
0
        public static double GetAttribute(this Enigma.D3.ActorCommonData Actor, Enigma.D3.Enums.AttributeId Attrib, int Modifier = -1)
        {
            try
            {
                return(Actor.GetAttributeValue(Attrib, Modifier));
            }

            catch
            {
                return(-1);
            }
        }