Beispiel #1
0
 public static void teleportToMine() {
   while (!below.validate()) {
     while (!Tabs.EQUIPMENT.open()) Tabs.EQUIPMENT.open();
     WidgetChild gloves = Widgets.get(387, 26);
     if (gloves == null) {
       karajamaGloves = false;
       getState();
       return;
     }
     gloves.interact("Teleport");
     Task.sleep(4000, 6000);
   }
   getState(); // after we teleport to mine we need to get the state
 }
Beispiel #2
0
 /**
  * Gets the equipment widget.
  *
  * @return the equipment <code>Widget</code>
  */
 public static Widget getWidget() {
   if (!Bank.isOpen()) {
     Tabs.EQUIPMENT.open();
     return Widgets.get(WIDGET);
   }
   return Widgets.get(WIDGET_BANK);
 }