예제 #1
0
파일: Game.cs 프로젝트: 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());
            }
        }
예제 #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());
            }
        }