Package org.rsbot.script.wrappers

Examples of org.rsbot.script.wrappers.RSItem.doClick()


   *                  button.
   * @return <tt>true</tt> if item was selected, <tt>false</tt> if not.
   */
  public boolean clickSelectedItem(final boolean leftClick) {
    final RSItem item = getSelectedItem();
    return item != null && item.doClick(true);
  }

  /**
   * Checks whether or not your inventory contains the provided item ID.
   *
 
View Full Code Here


            log.info("Selecting " + SELECTED_REWARD.name() + " as reward");
        }
        switch (getState()) {
            case OPEN_RANDOM:
                RSItem item = inventory.getItem(Values.ACTIVATION_ITEMS);
                if (item != null && item.doClick(true)) {
                  for (int i = 0; i < 35; i++) {
                    if (interfaces.get(Values.INTERFACE_MAIN_BOX).isValid() || interfaces.get(Values.INTERFACE_XP_SELECTION).isValid()) {
                      break;
                    }
                    sleep(100);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.