Jump to content

chatbox getmessages error


The Core

Recommended Posts

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
Link to comment
Share on other sites

  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...