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.

Help with First Script

Featured Replies

Hi guys. Trying to make my first script by using explv 101 tutorial layout but making a chaos druid script instead.

however i was making my methods but for some reason i cant understand red lines are coming up. I even copied and pasted one of explv to see if it would work and i still got red lines.

any help would be appreciated :)

T7QASkR.png

 

 

You're missing a semicolon after your Area declaration at the top along with the Area parameters. Fix those and most of the errors should disappear.

5 minutes ago, Luke Reading said:

Hi guys. Trying to make my first script by using explv 101 tutorial layout but making a chaos druid script instead.

however i was making my methods but for some reason i cant understand red lines are coming up. I even copied and pasted one of explv to see if it would work and i still got red lines.

any help would be appreciated :)

T7QASkR.png

 

 

Line 1: missing semicolon. Whenever you have a statement, it needs a semicolon. If placing a set of curly brackets after the statement doesn't work, you know it needs a semicolon.

the other ones between '(){' is because you're missing spaces between the '()' and '{'. That's just styling "errors" to make your code look pretty.

The long one; missing a bracket on the left side, right after the return.

Last two lines, they are erroring because you have return true, else, return true. This always returns true, make the second one return false.

Edited by apa

learn java first before using a osbot script tutorial

6 minutes ago, Chris said:

learn java first before using a osbot script tutorial

This.

Getting a basic understanding of Java before diving into the OSBot API is a really good idea. I reccommend getting a book on Java as these often come with some kind of exercises to get you comfortable with programming.

  • Author
20 minutes ago, apa said:

Line 1: missing semicolon. Whenever you have a statement, it needs a semicolon. If placing a set of curly brackets after the statement doesn't work, you know it needs a semicolon.

the other ones between '(){' is because you're missing spaces between the '()' and '{'. That's just styling "errors" to make your code look pretty.

The long one; missing a bracket on the left side, right after the return.

Last two lines, they are erroring because you have return true, else, return true. This always returns true, make the second one return false.

EDIT: Found a solution :)

Edited by Luke Reading

  • Author
2 minutes ago, Chris said:

DDpsUip.png

Thanks boss, i should still keep the first if else in the on loop tho?. Just not the methods?

16 minutes ago, Chris said:

DDpsUip.png

Don't know how I missed that haha

As others have stated; it’s worth it to first learn java and then write scripts. 

If you do it the other way around your scripts are not going to be flawless and they’ll take a lot of your time, more than learning java takes.

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.