Jump to content

dropAll is messed up


Recommended Posts

Posted (edited)

I’m using getInventory.dropAll() to drop any “Logs”. But every 3rd logs the script drops, the mouse spasms across the screen. Is this normal? It’s my first script

 

edit: I woke up today, ran the script again, turned on Mouse Trails and the issue is not occurring anymore. It was only happening on my 1st test bot which got banned, 2nd one didn't get banned yet and neither did it have mouse spasm issues.

Edited by bloofacebaby
Posted

This is my code:

	if(getInventory().isFull()) {
            //If logs exist in inventory, drop them
            log("Dropping logs");
            getInventory().dropAll("Logs", "Oak logs", "Willow logs");
            Sleep.sleepUntil(() -> !getInventory().isEmpty(), 30000,1000);
	}

The issue stopped happening today, not sure why since I haven't changed my code at all. I suspect if anything it was my camera zoom? It wasn't set to default before but idk if that causes issues or not.

 

But since you're all here, is this Conditional Sleep implementation correct for waiting till all logs are dropped?  I'm using Explv's lambda class

 

 

6 hours ago, Khaleesi said:

Use fixed screen mode :)
Show some code aswell ^^

Posted (edited)
5 minutes ago, bloofacebaby said:

This is my code:


	if(getInventory().isFull()) {
            //If logs exist in inventory, drop them
            log("Dropping logs");
            getInventory().dropAll("Logs", "Oak logs", "Willow logs");
            Sleep.sleepUntil(() -> !getInventory().isEmpty(), 30000,1000);
	}

The issue stopped happening today, not sure why since I haven't changed my code at all. I suspect if anything it was my camera zoom? It wasn't set to default before but idk if that causes issues or not.

 

But since you're all here, is this Conditional Sleep implementation correct for waiting till all logs are dropped?  I'm using Explv's lambda class

 

 

I'm pretty sure osbot drop method already has a sleep in it :D

Should be btw:

Sleep.sleepUntil(() -> getInventory().isEmpty(), 30000,1000);
Edited by Khaleesi

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...