Package org.rsbot.script.wrappers

Examples of org.rsbot.script.wrappers.RSComponent.containsText()


  @Override
  public boolean activateCondition() {
    final RSComponent component = interfaces.getComponent(210, 1);
    return game.isLoggedIn() &&
        (objects.getNearest(allAppendages) != null ||
        component.containsText("Abyssal Service") &&
        component.containsText("apologises for the inconvenience"));
  }

  private int getOddAppendage() {
    final int answer = settings.getSetting(setting);
View Full Code Here


  public boolean activateCondition() {
    final RSComponent component = interfaces.getComponent(210, 1);
    return game.isLoggedIn() &&
        (objects.getNearest(allAppendages) != null ||
        component.containsText("Abyssal Service") &&
        component.containsText("apologises for the inconvenience"));
  }

  private int getOddAppendage() {
    final int answer = settings.getSetting(setting);
    try {
View Full Code Here

          walking.walkTileMM(portalLocation.randomize(2, 2));
          return random(1500, 2000);
        }
      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
View Full Code Here

      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
    if (interfaces.getComponent(184, 0).isValid()) {
      final int modelID = interfaces.getComponent(184, 8).getComponent(3).getModelID();
      String itemName = null;
View Full Code Here

      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
    if (interfaces.getComponent(184, 0).isValid()) {
      final int modelID = interfaces.getComponent(184, 8).getComponent(3).getModelID();
      String itemName = null;
View Full Code Here

        }
        return random(1000, 2000);
      }
      for (int j = 0; j < 3; j++) {
        final RSComponent iface = interfaces.getComponent(184, 8).getComponent(j);
        if (iface.containsText(itemName)) {
          iface.doClick();
          return random(1000, 1200);
        }
      }
    }
View Full Code Here

    }
    try {
      if (canContinue()) {
        if (!talkedToHerald) {
          final RSComponent heraldTalkComp = interfaces.getComponent(242, 4);
          talkedToHerald = heraldTalkComp.isValid() && (heraldTalkComp.containsText("crown") || heraldTalkComp.containsText("is still waiting"));
        }
        if (!interfaces.clickContinue()) {
          interfaces.getComponent(65, 6).doClick();
        }
        return random(600, 800);
View Full Code Here

    }
    try {
      if (canContinue()) {
        if (!talkedToHerald) {
          final RSComponent heraldTalkComp = interfaces.getComponent(242, 4);
          talkedToHerald = heraldTalkComp.isValid() && (heraldTalkComp.containsText("crown") || heraldTalkComp.containsText("is still waiting"));
        }
        if (!interfaces.clickContinue()) {
          interfaces.getComponent(65, 6).doClick();
        }
        return random(600, 800);
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.