randombottingacc Posted January 10, 2017 Share Posted January 10, 2017 How can I know if my player is in a clan chat? I don't think there's a config value for it and I cbf checking the clan chat screen every 3 seconds. Quote Link to comment Share on other sites More sharing options...
Juggles Posted January 10, 2017 Share Posted January 10, 2017 http://osbot.org/forum/topic/84362-check-if-user-is-in-clan/ Quote Link to comment Share on other sites More sharing options...
randombottingacc Posted January 10, 2017 Author Share Posted January 10, 2017 http://osbot.org/forum/topic/84362-check-if-user-is-in-clan/ I don't think this'll work if the clan chat is not open. public boolean isInClanChat() { RS2Widget talkingIn = script.getWidgets().getWidgetContainingText("Talking in:"); return (talkingIn != null && talkingIn.isVisible() && !talkingIn.getMessage().contains("Not in chat")); } Quote Link to comment Share on other sites More sharing options...