Exemple #1
0
        private UInt64 objc_shield_inp()
        {
            UInt64 shield_power = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 character_shield     = objc_shield();
                    float  character_shield_max = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x70c);

                    if (character_shield_max != 0)
                    {
                        shield_power = (character_shield * 100) / Convert.ToUInt64(character_shield_max);
                    }
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 character_shield     = objc_health();
                    float  character_shield_max = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x514);

                    if (character_shield_max != 0)
                    {
                        shield_power = (character_shield * 100) / Convert.ToUInt64(character_shield_max);
                    }
                }
            }
            catch { }

            return(shield_power);
        }
Exemple #2
0
        private UInt64 objc_unitowner()
        {
            UInt64 owner = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x2b0);

                    //if (memory == 4706249)
                    //{
                    //    owner = 1;
                    //}

                    owner = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x1F0);

                    owner = memory;
                }
            }
            catch { }

            return(owner);
        }
Exemple #3
0
        private UInt64 objc_health_inp()
        {
            UInt64 health = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 character_health     = objc_health();
                    float  character_health_max = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x5fc);

                    if (character_health_max != 0)
                    {
                        health = (character_health * 100) / Convert.ToUInt64(character_health_max);
                    }
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 character_health     = objc_health();
                    float  character_health_max = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x400);

                    if (character_health_max != 0)
                    {
                        health = (character_health * 100) / Convert.ToUInt64(character_health_max);
                    }
                }
            }
            catch { }

            return(health);
        }
Exemple #4
0
 private void objc_typ_writx()
 {
     try
     {
         if (MainWindow.client_selected == "x64")
         {
             ProcessReader.WriteUInt(ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x80, 0);
         }
         else if (MainWindow.client_selected == "x86")
         {
             ProcessReader.WriteUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x58, 0);
         }
     }
     catch { }
 }
Exemple #5
0
        private float objc_position_z()
        {
            float position = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    float y = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0xf64);

                    position = y;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    float y = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0xf14);

                    position = y;
                }
            }
            catch { }

            return(position);
        }
Exemple #6
0
        private UInt64 objc_aggro()
        {
            UInt64 aggro = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x2ac);

                    aggro = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x1ec);

                    aggro = memory;
                }
            }
            catch { }

            return(aggro);
        }
Exemple #7
0
        private UInt64 objc_iscasting()
        {
            UInt64 casting = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x15e0);

                    casting = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x126c);

                    casting = memory;
                }
            }
            catch { }

            return(casting);
        }
Exemple #8
0
        private UInt64 objc_targetclass()
        {
            UInt64 id = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x10c);

                    id = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0xb4);

                    id = memory;
                }
            }
            catch { }

            return(id);
        }
Exemple #9
0
        private UInt64 objc_shield()
        {
            UInt64 shield = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x48);

                    shield = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x38);

                    shield = memory;
                }
            }
            catch { }

            return(shield);
        }
Exemple #10
0
        private UInt64 objc_health()
        {
            UInt64 health = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x40);

                    health = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x30);

                    health = memory;
                }
            }
            catch { }

            return(health);
        }
Exemple #11
0
        private UInt64 objc_typ()
        {
            UInt64 klass = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x80);

                    klass = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x58);

                    klass = memory;
                }
            }
            catch { }

            return(klass);
        }
Exemple #12
0
        private UInt64 objc_level()
        {
            UInt64 level = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 memory = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x38);

                    level = memory;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 memory = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x28);

                    level = memory;
                }
            }
            catch { }

            return(level);
        }
Exemple #13
0
        private UInt64 objc_id()
        {
            UInt64 id = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 target_id = ProcessReader.readUInt((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x8);

                    id = target_id;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 target_id = ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x4);

                    id = target_id;
                }
            }
            catch { }

            return(id);
        }
Exemple #14
0
        // Memory reading
        private string objc_name()
        {
            string name = "";

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    string character_name = ProcessReader.readString((long)ProcessReader.readUInt64((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x10) + 0x0);

                    name = character_name;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    string character_name = ProcessReader.readString(ProcessReader.readUInt(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x8) + 0x0);

                    name = character_name;
                }
            }
            catch { }

            return(name);
        }
Exemple #15
0
        public void update()
        {
            if (MainWindow.client_selected == "x64")
            {
                // Create a new hash set
                found = new HashSet <UInt64>();

                // Get the current objects 75e8
                try
                {
                    game_manager = ProcessReader.readUInt64((long)ProcessReader.readUInt64((long)ProcessReader.base_adress + Stats.game_manager) + 0x6488);
                }
                catch { }

                while (game_manager != 0) // If object isn't null, add it
                {
                    try
                    {
                        if (!found.Contains(game_manager))
                        {
                            entities[game_manager] = new Actors(game_manager); // Add the object to the entities dictionary
                            found.Add(game_manager);
                        }

                        game_manager = ProcessReader.readUInt64((long)game_manager + 0x60); // Go to the next object
                    }
                    catch { }
                }

                // Remove entities not present in memory anymore
                // Update entities still present
                // Add new entities and update them
                List <UInt64> entitiesToRemove = new List <UInt64>();

                foreach (var entity in entities.Values)
                {
                    if (found.Contains(entity.PtrEntity))
                    {
                        entity.update();
                    }
                    else
                    {
                        entitiesToRemove.Add(entity.PtrEntity);
                    }
                }

                foreach (var entityPtr in entitiesToRemove)
                {
                    entities.Remove(entityPtr);
                    found.Remove(entityPtr);
                }

                foreach (var newEntityPtr in found.Except(entities.Keys))
                {
                    entities[newEntityPtr] = new Actors(newEntityPtr);
                }

                //System.Threading.Thread.Sleep(100);
            }
            else if (MainWindow.client_selected == "x86")
            {
                // Get the current objects
                try
                {
                    game_manager_x86 = ProcessReader.readUInt(ProcessReader.readUInt(ProcessReader.base_adress_x86 + Stats.game_manager_x86) + 0x5d78);
                }
                catch { }

                while (game_manager_x86 != 0) // If object isn't null, add it
                {
                    try
                    {
                        entities[game_manager_x86] = new Actors(game_manager_x86);                          // Add the object to the entities dictionary
                        game_manager_x86           = ProcessReader.readUInt((long)game_manager_x86 + 0x48); // Go to the next object
                    }
                    catch { }
                }
            }
        }