Jump to content

dropAll is messed up


bloofacebaby

Recommended Posts

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
Link to comment
Share on other sites

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 ^^

Link to comment
Share on other sites

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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...