Ejemplo n.º 1
0
Archivo: Game.cs Proyecto: ahaem/D3x
        public static void Attach(Int32 procId)
        {
            try
            {
                Game.Memory.OpenProcessAndThread(procId);
                UInt32 addrObjectManager = Game.Memory.ReadUInt(Offsets.objectManager);
                ObjectManager = (Structures.ObjectManager)Memory.ReadObject((UInt32)addrObjectManager, typeof(Structures.ObjectManager));

                Structures.Actor Me;
                Me = Game.ObjectManager.Storage.GetActors().Find(i => i.id_acd == 0x77BC0000);

                //float hp = Me.GetFAG().GetFloat((uint)Enumerators.ActorAttribute.Hitpoints_Cur);
            }
            catch (Exception ex)
            {
                Debug.Print(ex.Message.ToString());
            }
        }
Ejemplo n.º 2
0
        public static void Attach(Int32 procId)
        {
            try
            {
                Game.Memory.OpenProcessAndThread(procId);
                UInt32 addrObjectManager = Game.Memory.ReadUInt(Offsets.objectManager);
                ObjectManager = (Structures.ObjectManager)Memory.ReadObject((UInt32)addrObjectManager, typeof(Structures.ObjectManager));

                Structures.Actor Me;
                Me = Game.ObjectManager.Storage.GetActors().Find(i => i.id_acd == 0x77BC0000);

                //float hp = Me.GetFAG().GetFloat((uint)Enumerators.ActorAttribute.Hitpoints_Cur);
            }
            catch (Exception ex)
            {
                Debug.Print(ex.Message.ToString());
            }
        }