/// <summary> /// Sets the reference colors for the lesser demon's parts if they haven't been set already /// </summary> private void GetReferenceColors() { LesserDemonSkin = RGBHSBRangeFactory.LesserDemonSkin(); LesserDemonHorn = RGBHSBRangeFactory.LesserDemonHorn(); RuneMedHelm = RGBHSBRangeFactory.RuneMedHelm(); MithrilArmor = RGBHSBRangeFactory.MithrilArmor(); ChaosRune = RGBHSBRangeFactory.ChaosRuneOrange(); DeathRune = RGBHSBRangeFactory.DeathRuneWhite(); MouseoverTextNPC = RGBHSBRangeFactory.MouseoverTextNPC(); }
public ButlerSawmill(RunParams startParams) : base(startParams) { InventoryCashSlot = new Point(2, 0); InventoryLawRuneSlot = new Point(1, 0); InventoryLogSlot = new Point(0, 0); FirstLogSlot = new Point(3, 0); BankCashSlot = new Point(7, 0); BankLawRuneSlot = new Point(6, 0); BankLogSlot = new Point(5, 0); BankPlankSlot = new Point(4, 0); YellowMouseOverText = RGBHSBRangeFactory.MouseoverTextNPC(); }
/// <summary> /// Mouses over an alleged NPC. Left-clicks if the NPC text appears. /// </summary> /// <param name="ObjectsToCheck">alleged NPC</param /// <param name="click">set to false to skip clicking on the NPC</param> /// <param name="randomization">maximum number of pixels from the center of the blob that it is safe to click</param> /// <returns>true if a matching NPC is found and clicked on</returns> internal bool MouseOverNPC(Blob npc, bool click = true, int randomization = 5, int maxWait = 1000) { return(MouseOver(npc.Center, RGBHSBRangeFactory.MouseoverTextNPC(), click, randomization, maxWait)); }