コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Wulf2k/Dss-Test2
        private void btnTst_Click(object sender, RoutedEventArgs e)
        {
            EzDrawHook.Hook3();
            EzDrawHook.Box titlebox = new EzDrawHook.Box();

            titlebox.Size = new Vector2(250, 250);
            titlebox.Pos  = new Vector2(1050, 300);

            titlebox.Flags     = 7;
            titlebox.TexHandle = TexMan.GetHandleTexHdlResCap("Icon00");


            //for (int i = 0; i < TexMan.NumTexHdlResCaps; i++)
            //Console.WriteLine(TexMan.TexHdlResCaps[i].ResName);
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Wulf2k/Dss-Test2
        private void DeadCount()
        {
            if (FrpgSystem.Address.Equals(IntPtr.Zero))
            {
                Launch();
                WaitForTitle();
                while (MenuMan.LoadingState == 0)
                {
                    Thread.Sleep(33);
                }
                while (MenuMan.LoadingState > 0)
                {
                    Thread.Sleep(33);
                }
            }

            EzDrawHook.Hook3();
            EzDrawHook.Text deadtxt = new EzDrawHook.Text();

            deadtxt.Pos       = FrpgWindow.DisplaySize / new Vector2(2.5f, 1.25f);
            deadtxt.Size      = 70;
            deadtxt.TextColor = Color.Red;
            deadtxt.Txt       = " ";

            while (Hook.RInt32(0x140000000) > 0)
            {
                if ((WorldChrMan.LocalPlayer.HP <= 0) && (MenuMan.LoadingState == 0))
                {
                    deadtxt.Txt = $@"Painful Owwy Count:  {GameDataMan.DeathNum}";
                }
                else
                {
                    deadtxt.Txt = " ";
                }
                Thread.Sleep(33);
            }
        }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: Wulf2k/Dss-Test2
        void testing2()
        {
            if (FrpgSystem.Address == IntPtr.Zero)
            {
                Launch();
                WaitForBoot();
                //DbgNodeRestore();

                UInt32 jmp       = 0x2773FB;
                UInt32 prototype = 0x25a130;
                output($"Setting Prototype start\n");
                Hook.WUInt32(0x1402773f7, prototype - jmp);

                Thread.Sleep(500);
            }

            Vector2 pixRatio = FrpgWindow.DisplaySize / new Vector2(1920, 1080);
            Vector2 txtRatio = FrpgWindow.WindowSize / new Vector2(1920, 1080);



            UInt32 ProtoStepNum = 0;


            while (ProtoStepNum != 4)
            {
                //[[[[[141c04e28]+8]+20]+58]+20]
                ProtoStepNum = Hook.RUInt32(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x10);
                Thread.Sleep(33);
            }

            EzDrawHook.Hook3();



            EzDrawHook.Box  titlebox = new EzDrawHook.Box();
            EzDrawHook.Text titletxt = new EzDrawHook.Text();

            titlebox.Color1 = Color.Black;
            titlebox.Color2 = Color.Black;
            titlebox.Size   = new Vector2(200, 75) * pixRatio;
            titlebox.Pos    = new Vector2(1200, 600) * pixRatio;

            titletxt.Pos       = new Vector2(1250, 600) * txtRatio;
            titletxt.Size      = 45;
            titletxt.TextColor = Color.Red;
            titletxt.Txt       = "MEME";



            int loopcounter = 0;

            while (ProtoStepNum == 4)
            {
                //[[[[[141c04e28]+8]+20]+58]+20]
                ProtoStepNum       = Hook.RUInt32(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x10);
                titletxt.TextColor = Color.FromArgb(Convert.ToByte((Hook.RFloat(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x38) / 3) * 255), 255, 0, 0);

                Thread.Sleep(33);
                loopcounter++;

                if (loopcounter == 200)
                {
                    Hook.WUInt32(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x10, 0xc);
                }
            }

            loopcounter = 0;

            titlebox.Pos    = new Vector2(0, 0);
            titlebox.Size   = new Vector2(FrpgWindow.DisplaySize.X, 200) * pixRatio;
            titlebox.Color1 = Color.LightGray;
            titlebox.Color2 = Color.LightGray;

            titletxt.Pos       = new Vector2(600, 75) * txtRatio;
            titletxt.TextColor = Color.Yellow;
            titletxt.Txt       = "CHOOSE YOUR FIGHTER";

            EzDrawHook.Text beattxt = new EzDrawHook.Text();
            beattxt.Size = 30;
            beattxt.Txt  = "Dun";

            Random rnd = new Random();


            EzDrawHook.Box chrbg = new EzDrawHook.Box();
            chrbg.Size   = new Vector2(270, 710) * pixRatio;
            chrbg.Pos    = new Vector2(395, 225) * pixRatio;
            chrbg.Color1 = Color.DarkGray;
            chrbg.Color2 = Color.DarkGray;


            EzDrawHook.Text chrname = new EzDrawHook.Text();
            chrname.TextColor = Color.Gold;
            chrname.Size      = 25;
            chrname.Pos       = new Vector2(400, 850) * txtRatio;
            chrname.Txt       = "Sir Notappearing\nInthisfilm";



            while (loopcounter <= 40)
            {
                beattxt.Pos       = new Vector2(rnd.Next(0, Convert.ToInt32(FrpgWindow.WindowSize.X)), rnd.Next(0, 200)) * txtRatio;
                beattxt.TextColor = Color.FromArgb(255, rnd.Next(0, 255), rnd.Next(0, 255), rnd.Next(0, 255));
                Thread.Sleep(250);
                loopcounter++;

                if ((loopcounter % 10) == 0)
                {
                    Hook.WInt32(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x44, loopcounter / 10);
                }
            }


            chrbg.Cleanup();
            //chrname.Cleanup();
            chrname.Txt = " ";
            //beattxt.Cleanup();
            beattxt.Txt = " ";

            Thread.Sleep(1000);
            Hook.WUInt32(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(Hook.RIntPtr(0x141c04e28) + 8) + 0x20) + 0x58) + 0x20) + 0x10, 0xe);

            while (MenuMan.LoadingState == 0)
            {
                Thread.Sleep(33);
            }


            titlebox.Size   = FrpgWindow.DisplaySize;
            titlebox.Pos    = new Vector2(0, 0);
            titlebox.Color1 = Color.Black;
            titlebox.Color2 = Color.Black;

            titletxt.Txt       = "L O A D I N G";
            titletxt.TextColor = Color.BlanchedAlmond;
            titletxt.Pos       = new Vector2(FrpgWindow.WindowSize.X / 2 - 100, 500) * txtRatio;

            while (MenuMan.LoadingState > 0)
            {
                Thread.Sleep(33);
            }



            Thread.Sleep(1000);

            ChrDbg.PlayerHide    = true;
            ChrDbg.AllNoUpdateAI = true;



            WorldChrMan.LocalPlayer.WarpToCoords(23.728f, 15.817f, -118.945f, 90.0f);

            Thread.Sleep(500);
            WorldChrMan.LocalPlayer.WarpToCoords(32.0f, 15.817f, -118.945f, 270.0f);

            FreeCam.Enabled = true;
            FreeCam.PosX    = 28.5f;
            FreeCam.PosY    = 18.5f;
            FreeCam.PosZ    = -128.0f;
            FreeCam.RotX    = 0.0f;
            FreeCam.RotY    = 0.0f;
            FreeCam.RotZ    = 1.0f;

            Thread.Sleep(500);

            MenuMan.ActionMsgState = 0;
            MenuMan.TextEffect     = 0;



            GameDataMan.Options.HUD = false;

            //1010700 = taurus
            Enemy taurus = WorldChrMan.GetEnemyByName("c2250_0000");

            Thread.Sleep(1000);
            IngameFuncs.ForcePlayAnimation(1010700, -1);
            taurus.WarpToCoords(25.728f, 15.8f, -119.945f, 90.0f);

            titlebox.Cleanup();
            titletxt.Cleanup();

            IngameFuncs.ChangeTarget(1010700, 10000);
            IngameFuncs.ChangeTarget(10000, 1010700);

            Thread.Sleep(1000);

            IngameFuncs.PlayAnimation(10000, 6500);
            Thread.Sleep(1000);
            IngameFuncs.ForceDead(1010700, 1);
            GameMan.IsDisableAllAreaEvent = true;
            GameMan.IsDisableAllAreaEne   = true;
        }
コード例 #4
0
ファイル: MainWindow.xaml.cs プロジェクト: Wulf2k/Dss-Test2
        void BleedDisp()
        {
            Launch();
            WaitForBoot();
            SetNoLogo();
            WaitForTitle();


            EzDrawHook.Hook();
            EzDrawHook.SetHook(1);

            EzDrawHook.Box[] bars = new EzDrawHook.Box[8];
            EzDrawHook.Box[] bgs  = new EzDrawHook.Box[8];

            Vector2 scrRatio = FrpgWindow.DisplaySize / new Vector2(1280, 720);

            for (int x = 0; x < 8; x++)
            {
                bgs[x]               = new EzDrawHook.Box();
                bgs[x].Size          = new Vector2(120, 10);
                bgs[x].Color1        = Color.Black;
                bgs[x].Color2        = Color.Black;
                bgs[x].IgnoreCulling = true;

                bars[x]               = new EzDrawHook.Box();
                bars[x].Size          = new Vector2(120, 10);
                bars[x].Color1        = Color.Red;
                bars[x].Color2        = Color.Red;
                bars[x].IgnoreCulling = true;
            }

            while (true)
            {
                try
                {
                    for (int x = 0; x < 8; x++)
                    {
                        if ((MenuMan.HpBars[x].Visible > -1) && (MenuMan.HpBars[x].Pos.X > 0) && (MenuMan.HpBars[x].Pos.Y > 0) && (MenuMan.HpBars[x].Handle > -1))
                        {
                            float BleedRatio = (float)1;
                            bgs[x].Pos = MenuMan.HpBars[x].Pos * scrRatio;

                            try
                            {
                                Enemy nme = Enemy.FromPtr(IngameFuncs.GetPlayerInsFromHandle(MenuMan.HpBars[x].Handle));
                                BleedRatio = (float)1 - ((float)nme.BleedResist / (float)nme.MaxBleedResist);
                                //BleedRatio = (float)0.33;
                                bars[x].Size = new Vector2(bgs[x].Size.X * BleedRatio, bgs[x].Size.Y);
                                bars[x].Pos  = bgs[x].Pos - new Vector2((bgs[x].Size.X - bars[x].Size.X) / 2, 0);
                            }
                            catch (Exception ex) { Console.WriteLine(ex.Message); }
                        }
                        else
                        {
                            bgs[x].Pos  = new Vector2(-2000, -2000);
                            bars[x].Pos = bgs[x].Pos;
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
コード例 #5
0
ファイル: MainWindow.xaml.cs プロジェクト: Wulf2k/Dss-Test2
        private void testing()
        {
            if (FrpgSystem.Address == IntPtr.Zero)
            {
                Launch();
                WaitForBoot();
                SetNoLogo();
                WaitForTitle();
            }

            try
            {
                EzDrawHook.Hook3();

                EzDrawHook.Box    soulbox    = new EzDrawHook.Box();
                EzDrawHook.Text   soultxt    = new EzDrawHook.Text();
                EzDrawHook.Sphere humsph     = new EzDrawHook.Sphere();
                EzDrawHook.Text   humtxt     = new EzDrawHook.Text();
                EzDrawHook.Box    maxhpbox   = new EzDrawHook.Box();
                EzDrawHook.Box    hpbox      = new EzDrawHook.Box();
                EzDrawHook.Text   hptxt      = new EzDrawHook.Text();
                EzDrawHook.Box    maxstambox = new EzDrawHook.Box();
                EzDrawHook.Box    stambox    = new EzDrawHook.Box();
                EzDrawHook.Text   stamtxt    = new EzDrawHook.Text();



                while ((FrpgSystem.Address != IntPtr.Zero) && (MenuMan.GestureMenuState == 0))
                {
                    try
                    {
                        Vector2 pixRatio = FrpgWindow.DisplaySize / new Vector2(1000, 1000);
                        Vector2 txtRatio = FrpgWindow.WindowSize / new Vector2(1000, 1000);



                        soulbox.Color1 = Color.DeepPink;
                        soulbox.Color2 = Color.DeepPink;
                        soulbox.Size   = new Vector2(150, 40) * pixRatio;
                        soulbox.Pos    = new Vector2(800, 910) * pixRatio;

                        soultxt.TextColor = Color.Azure;
                        soultxt.Size      = 20;
                        soultxt.Pos       = new Vector2(825, 915) * txtRatio;
                        soultxt.Txt       = "00000000";


                        humsph.Color1 = Color.Blue;
                        humsph.Color2 = Color.Red;
                        humsph.Size   = new Vector3(50, 50, 0) * new Vector3(pixRatio, 0);
                        humsph.Pos    = new Vector3(100, 100, 0) * new Vector3(pixRatio, 0);


                        humtxt.TextColor = Color.Cyan;
                        humtxt.Size      = 30;
                        humtxt.Pos       = new Vector2(75, 75) * txtRatio;
                        humtxt.Txt       = "00";

                        maxhpbox.Color1 = Color.Teal;
                        maxhpbox.Color2 = Color.Purple;
                        maxhpbox.Size   = new Vector2(WorldChrMan.LocalPlayer.Stats.MaxHP * 0.75f, 40) * pixRatio;
                        maxhpbox.Pos    = new Vector2(165, 50) * pixRatio;

                        hpbox.Color1 = Color.DarkGoldenrod;
                        hpbox.Color2 = Color.DarkGoldenrod;
                        hpbox.Size   = new Vector2(WorldChrMan.LocalPlayer.Stats.HP * 0.75f, 40) * pixRatio;
                        hpbox.Pos    = new Vector2(165, 50) * pixRatio;

                        hptxt.TextColor = Color.Cyan;
                        hptxt.Size      = 20;
                        hptxt.Pos       = new Vector2(170, 55) * txtRatio;
                        hptxt.Txt       = $@"{WorldChrMan.LocalPlayer.HP}/{WorldChrMan.LocalPlayer.MaxHP}";

                        maxstambox.Color1 = Color.Purple;
                        maxstambox.Color2 = Color.Teal;
                        maxstambox.Size   = new Vector2(WorldChrMan.LocalPlayer.Stats.MaxStamina * 2, 40) * pixRatio;
                        maxstambox.Pos    = new Vector2(165, 100) * pixRatio;

                        stambox.Color1 = Color.DarkSeaGreen;
                        stambox.Color2 = Color.DarkSeaGreen;
                        stambox.Size   = new Vector2(WorldChrMan.LocalPlayer.Stats.Stamina * 2, 40) * pixRatio;
                        stambox.Pos    = new Vector2(165, 100) * pixRatio;

                        stamtxt.TextColor = Color.Cyan;
                        stamtxt.Size      = 20;
                        stamtxt.Pos       = new Vector2(170, 105) * txtRatio;
                        stamtxt.Txt       = $@"{WorldChrMan.LocalPlayer.Stats.Stamina}/{WorldChrMan.LocalPlayer.Stats.MaxStamina}";

                        //if (nmecount > 0)
                        //{
                        //if (lastdpad != PadMan.dpad)
                        //{
                        //if (PadMan.dpad == 4)  //left
                        ///idx--;
                        //if (PadMan.dpad == 8)
                        //idx++;
                        //if (idx < 0)
                        ///idx = WorldChrMan.GetEnemies().Count - 1;
                        //if (idx > WorldChrMan.GetEnemies().Count - 1)
                        //idx = 0;
                        //lastdpad = PadMan.dpad;
                        //}

                        //Player player = WorldChrMan.LocalPlayer;
                        //Enemy nme = WorldChrMan.GetEnemies()[idx];

                        //chridx.Txt = idx.ToString();
                        //chrname.Txt = nme.GetName();

                        //nme.ChrCtrl.DebugPlayerControllerPtr = player.ChrCtrl.ControllerPtr;
                        //player.WarpToEnemy(nme);

                        //WorldChrManDbg.DbgViewChrIns = nme.Address;

                        //player.Slot.IsDisable = true;
                        //player.Slot.IsHide = true;
                        //}

                        //Console.WriteLine(nme.Address.ToString("X"));
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }