averagee Posted August 15, 2017 Posted August 15, 2017 (edited) 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, 2017 by averagee
Abysm Posted August 15, 2017 Posted August 15, 2017 (edited) https://osbot.org/api/org/osbot/rs07/api/Chatbox.html ? Make your script change your current chat to clan chat Edited August 15, 2017 by Abysm
harrypotter Posted August 15, 2017 Posted August 15, 2017 (edited) @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, 2017 by harrypotter
averagee Posted August 15, 2017 Author Posted August 15, 2017 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!!
harrypotter Posted August 15, 2017 Posted August 15, 2017 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()); }