Jump to content
OSBOTTESTER101

Blast furnace bot help OSRS

Recommended Posts

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?

Link to post
Share on other sites
import org.osbot.rs07.utility.ConditionalSleep;


import java.util.function.BooleanSupplier;

public final class Sleep extends ConditionalSleep {

    private final BooleanSupplier condition;

    public Sleep(final BooleanSupplier condition, final int timeout) {
        super(timeout);
        this.condition = condition;
    }

    @Override
    public final boolean condition() throws InterruptedException {
        return condition.getAsBoolean();
    }

    public static boolean sleepUntil(final BooleanSupplier condition, final int timeout) {
        return new Sleep(condition, timeout).sleep();
    }
}

 

this is my sleep method

Link to post
Share on other sites

try looping logic were all states are independent... making bots like how you are just clause alot of errors.

examples can be found in here https://github.com/Explv/Explvs-AIO/tree/master/src/main/java/activities/skills

I think this is what you need to make a blast furnce bot(sorry the blocks are all fucked up)

if(gold bars in inv){
	if(not at bank){
         if(moving){
                  wait
         }else{
                  walk to bank
          }
	}else{
		do banking things
		like swap gloves and withdraw gold ore 
	}
	
}else{
  if(gold ore in inv){
    if(moving){
        wait
    }else{
      if (Conveyor not in  view ){
      move towards 
      }else{
      click Conveyor
      }
    }
  }else{
     if(gloves right gloves on){
		pick up bars
	}else{
		swap gloves
	}
  }

}

 

Edited by Nbacon
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...