private async Task <bool> ExecuteAutoHandoverRequestItems() { var ShopExchangeDialog = RaptureAtkUnitManager.GetWindowByName("ShopExchangeItemDialog"); if (ShopExchangeDialog != null) { ShopExchangeDialog.SendAction(1, 3, 0); LogHelper.Instance.Log("Click ShopExchangeItemDialog Yes"); return(true); } var GrandCompanySupplyReward = RaptureAtkUnitManager.GetWindowByName("GrandCompanySupplyReward"); if (GrandCompanySupplyReward != null) { GrandCompanySupplyReward.SendAction(1, 3, 0); LogHelper.Instance.Log("Click GrandCompanySupplyReward Yes"); return(true); } if (Request.IsOpen) { try { if (await CommonTasks.HandOverRequestedItems(BotBase.Instance.HandoverHqIfnoNQ)) { Request.HandOver(); LogHelper.Instance.Log("Handing over request items..."); return(true); } } catch (InvalidOperationException) { LogHelper.Instance.Log("We don't have the required amount of a requested item."); return(false); } } return(false); }