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.

[NEED HELP (again)] Switch Statement delay? [:)]

Featured Replies

4bdaa886cb834416e68a77c8f25f5f3e.png

 

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

4bdaa886cb834416e68a77c8f25f5f3e.png

 

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

0.0

I will ignore the questionable if statements for a moment and say:

I think i heard somewhere it has a built in minimum sleep.

4bdaa886cb834416e68a77c8f25f5f3e.png

My onLoop() returns 10, 50 and i don't have any sleeps more than around 500ms. yet not matter what i do there is a delay between cooking and banking? everything else is amazingly fast and works perfectly. its just i wonder if there is a reason why it is taking 2-4 secs to start the banking state?

I can tell you the delay is not in getState. It's in one of your other methods.

  • Author

0.0

I will ignore the questionable if statements for a moment and say:

I think i heard somewhere it has a built in minimum sleep.

 

My first script for a long time at the moment the if statements do what i need to test but of course i am open to suggestions.

And ah right fair enough thanks for the reply!

I can tell you the delay is not in getState. It's in one of your other methods.

 

Ah right :3 ill have to go through and debug everything. thanks for reply :)

pls nullcheck the bank booth tho

 

unless isVisible has a built in null check which i didnt kno about

 

c:

 

 

  • Author

pls nullcheck the bank booth tho

 

unless isVisible has a built in null check which i didnt kno about

 

c:

 

Lmao something so simply i didn't check :3. even tho i have been thinking to null check everything on other things i don't notice there D: thank you aha.

Edited by Manifesto

  • Author

How is it called in your onLoop?

 

Thank you for replying but i have sorted it out. was something in my waitingWhileMaking() method while it makes the wines. :)

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.