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.

Chatbox.getMessages

Featured Replies

 1. OSBot Version (do NOT put "current version", be specific) 2.4.59

2. A description of the issue. Include relevant logs.

 

The occurance is when theres more than one game entry in the chatbox I believe.

 

 

 

for example; this would make getMessages( return an out of bounds exeption

Java.lang.IndexOutOfBoundsException: Index: 30, Size: 16
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at org.osbot.rs07.api.Chatbox.getMessages(oj:231)
    at main.onLoop(main.java:264)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(lk:242)
    at java.lang.Thread.run(Unknown Source)
[ERROR][Bot #1][05/13 08:53:13 fm]: Error in script executor!

line 263 & 264 in main.java

if(getChatbox().isVisible()){ 
	List<String> messages = getChatbox().getMessages(MessageType.GAME);

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

Yes, I put it above sorry

 

4. How can you replicate the issue?

The code works perfectly if you havent said anything or seen any other player speak (having the text in chatbox)

As soon as you speak or do something it breaks and returns out of bounds.

 

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

Not sure, I didnt get this error a few patches back but can't remember which.

Edited by Stitchface

Can you get me the widget message for both a "level up" and a "X monsters to go". Include the color tags if there are any. If you me need to elaborate let me know.

  • Author

The real occurrence is when there's someone who talked near the bot, this explains why my talker has broken as well. Meaning if there's not only game messages to collect it nulls

 

It appears to be able to collect the game messages if I have public chat on off

 

 

I'm not sure how you want me to do that, sorry, the bug report is kind of misleading maybe but I have no idea whats behind it.

 

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.