Jump to content

xtlk

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xtlk

  1. Hi there. I ve got a raw script. but i dont know how to run it. Maybe i need to compile it? Could somebody help me with that?

    heres script (prayer potion drinker. i ve just copied it from the forum :D)

    public void drinkPotion() throws InterruptedException {
    if (containsPotion() == true) {
    if (client.getSkills().getCurrentLevel(Skill.PRAYER) <= 12) {
    for (int i = 0; i < 4; i++) {
    if (client.getInventory().interactWithName(
    "Prayer potion(" + i + ")", "Drink")) {
    sleep(random(600, 900));
    }
    }
    }
    }
    }
     
    public boolean containsPotion() {
    for (int i = 0; i < 4; i++) {
    if (client.getInventory().contains("Prayer potion(" + i + ")")) {
    return true;
    }
    }
    return false;
    }  
×
×
  • Create New...