Пример #1
0
 public void ToggleScenario()
 {
     if (WindowByName != null)
     {
         WindowByName.SendAction(1, 3, 17);
     }
 }
Пример #2
0
 public void Close()
 {
     if (WindowByName != null)
     {
         WindowByName.SendAction(1, 3, 0);
     }
 }
Пример #3
0
 public void PressNpcSelection(int npc)
 {
     if (WindowByName != null && npc < 6)
     {
         WindowByName.SendAction(2, 3, 12, 4, (ulong)npc);
     }
 }
Пример #4
0
 public void SetTrust(int trust)
 {
     if (WindowByName != null)
     {
         WindowByName.SendAction(2, 3, 15, 4, (ulong)trust);
     }
 }
Пример #5
0
 public void Register()
 {
     if (WindowByName != null)
     {
         WindowByName.SendAction(1, 3, 14);
     }
 }
Пример #6
0
        public bool CanRegister()
        {
            if (WindowByName == null)
            {
                return(false);
            }
            var remoteButton = WindowByName.FindButton(36);

            return(remoteButton != null && remoteButton.Clickable);
        }
Пример #7
0
        public bool CanUpdateGearSet()
        {
            var button = WindowByName.FindButton(18);

            if (button == null)
            {
                return(false);
            }

            return(button.Clickable);
        }
Пример #8
0
        public bool CanRequestInspection()
        {
            var button = WindowByName.FindButton(10);

            if (button != null)
            {
                return(button.Clickable);
            }

            return(false);
        }
Пример #9
0
        public bool CanAutoSubmit()
        {
            var button = WindowByName.FindButton(8);

            if (button != null)
            {
                return(button.Clickable);
            }

            return(false);
        }
Пример #10
0
        public async Task ClickSpot(int slot)
        {
            //var patternFinder = new GreyMagic.PatternFinder(Core.Memory);
            //IntPtr KupoClick = patternFinder.Find("E8 ? ? ? ? 32 C0 48 8B 5C 24 ? 48 8B 74 24 ? 48 83 C4 ? 5F C3 48 8B 03 48 8B CB FF 50 ? TraceCall");

            if (IsOpen)
            {
                var agent = WindowByName.TryFindAgentInterface();

                if (agent != null)
                {
                    Core.Memory.CallInjected64 <uint>(Offsets.KupoFunction, new object[2]
                    {
                        agent.Pointer,
                        (uint)1
                    });

                    await Coroutine.Sleep(2000);
                }
            }
        }