Exemple #1
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 #2
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 #3
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 #4
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 #5
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 #6
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 #7
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 #8
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 #9
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 #10
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 #11
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 { }
                }
            }
        }
Exemple #12
0
        private void add_character_names()
        {
            // Shows Processes with Characternames
            if (client_version_tbx.SelectedItem.ToString() == "x64")
            {
                for (int i = 0; i < Wildstar.Length; i++)
                {
                    // Open the process
                    ProcessReader.OpenProcxss(Wildstar[i].Id);
                    ProcessReader.base_adress = Wildstar[i].MainModule.BaseAddress.ToInt64();

                    try
                    {
                        Characternames = stats.player_name();

                        if (Characternames.Length > 0)
                        {
                            PlayerNames[i]        = Characternames;
                            this.ProcessHandle[i] = Wildstar[i].MainWindowHandle;
                            GameID[i]             = Wildstar[i].Id;
                        }
                    }
                    catch { }
                }

                for (int j = 0; j < this.ProcessHandle.Length; j++)
                {
                    if (this.PlayerNames[j] != null)
                    {
                        charactername_tbx.Items.Add(this.PlayerNames[j]);
                    }
                }
            }
            else if (client_version_tbx.SelectedItem.ToString() == "x86")
            {
                for (int i = 0; i < Wildstar_x86.Length; i++)
                {
                    // Open the process
                    ProcessReader.OpenProcxss(Wildstar_x86[i].Id);
                    ProcessReader.base_adress_x86 = Wildstar_x86[i].MainModule.BaseAddress.ToInt32();

                    try
                    {
                        Characternames = stats.player_name();

                        if ((Characternames.Length < 20) && (Characternames.Length > 0))
                        {
                            PlayerNames[i]        = Characternames;
                            this.ProcessHandle[i] = Wildstar_x86[i].MainWindowHandle;
                            GameID[i]             = Wildstar_x86[i].Id;
                        }
                    }
                    catch { }
                }

                for (int j = 0; j < this.ProcessHandle.Length; j++)
                {
                    if (this.PlayerNames[j] != null)
                    {
                        charactername_tbx.Items.Add(this.PlayerNames[j]);
                    }
                }
            }

            // # Shows Processes with Characternames
        }