コード例 #1
0
ファイル: ExtraFuncs.cs プロジェクト: RaphaelK12/DSFBX
        public static void SetBriefingMsg(string str)
        {
            int tmpptr = 0;

            tmpptr = RInt32(0x13785dc);
            tmpptr = RInt32(tmpptr + 0x7c);

            WUnicodeStr(tmpptr + 0x3b7a, str + (char)0);

            IngameFuncs.RequestOpenBriefingMsg(10010721, true);
        }
コード例 #2
0
ファイル: Chr.cs プロジェクト: RaphaelK12/DSFBX
 public void ReturnControlPlayer()
 {
     MovementCtrl.DebugPlayerControllerPtr = 0;
     IngameFuncs.EnableLogic(10000, true);
     WorldChrMan.LocalPlayer.View();
 }
コード例 #3
0
ファイル: Chr.cs プロジェクト: RaphaelK12/DSFBX
 public void SwitchControlPlayer()
 {
     MovementCtrl.DebugPlayerControllerPtr = WorldChrMan.LocalPlayer.MovementCtrl.ControllerPtr;
     IngameFuncs.EnableLogic(10000, false);
     View();
 }
コード例 #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
        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;
        }