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.

chatbox getmessages error

Featured Replies

I want to get the messages from players in the chatbox and it works only when one message from one player was sent, but as soon as another player talks, i get this error:

 

[ERROR][bot #1][05/28 10:59:29 PM]: Error in script executor!
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.osbot.rs07.api.Chatbox.getMessages(ae:106)
at testtalk.main.onLoop(main.java:61)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(um:22)
at java.lang.Thread.run(Unknown Source)
 
this is the code I use: chatbox.getMessages(MessageType.PLAYER)
 
I tried to insert them in a list with addall() but it doesn't work I got same error
 
Or is there any other ways to get the messages

Edited by ruinedmylife

I haven't looked at the Chatbox API in a while, there's a good chance there was a game update the broke it. I'll take a look at it.

  • Author

I haven't looked at the Chatbox API in a while, there's a good chance there was a game update the broke it. I'll take a look at it.

Thank you :P

  • 10 months later...
 

 

I haven't looked at the Chatbox API in a while, there's a good chance there was a game update the broke it. I'll take a look at it.

 

 

I am having the same error when checking (MessageType.GAME). In my case if i turn off public chat and cc, the problem doesnt appear.

Edited by Nora

 

 

 

 

 

I am having the same error when checking (MessageType.GAME). In my case if i turn off public chat and cc, the problem doesnt appear.

 

What about when you leave cc and public chat on, but click the game tab to only view game messages? 

What about when you leave cc and public chat on, but click the game tab to only view game messages? 

 

I am not sure, cant test it now. But if public chat is on, error freezes the bot client only if someone talks for a while

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.