Exemplo n.º 1
0
 /// <summary>
 /// Drinks a dose of stamina potion.
 /// Assumes that a stamina potion is already in its designated inventory slot.
 /// </summary>
 protected void DrinkStaminaPotion()
 {
     Inventory.ClickInventory(InventorySlotStaminaPotion);
     StaminaTimer.Restart();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines if the logs, law runes, and coins are in te inventory
 /// </summary>
 /// <returns>true if the first 3 inventory slots are not empty</returns>
 protected bool ItemsAreReady()
 {
     return(!Inventory.SlotIsEmpty(InventoryLogSlot) && !Inventory.SlotIsEmpty(InventoryLawRuneSlot) && !Inventory.SlotIsEmpty(InventoryCashSlot));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Determines if a pouch in a given inventory slot is damaged
 /// </summary>
 /// <param name="x">column</param>
 /// <param name="y">row</param>
 /// <returns>true if pouch is damaged</returns>
 protected bool PouchIsDamaged(int x, int y, bool readWindow = true)
 {
     return(Inventory.SlotMatchesColorFilter(x, y, DamagedPouchColor, 0.005));
 }