if (exactLocationOfConveyor.interact(x.getBot(), "Put-ore-on") || exactLocationOfConveyor2.interact(x.getBot(), "Put-ore-on")) {
Sleep.sleepUntil(() -> !x.myPlayer().isMoving() && !x.getInventory().contains("Gold ore"), 5000);
if (!x.getInventory().contains("Gold ore")) {
x.getWalking().walk(exactLocationOfBarDispenser);
Sleep.sleepUntil(() -> getSmithXP < x.getSkills().getExperience(Skill.SMITHING), 3000);
if (x.getEquipment().isWearingItem(EquipmentSlot.HANDS, "Goldsmith gauntlets")) {
x.getInventory().interact("Wear", "Ice gloves");
barDispenser.interact("Take");
}
}
}
Ok so I am getting results on my bot up until the lines i wrote in here
the first line works for example it is suppose to click on the conveyor belt and walk to it but for some reason it does do that and when it gets there it spams click instead of sleeping
i am using a sleep that i found on explvs and it was working for some things but it just does not actaully sleep the way i thought it would
any suggestion?