August 15, 20178 yr I have check this in API and I can't seem to find it? How could I make my scout bot read what is being said in the clan chat I want to create little commands system that way but I cant just seem to find this in the API >.< plz help? I only found out regular chat and game messages. Edited August 15, 20178 yr by averagee
August 15, 20178 yr https://osbot.org/api/org/osbot/rs07/api/Chatbox.html ? Make your script change your current chat to clan chat Edited August 15, 20178 yr by Abysm
August 15, 20178 yr @Override public void onMessage(Message message) { if (message.getTypeId() == 9) { // do something with clan chat message } } I believe clan chat messages have an ID of 9 however I haven't tested this. Edited August 15, 20178 yr by harrypotter
August 15, 20178 yr Author 26 minutes ago, harrypotter said: @Override public void onMessage(Message message) { if (message.getTypeId() == 9) { // do something with clan chat message } } I believe clan chat messages have an ID of 9 however I haven't tested this. Thank you so much man. If its not 9 i will just find it with a loop. Thx!!
August 15, 20178 yr If it's not 9 then just send a message in the clan chat then output the message ID to get the correct value: @Override public void onMessage(Message message) { log(message.getTypeId()); }
Create an account or sign in to comment