Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dropAll is messed up

Featured Replies

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

  • Developer
2 hours ago, bloofacebaby said:

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

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

Edited by Khaleesi

  • Author

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

  • Developer
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

  • Author
9 minutes ago, Khaleesi said:

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

Should be btw:


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

Oops, that !.

So I guess that means I don't need to add the Conditional sleep at all then, thank you :D

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.