/// <summary> /// Selects Make All for the single make option that shows up over the chat box /// </summary> /// <param name="rsClient"></param> /// <returns></returns> public bool ChatBoxSingleOptionMakeAll(Process rsClient) { Point screenSize = ScreenScraper.GetWindowSize(rsClient); int X = 256; int Y = screenSize.Y - 90; Random rng = new Random(); Point leftClick = new Point(X, Y); Blob clickBlob = new Blob(leftClick); HandEye.MouseOverDroppedItem(clickBlob, true, 20, 5000); return(true); }
/// <summary> /// Looks for a mark of grace to pick up and picks it up if found. /// Returns the player to his starting location after picking it up. /// </summary> /// <returns>true if a mark of grace is found</returns> private bool ScanForMarkOfGrace(bool returnToOriginalPosition = true) { Blob markOfGraceBackground, markOfGraceFigure; if (Vision.LocateObject(MarkOfGraceBackground, out markOfGraceBackground, Screen.ArtifactArea(0.000355), Screen.ArtifactArea(0.00142)) && //ex 0.000710 Vision.LocateObject(MarkOfGraceFigure, out markOfGraceFigure, markOfGraceBackground.LeftBound, markOfGraceBackground.RightBound, markOfGraceBackground.TopBound, markOfGraceBackground.BottomBound, Screen.ArtifactArea(0.0000402))) { markOfGraceBackground.AddBlob(markOfGraceFigure); if (HandEye.MouseOverDroppedItem(markOfGraceBackground, true, 5, 3000)) { SafeWait(2000); Vision.WaitDuringPlayerAnimation(8000); if (returnToOriginalPosition) { LeftClick(2 * Screen.Center.X - markOfGraceBackground.Center.X, 2 * Screen.Center.Y - markOfGraceBackground.Center.Y); SafeWait(2000); Vision.WaitDuringPlayerAnimation(8000); } } } return(false); }