Skip 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.

2 bugs

Featured Replies

1. A description of the issue

Bug A - area.contains(myplayer) sends a null and sends continuous errors of a null

Bug B - getitem(itemid).getamount () crashes the client with a null

2. Are you receiving any errors in the client canvas or the logger?

To see the logger, click on this button: Applic-Command-icon.png in the upper right hand corner of the bot

A - Null exception, in both my Woodcutter that worked before recent updates and the new script I'm working on

B - Same except this bug crashes the client

3. How can you replicate the issue?

A - simply make a area and declare it in an of statement that gets called and it will send a null

B - make an if statement and declare the statement I stated and add a equals to a number

4. Has this issue persisted through multiple versions? If so, how far back?

Both stopped working within the last 1-2 months

1.

@Override
    public void onStart() {
        log(Banks.AL_KHARID.contains(myPlayer()));
    }

 

[iNFO][bot #1][11/28 09:21:26 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][11/28 09:21:26 AM]: true
[iNFO][bot #1][11/28 09:21:26 AM]: Started script : Skeleton
[iNFO][bot #1][11/28 09:21:36 AM]: Terminating script Skeleton...
[iNFO][bot #1][11/28 09:21:36 AM]: Script Skeleton has exited!
[iNFO][bot #1][11/28 09:21:39 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][11/28 09:21:39 AM]: false
[iNFO][bot #1][11/28 09:21:39 AM]: Started script : Skeleton
[iNFO][bot #1][11/28 09:21:41 AM]: Terminating script Skeleton...
[iNFO][bot #1][11/28 09:21:41 AM]: Script Skeleton has exited!
 

 

 

First started in the area, second started out of the area.

 

    @Override
    public void onStart() {
        log("Item amount: " + inventory.getItem(318).getAmount());
    }
[iNFO][bot #1][11/28 09:29:21 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][11/28 09:29:21 AM]: Item amount: 4
[iNFO][bot #1][11/28 09:29:21 AM]: Started script : Skeleton
[iNFO][bot #1][11/28 09:29:22 AM]: Terminating script Skeleton...
[iNFO][bot #1][11/28 09:29:22 AM]: Script Skeleton has exited!

 

 

4 noted shrimp in my inventory.

 

 

I spent a good amount of time testing these issues, please thoroughly test your bugs before submitting a report. Isolate individual vanilla API methods, show your exact snippets, results, etc. This will help me debug any issues you may have.

 

  • Developer

1. A description of the issue

Bug A - area.contains(myplayer) sends a null and sends continuous errors of a null

Bug B - getitem(itemid).getamount () crashes the client with a null

2. Are you receiving any errors in the client canvas or the logger?

To see the logger, click on this button: Applic-Command-icon.png in the upper right hand corner of the bot

A - Null exception, in both my Woodcutter that worked before recent updates and the new script I'm working on

B - Same except this bug crashes the client

3. How can you replicate the issue?

A - simply make a area and declare it in an of statement that gets called and it will send a null

B - make an if statement and declare the statement I stated and add a equals to a number

4. Has this issue persisted through multiple versions? If so, how far back?

Both stopped working within the last 1-2 months

 

1) probs your aea is null.

2) getItem(id) is probably null and you try to get the amount of a null object ..

 

I don't have any issues with these things and I use them in all my scripts smile.png

Show me your code and i'll tell you what's wrong biggrin.png

 

Khaleesi

Edited by Khaleesi Scripts

both work fine for me, and also the get amount too

One, you probably made an area and didn't make it correctly......
Second, for the item. Like khal said you are looking for item with out null checking.  so you get npe when you dont have that item

Edited by Joseph

Since this is not really a bug, would you like me to move it to the Scripter's forum of Scripting help section? Looks like both Joseph and Khaleesi are willing to help.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.