Ejemplo n.º 1
0
        private bool Deactivate(string key)
        {
            switch (key)
            {
            case "InstantCharge":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x0F, 0x11, 0x47, 0x10 }, "userassembly.dll", (IntPtr)0x346DCCF, null));

            case "FastAttacks":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x41, 0x0F, 0x11, 0x07, 0x44, 0x88, 0x67, 0x7C }, "userassembly.dll", (IntPtr)0x120FF84, null));

            case "Esp Treasure Chest":
                if (!GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x74 }, "userassembly.dll", (IntPtr)0x1C6F317, null))
                {
                    return(false);
                }
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x74 }, "userassembly.dll", (IntPtr)0x1C6F39A, null));

            case "Monster's Level":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x0F, 0x87 }, "userassembly.dll", (IntPtr)0x125AD3D, null));

            case "Monster's Hp":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x76 }, "userassembly.dll", (IntPtr)0x12597BB, null));

            default:
                return(false);
            }
        }
Ejemplo n.º 2
0
        private void ulti_cd(char _key)
        {
            string _err = null;

            byte[] ActualBytes        = { 0x0F, 0x10, 0x70, 0x30 };
            long   UltiCD_BaseAddress = 0x1CCE771;
            string UltiCD_ModuleName  = "userassembly.dll";

            if (_key == 'n')
            {
                ActualBytes = new byte[] { 0x0, 0x0, 0x0, 0x0 }
            }
            ;

            if (GenPactMem.HardCoreMemoryWrite(out _err, ActualBytes, UltiCD_ModuleName, (IntPtr)UltiCD_BaseAddress, null))
            {
                if (_key == 'n')
                {
                    WriteLogs($"[ {++cnt} ] Success -> UltiCD is ON !", Color.YellowGreen, true);
                }
                else
                {
                    WriteLogs($"[ {++cnt} ] Success -> UltiCD is OFF !", Color.YellowGreen, true);
                }
            }
            else
            {
                WriteLogs($"[ {++cnt} ] {_err}", Color.Red, true);
            }
        }
Ejemplo n.º 3
0
        private void SpeedBar_Scroll(object sender, EventArgs e)
        {
            string __err = "";

            CurrentSpeed.Text = SpeedBar.Value.ToString();
            bool res = GenPactMem.HardCoreMemoryWrite(out __err, BitConverter.GetBytes((float)SpeedBar.Value), MainModuleName, (IntPtr)ModuleOffset, offset);

            if (!res)
            {
                WriteLogs(__err, Color.Red, true);
            }
            else
            {
                WriteLogs($"[ {++cnt} ] Succeded on changing the value !", Color.AliceBlue, true);
            }
        }
Ejemplo n.º 4
0
        private void skill_cd(char _key)
        {
            string _err = null;

            byte[] ActualBytes        = { 0xF3, 0x0F, 0x58, 0x7B, 0x70 };
            long   UltiCD_BaseAddress = 0x1CCFD0D;
            string UltiCD_ModuleName  = "userassembly.dll";

            if (_key == 'n')
            {
                ActualBytes = new byte[] { 0x90, 0x90, 0x90, 0x90 }
            }
            ;

            if (GenPactMem.HardCoreMemoryWrite(out _err, ActualBytes, UltiCD_ModuleName, (IntPtr)UltiCD_BaseAddress, null))
            {
                WriteLogs($"[ {++cnt} ] Success -> UltiCD is ON !", Color.YellowGreen, true);
            }
            else
            {
                WriteLogs($"[ {++cnt} ]  Error happend -> {_err} !", Color.Red, true);
            }
        }
    }
Ejemplo n.º 5
0
 private void Memory_Writer(byte[] _Bytes, long bAddr , string ModuleName , string successMsg = "[ + ] Success !")
 {
     string _err = null;
     if (GenPactMem.HardCoreMemoryWrite(out _err, _Bytes, ModuleName, (IntPtr)bAddr, null)) MainGenPact.WriteLogs(successMsg, Color.Red, true);
     else MainGenPact.WriteLogs($"{_err}", Color.Red, true);
 }