Class DepositBox

java.lang.Object
org.rspeer.game.component.DepositBox

public class DepositBox extends Object
  • Constructor Details

    • DepositBox

      public DepositBox()
  • Method Details

    • isOpen

      public static boolean isOpen()
    • open

      public static boolean open(Bank.Location loc)
      Walks to the deposit box using the web and opens it.
      Parameters:
      loc - the deposit box you want to open
      Returns:
      returns true when we are in any deposit box or successfully clicked the deposit box
    • open

      public static boolean open(Bank.Location loc, boolean strict)
      Walks to the deposit box using the web and opens it.
      Parameters:
      loc - the deposit box you want to open
      strict - if true it will guarantee you are at the correct deposit box before opening
      Returns:
      returns true when we are in the deposit box or successfully clicked the deposit box
    • open

      public static boolean open()
      Walks to the nearest deposit box determined via web
      Returns:
      returns true if we are in the deposit box or successfully clicked the deposit box
    • deposit

      public static boolean deposit(Function<ItemQuery, Item> function, int amount)
    • depositAll

      public static boolean depositAll(Function<ItemQuery, ItemQueryResults> function)
    • depositAllExcept

      public static boolean depositAllExcept(Function<ItemQuery, ItemQueryResults> function)
    • deposit

      public static boolean deposit(String name, int amount)
    • deposit

      public static boolean deposit(int id, int amount)
    • depositInventory

      public static boolean depositInventory()
    • depositEquipment

      public static boolean depositEquipment()
    • depositLoot

      public static boolean depositLoot()