public void ToggleScenario() { if (WindowByName != null) { WindowByName.SendAction(1, 3, 17); } }
public void Close() { if (WindowByName != null) { WindowByName.SendAction(1, 3, 0); } }
public void PressNpcSelection(int npc) { if (WindowByName != null && npc < 6) { WindowByName.SendAction(2, 3, 12, 4, (ulong)npc); } }
public void SetTrust(int trust) { if (WindowByName != null) { WindowByName.SendAction(2, 3, 15, 4, (ulong)trust); } }
public void Register() { if (WindowByName != null) { WindowByName.SendAction(1, 3, 14); } }
public bool CanRegister() { if (WindowByName == null) { return(false); } var remoteButton = WindowByName.FindButton(36); return(remoteButton != null && remoteButton.Clickable); }
public bool CanUpdateGearSet() { var button = WindowByName.FindButton(18); if (button == null) { return(false); } return(button.Clickable); }
public bool CanRequestInspection() { var button = WindowByName.FindButton(10); if (button != null) { return(button.Clickable); } return(false); }
public bool CanAutoSubmit() { var button = WindowByName.FindButton(8); if (button != null) { return(button.Clickable); } return(false); }
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); } } }