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.

If statement is unreachable?

Featured Replies

Can anyone tell me why this statement is unreachable? If I mess around with the brackets to get the statement reachable, the else statement isn't paired with any if statements anymore. Its on line 43

https://gyazo.com/c840ffe12d80c78008ce9c1f6f1cc31c

And if anyone could give me feedback or pointers for the code I have right now, that would be really appreciated. 

https://github.com/Dab-in-a-Lab/Wilderness-Looter/blob/master/Current Code

Looks a bit messy... Are you declaring a method in your onLoop()? also you have a return statement right after you declare the method so all the code that follows in unreachable. Also what's with the random curly brackets on line 41? that could also be causing issues.

  • Author
14 minutes ago, Theorems said:

Looks a bit messy... Are you declaring a method in your onLoop()? also you have a return statement right after you declare the method so all the code that follows in unreachable. Also what's with the random curly brackets on line 41? that could also be causing issues.

Hahaha ya, I quickly realized I was a little too ambitious with this script. Only just started learning how to code this week, and the project seemed easy enough until I actually got a bit further into it ?

I fixed the return statement and I honestly don't know why the curly bracket was there, I think it was attached to the end of line 40?

It seems to be working for now, thank you.

22 minutes ago, Dab in a Lab said:

Hahaha ya, I quickly realized I was a little too ambitious with this script. Only just started learning how to code this week, and the project seemed easy enough until I actually got a bit further into it ?

I fixed the return statement and I honestly don't know why the curly bracket was there, I think it was attached to the end of line 40?

It seems to be working for now, thank you.

Good luck with the script! you're doing really well for someone who is just learning

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.