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.

Why is this causing my onLoop to return?

Featured Replies

Not really sure whats going on, but after I added this snippet the onLoop kept returning and never running my Tasks. It never makes it to 3 in the logger but also never logs "inside"

f6lJRCe.png

 

LxoZrLX.png

 

 

Note: Don't mention the shitty code in this snippet, it's not live, just a hackjob feature I needed for a spot I was at and didn't matter if the interactiong actually succeeded as the player would idle out anyways.

 

Note 2: I'm not even using that feature and have ensured that stopLootName is empty.

Edited by Polymorphism

Well the first thing to look into if it never reaches to 3, to look at the first previous statement or make better debug messages.
 

if(first condition) {
  log('first condition');

  ...

  if(still here) {
  	log('still here');
	....
  }
}

In your case since it never reaches to 3, the statement must never be met. So your statement after log 2 needs work.

Edited by Hayase

  • Author
22 minutes ago, Hayase said:

Well the first thing to look into if it never reaches to 3, to look at the first previous statement or make better debug messages.
 

In your case since it never reaches to 3, the statement must never be met. So your statement after log 2 needs work.

 

My statements and debug messages are just fine. Also those ghetto debug messages are not nested inside logic statements, just onLoop() -> try-catch

bKsmFys.png

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.